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 invalid scalacOption. #667

Merged
merged 1 commit into from
Mar 26, 2018
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 @@ -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