Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix markdown formatting. #380

Merged
merged 1 commit into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CollectionPromotionToAny
defaultLevel = Levels.Warning,
description = "Checks for collection operations that promote the collection to Any.",
explanation =
"The :+ (append) operator on collections accepts any argument you give it, which means that you can end up with e.g. Seq[Any] if your types don't match."
"The `:+` (append) operator on collections accepts any argument you give it, which means that you can end up with e.g. `Seq[Any]` if your types don't match."
) {

def inspector(context: InspectionContext): Inspector =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PreferMapEmpty
defaultLevel = Levels.Info,
description = "Checks for use of Map().",
explanation =
"Map[K,V]() allocates an intermediate object. Consider Map.empty which returns a singleton instance without creating a new object."
"`Map[K,V]()` allocates an intermediate object. Consider `Map.empty` which returns a singleton instance without creating a new object."
) {

def inspector(context: InspectionContext): Inspector =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PreferSeqEmpty
defaultLevel = Levels.Info,
description = "Checks for use of Seq().",
explanation =
"Seq[T]() allocates an intermediate object. Consider Seq.empty which returns a singleton instance without creating a new object."
"`Seq[T]()` allocates an intermediate object. Consider `Seq.empty` which returns a singleton instance without creating a new object."
) {

def inspector(context: InspectionContext): Inspector =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PreferSetEmpty
defaultLevel = Levels.Info,
description = "Checks for use of Set().",
explanation =
"Set[T]() allocates an intermediate object. Consider Set.empty which returns a singleton instance without creating a new object."
"`Set[T]()` allocates an intermediate object. Consider `Set.empty` which returns a singleton instance without creating a new object."
) {

def inspector(context: InspectionContext): Inspector =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class PointlessTypeBounds
extends Inspection(
text = "Pointless type bounds",
defaultLevel = Levels.Warning,
description = "Finds type bounds of the form [A <: Any] or [A >: Nothing].",
explanation = "Type bound resolves to Nothing <: T <: Any. Did you mean to put in other bounds?"
description = "Finds type bounds of the form `A <: Any` or `A >: Nothing`.",
explanation = "Type bound resolves to `Nothing <: T <: Any`. Did you mean to put in other bounds?"
) {

def inspector(context: InspectionContext): Inspector =
Expand Down