https://github.com/rtimush/sbt-rewarn
Make sbt always display compilation warnings, even for unchanged files.
https://github.com/rtimush/sbt-rewarn
sbt sbt-plugin scala
Last synced: about 1 month ago
JSON representation
Make sbt always display compilation warnings, even for unchanged files.
- Host: GitHub
- URL: https://github.com/rtimush/sbt-rewarn
- Owner: rtimush
- License: bsd-3-clause
- Created: 2020-07-24T22:27:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-19T06:10:26.000Z (9 months ago)
- Last Synced: 2025-08-27T14:44:46.204Z (about 1 month ago)
- Topics: sbt, sbt-plugin, scala
- Language: Scala
- Homepage:
- Size: 166 KB
- Stars: 61
- Watchers: 3
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
sbt-rewarn
==================
Always display compilation warnings, even for unchanged files.By default, `sbt` shows compilation warnings only for the source files that have been re-compiled in the current incremental compilation run. `sbt-rewarn` makes it print all warnings on every compilation, even if you didn't change anything.
This is particularly helpful if you want to keep your project warning-free. Simply enabling `-Xfatal-warnings` can be too annoying during development, especially the `-Wunused:*` family of warnings. The better alternative is to make warnings fatal on CI but not locally. Together with this plugin, you will always see if you have introduced any warnings, regardless of the incremental compilation.

Requirements
==============
sbt 1.0.0 or later, with an exception of sbt 1.4.0 (sbt 1.4.1+ is supported again).Installation
============The plugin supports both global and per-project installation.
If you want this plugin to be available for all `sbt` projects you work with, configure it in `~/.sbt/1.0/plugins/plugins.sbt`.
If you want to enable this plugin for some specific project only, configure it in `/project/plugins.sbt`.### Stable version
Add the following line to the `plugins.sbt` file:```
addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "x.x.x")
```The latest version is [](https://maven-badges.herokuapp.com/maven-central/com.timushev.sbt/sbt-rewarn/)
No additional configuration is necessary, the plugin will be automatically activated.
### Snapshot version
Choose one of versions available on [Sonatype](https://oss.sonatype.org/content/repositories/snapshots/com/timushev/sbt/sbt-rewarn_2.12_1.0/). Then add the following lines to the `plugins.sbt` file:```
resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "x.x.x-y-zzzzzzz-SNAPSHOT")
```Note, that snapshots are not updated automatically.