A Gradle plugin for finding // TODO comments, originally by Felix Schulze and fixed by me.
This plugin is available through the gradle plugin portal.
//Default configuration
todo {
teamCityLog = true
todoPattern = "//[\t\s]*TODO(.*)"
todoSuffixPattern = '(someText|otherText)(.*)'
failIfFound = true
sourceFolder = "your source folder"
fileExtensions = ["java", "groovy"]
}
teamCityLog
: Add features for TeamCitytodoPattern
: Regex for TODOtodoSuffixPattern
: Regex suffix for TODOfailIfFound
: Fail build if TODO foundsourceFolder
: Folder name for your sourcesfileExtensions
: List of file extension for searching for TODOs
F-1.0: Fixed upstream issues. (#3 and a part of both #1 and #2)
gradle-todo-plugin is available under the MIT license. See the LICENSE file for more info.