We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, In this article https://github.com/nebula-plugins/gradle-lint-plugin/wiki/Writing-A-Rule there is an instruction on how to create a rule. In case if I want to implement several rules for my own team, how can I use them within gradle-lint-plugin?
gradle-lint-plugin
For example, Gradle PMD plugin supports dependency section (with dependency scope=pmd) that allows connecting other rules implemented outside the PMD team https://docs.gradle.org/current/userguide/pmd_plugin.html#sec:pmd_dependency_management
dependency
pmd
apply plugin: 'pmd' dependencies { ... pmd "io.github.dgroup:arch4u-pmd:${version}" // use latest arch4u-pmd rules version ... } pmd { consoleOutput = true ruleSetFiles = files("io/github/dgroup/arch4u/pmd/arch4u-ruleset.xml") ... }
The text was updated successfully, but these errors were encountered:
Did you land somewhere with this, @dgroup? I asked a similar question in #395 before seeing yours.
Sorry, something went wrong.
@exaucae, I made a fork with several rules and applied them to my projects directly.
Thank you!
BAEL-4091: remove custom & grouped rules
b01594a
It's impossible unless one forks the library and adds them directly: See nebula-plugins/gradle-lint-plugin#371 (comment)
this line could be the one to change if we want to feed custom rules to the plugin:
gradle-lint-plugin/src/main/groovy/com/netflix/nebula/lint/plugin/GradleLintPlugin.groovy
Line 33 in 280804c
The classloader is used by the LintRuleRegistry to get rulesets: https://github.com/nebula-plugins/gradle-lint-plugin/blob/main/src/main/groovy/com/netflix/nebula/lint/plugin/LintRuleRegistry.groovy#L27-L31
No branches or pull requests
Hi,
In this article https://github.com/nebula-plugins/gradle-lint-plugin/wiki/Writing-A-Rule there is an instruction on how to create a rule.
In case if I want to implement several rules for my own team, how can I use them within
gradle-lint-plugin
?For example, Gradle PMD plugin supports
dependency
section (with dependency scope=pmd
) that allows connecting other rules implemented outside the PMD teamhttps://docs.gradle.org/current/userguide/pmd_plugin.html#sec:pmd_dependency_management
The text was updated successfully, but these errors were encountered: