Skip to content

Commit

Permalink
Fix markdown formatting. (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwz authored Jun 17, 2020
1 parent b99ee39 commit 8ecc262
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
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

0 comments on commit 8ecc262

Please sign in to comment.