Skip to content

Commit

Permalink
add . to the end for description
Browse files Browse the repository at this point in the history
  • Loading branch information
fntz committed Oct 18, 2024
1 parent 2041f22 commit 0a539c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AvoidRequire extends
Inspection(
text = "Use of require",
defaultLevel = Levels.Warning,
description = "Use require in code",
description = "Use require in code.",
explanation = "Using require throws an untyped Exception."
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AvoidRequire
extends Inspection(
text = "Use of require",
defaultLevel = Levels.Warning,
description = "Use require in code",
description = "Use require in code.",
explanation = "Using require throws an untyped Exception."
) {

Expand All @@ -22,7 +22,7 @@ class AvoidRequire
val traverser = new InspectionTraverser {
def traverse(tree: Tree)(using Context): Unit = {
tree match {
case f @ Apply(ident: Ident, _) if ident.name.toString == "require" =>
case f@Apply(ident: Ident, _) if ident.name.toString == "require" =>
ident.tpe.normalizedPrefix match {
case TermRef(tx, nm: Symbol)
if nm.toString == "object Predef" &&
Expand Down

0 comments on commit 0a539c6

Please sign in to comment.