/DetektRuleGenerator

Simple application, which helps to generate necessary jar file with custom rules.

Primary LanguageKotlin

Detekt rule generator

Here's a simple application, which helps to generate necessary jar file with custom rules.

How-to:

  1. Pull the project
  2. Create your rules and add it to CustomRuleProvider.kt
  3. Locate task :generator:createRules
  4. Run it
  5. rules.jar file will be at DetektRuleGenerator\generator\rules\
  6. Copy rules.jar into your project
  7. Add reference rules.jar into your gradle detekt task. (Add -p or --plugins and pass path as an argument).
def params = ['-p', %PATH_TO_RULES_JAR%]