Configure linters and coverage tools to ignore Play's generated source files.

sbt-ignore-play-generated

Build Status Codacy Badge Maven Central

An SBT plugin that will configure other plugins to ignore Play's generated source files.

Play generates Scala source code based on your routes definitions, which you typically won't want to include in coverage metrics, static analysis (linters), etc. It can be annoying to configure such plugins to exclude Play's generated sources because they each require slightly different configuration. This plugin takes care of it for you.

Usage

Add the following to your plugins.sbt:

addSbtPlugin("org.danielnixon" % "sbt-ignore-play-generated" % "0.1")

If you use any of the supported SBT plugins (below), they will now be configured to ignore Play's generated sources.

Supported plugins

See also

If you're using both Play and WartRemover, you might like PlayWarts.