https://github.com/exoego/scalafix-rules
Some useful linter/autofix for Scala
https://github.com/exoego/scalafix-rules
scalafix scalafix-rule
Last synced: 3 months ago
JSON representation
Some useful linter/autofix for Scala
- Host: GitHub
- URL: https://github.com/exoego/scalafix-rules
- Owner: exoego
- Created: 2020-09-08T08:04:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T01:11:34.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T22:19:52.859Z (5 months ago)
- Topics: scalafix, scalafix-rule
- Language: Scala
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scalafix-Rules
Some useful linters/autofix for Scala.
- autofix
- `FinalCaseClass`: Add `final` modifier to case classes to prevent being inherited by non-case class.
- `UseSizeIs`: Rewrite `seq.size <= n` into `seq.sizeIs <= n`. See [IterableOps#sizeIs](https://www.scala-lang.org/api/current/scala/collection/IterableOps.html#sizeIs:scala.collection.IterableOps.SizeCompareOps)# Development
To develop rule:
```
sbt ~tests/test
```