https://github.com/softwaremill/neme-plugin
Scala compiler plugin for turning non exhaustive match warnings into errors
https://github.com/softwaremill/neme-plugin
Last synced: 9 months ago
JSON representation
Scala compiler plugin for turning non exhaustive match warnings into errors
- Host: GitHub
- URL: https://github.com/softwaremill/neme-plugin
- Owner: softwaremill
- License: apache-2.0
- Created: 2019-01-10T23:12:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T14:10:45.000Z (about 3 years ago)
- Last Synced: 2025-03-30T15:47:02.302Z (10 months ago)
- Language: Scala
- Size: 83 KB
- Stars: 29
- Watchers: 30
- Forks: 3
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## neme - not exhaustive match error
[](https://travis-ci.org/softwaremill/neme-plugin)
[](https://search.maven.org/search?q=g:com.softwaremill.neme)
Scala compiler plugin for turning non exhaustive match warnings into errors
This plugin is heavily inspired by [silencer-plugin](https://github.com/ghik/silencer)
Published for Scala 2.11, 2.12 and 2.13.
### Deprecation notice
Since scala 2.13.2 there is a new flag - `-Wconf` which covers that functionality making this project obsolete.
Later, it was also backported into 2.12.13 (https://github.com/scala/scala/releases/tag/v2.12.13).
See https://github.com/scala/scala/pull/8373. The specific setting replicating the functionality of the plugin is:
```
scalacOptions += "-Wconf:cat=other-match-analysis:error"
```
### Usage
If you're using SBT, simply add these lines to your `build.sbt` to enable the plugin:
```scala
libraryDependencies ++= Seq(
compilerPlugin("com.softwaremill.neme" %% "neme-plugin" % "0.0.5")
)
```
Or in `~/.sbt/1.0/*.sbt`:
```scala
addCompilerPlugin("com.softwaremill.neme" %% "neme-plugin" % "0.0.5")
```