Skip to content

Commit

Permalink
Merge pull request #667 from jiminhsieh/ticket/625
Browse files Browse the repository at this point in the history
Fix invalid scalacOption.
  • Loading branch information
olafurpg committed Mar 26, 2018
2 parents 609c927 + fb23bf5 commit d94a36d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ case class RemoveUnusedTerms(index: SemanticdbIndex)
extends SemanticRule(index, "RemoveUnusedTerms") {

override def description: String =
"Rewrite that removes unused locals/privates by -Ywarn-unused:locals/privates"
"Rewrite that removes unused locals or privates by -Ywarn-unused:locals,privates"

private val unusedTerms = {
val UnusedLocalVal = """local (.*) is never used""".r
Expand Down
6 changes: 3 additions & 3 deletions website/src/main/tut/docs/rules/RemoveUnusedTerms.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ title: RemoveUnusedTerms

# RemoveUnusedTerms

Rewrite that removes unused locals/privates that are warned by the
Scala compiler through `-Ywarn-unused:locals/privates`.
Rewrite that removes unused locals or privates that are warned by the
Scala compiler through `-Ywarn-unused:locals,privates`.

To use this rule

- enable `-Ywarn-unused:locals/privates`
- enable `-Ywarn-unused:locals,privates`
- disable `-Xfatal-warnings`. Unfortunately, the Scala compiler does not support finer grained control over the severity level per message kind. See [scalameta/scalameta#924](https://github.com/scalameta/scalameta/issues/924) for a possible workaround in the near future.

```scala
Expand Down

0 comments on commit d94a36d

Please sign in to comment.