Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

esdrasbeleza/sbt-findtags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-findtags

A sbt plugin to find tags in source files, like TODO and FIXME. You can use it to keep track of your tags and your technical debt.

Adding to your project

Add the following line to your plugins.sbt file:

addSbtPlugin("com.esdrasbeleza" % "sbt-findtags" % "0.3")

Configuring

In your configuration file, import the sbt-findtags keys:

import sbtfindtags.FindtagsPlugin._

findtagsTags set which keys must be searched. The default values are TODO and FIXME.

findtagsTags := Seq("TODO", "FIXME", "IMPROVEMENT")

findtagsFailsIfTagsAreFound, if set to true, considers that if some tag is found then it must be an error. The default value is false.

findtagsFailsIfTagsAreFound := true

This is specially useful if you want your build to break if we have any tags. To achieve that, add the following line and so sbt-findtags will run before your code compiles:

compile <<= (compile in Compile) dependsOn findtags

Running

Run the command findtags in sbt. The output will be the filenames that contain the found tags and their filenumber. They will also be available in buildDir/findtags/output.txt.

About

A sbt plugin to find tasks in source code, like TODO and FIXME

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages