diff --git a/fixtures/valid/Foo.cls b/fixtures/valid/Foo.cls index bd2efcb..3d3afcd 100644 --- a/fixtures/valid/Foo.cls +++ b/fixtures/valid/Foo.cls @@ -1,3 +1,6 @@ +/** + * @description this is a valid apexdoc comment + */ public class Foo { public static final Integer MY_NUM = 0; public String myTest = ''; diff --git a/test.sh b/test.sh index 0dd6ea8..c4a4a62 100644 --- a/test.sh +++ b/test.sh @@ -7,18 +7,18 @@ set -eo errexit ret=0; echo -n "it should succeed linting valid apex code... " -if ! pmd -dir ./fixtures/valid -rulesets apex-style -language apex > /dev/null; then +if ! pmd check --dir ./fixtures/valid --use-version apex-55 --rulesets rulesets/apex/quickstart.xml > /dev/null; then echo "failed" ret=1; -else +else echo "OK" fi echo -n "it should fail linting invalid apex code... " -if pmd -dir ./fixtures/invalid -rulesets apex-style -language apex > /dev/null; then +if pmd check --dir ./fixtures/invalid --use-version apex-55 --rulesets rulesets/apex/quickstart.xml > /dev/null; then echo "failed" ret=1; -else +else echo "OK" fi