Update ruleset, add ruleset factory test

Using pmd.website.baseurl parameter
This commit is contained in:
Andreas Dangel 2022-03-03 21:09:49 +01:00
parent 0a6e4abc75
commit 3969215635
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
3 changed files with 12 additions and 4 deletions

View File

@ -16,7 +16,6 @@
</properties>
<build>
<!-- needed for pmd sonar plugin -->
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>

View File

@ -10,12 +10,11 @@ Rules which enforce generally accepted best practices.
</description>
<rule name="FunctionNameTooShort"
since="7.0"
since="7.0.0"
language="kotlin"
message="Function names should have non-cryptic and clear names."
class="net.sourceforge.pmd.lang.rule.XPathRule"
typeResolution="true"
externalInfoUrl="https://pmd.github.io/pmd/pmd_rules_kotlin_bestpractices.html#functionametooshort">
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_kotlin_bestpractices.html#functionametooshort">
<description>
Function names should be easy to understand and describe the intention. Makes developers happy.
</description>

View File

@ -0,0 +1,10 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.kotlin;
import net.sourceforge.pmd.AbstractRuleSetFactoryTest;
public class RuleSetFactoryTest extends AbstractRuleSetFactoryTest {
}