Skip to content

A simple totaly configurable token checker plugin for gradle

Notifications You must be signed in to change notification settings

tierone-dev/gradle-tokenchecker-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gradle-tokenchecker-plugin

A simple totally configurable token checker plugin for gradle written in groovy

Tasks

The plugin adds the following tasks:

- checkTokens

Check for tokens in files using tokencheckerOptions.

Installation

  • Clone or download project
  • Execute gradle uploadArchives to add project to local repositories
  • Add the plugin like this:
apply plugin: "com.t1c.gradle.tokenchecker.plugin"

buildscript {
  repositories {
    mavenLocal()
  }
  dependencies {
    classpath "com.t1c.gradle.tokenchecker:gradle-tokenchecker-plugin:1.0.0"
  }
}

Configuration

General configuration for the plugin goes inside a tokencheckerOptions plain groovy object in your build file that will be applied to all tasks. For example:

tokencheckerOptions { 
    SEARCH_LOCATIONS = [ "/home/user/project/src/modules" , "../src/vendor/t1c/" ]
    PATTERNS = [ /(.*)ng-include(.*)/ , /(.*)<img(.*)/  ]
    IGNORED = ["my_file.js" , "index.jsp"]
}

Configuration parameters

Parameters supported by the plugin are:

  • SEARCH_LOCATIONS: a string list with the source directories where you want to search.
  • PATTERNS: must pass a java/python regex array of patterns to match.
  • IGNORED: string list of file names to be globally ignored.

About

A simple totaly configurable token checker plugin for gradle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages