gradle-todo-plugin
A Gradle plugin for finding // TODO comments.
Basic usage
Add to your build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.autoscout24.gradle:gradle-todo-plugin:1.0'
}
}
apply plugin: 'com.autoscout24.gradle.todo'
Advanced usage
Add to your build.gradle
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
Changelog
License
gradle-todo-plugin is available under the MIT license. See the LICENSE file for more info.