Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
William Brockhus committed Apr 2, 2024
1 parent 54210ad commit 9c98266
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions fixtures/valid/Foo.cls
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @description this is a valid apexdoc comment
*/
public class Foo {
public static final Integer MY_NUM = 0;
public String myTest = '';
Expand Down
8 changes: 4 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9c98266

Please sign in to comment.