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 linter issues discovered while writing scala-lang blogpost. #341

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

olafurpg
Copy link
Contributor

  • Rule names are now attached to their reported patches.
    This is necessary to support multiple linters in testkit,
    but will also later be necessary for escape hatches.
    The implementation is a bit hacky, but that should not leak
    into the public api.
  • Off-by-one errors in lint asserts
  • Lint category id was wrong for composite rules
  • Remove trailing . when category.id is empty.
  • Better detection of linters (but still not perfect).

- Rule names are now attached to their reported patches.
  This is necessary to support multiple linters in testkit,
  but will also later be necessary for escape hatches.
  The implementation is a bit hacky, but that should not leak
  into the public api.
- Off-by-one errors in lint asserts
- Lint category id was wrong for composite rules
- Remove trailing `.` when category.id is empty.
- Better detection of linters (but still not perfect).
@olafurpg olafurpg merged commit bc4cc6c into scalacenter:master Sep 11, 2017
@olafurpg olafurpg deleted the moar-lints branch September 11, 2017 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant