Skip to content

Commit

Permalink
Test "Verify latest PMD SNAPSHOT"
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Mar 17, 2024
1 parent e236f06 commit 95a81e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ jobs:
java-version: '11'
distribution: 'temurin'
#- uses: pmd/pmd-github-action@v1
- uses: pmd/pmd-github-action@main
#- uses: pmd/pmd-github-action@main
#- uses: pmd/pmd-github-action@features/annotation
#- uses: adangel/pmd-github-action@support-pmd7
- uses: adangel/pmd-github-action@typescript
with:
uploadSarifReport: ${{ runner.os == 'Linux' && 'true' || 'false' }}
rulesets: 'ruleset.xml,category/apex/codestyle.xml/FieldNamingConventions'
#version: '7.0.0-SNAPSHOT'
#downloadUrl: 'https://sourceforge.net/projects/pmd/files/pmd/7.0.0-SNAPSHOT/pmd-dist-7.0.0-SNAPSHOT-bin.zip/download'
version: '7.0.0-SNAPSHOT'
downloadUrl: 'https://sourceforge.net/projects/pmd/files/pmd/7.0.0-SNAPSHOT/pmd-dist-7.0.0-SNAPSHOT-bin.zip/download'
4 changes: 4 additions & 0 deletions src/classes/LocalVariableNamingConventionsSample.cls
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ public class LocalVariableNamingConventionsSample {
Integer LOCAL_VARIABLE = 1; // should be reported as "localVariableNamingConventions" (prio 5, notice)

Check notice on line 3 in src/classes/LocalVariableNamingConventionsSample.cls

View workflow job for this annotation

GitHub Actions / pmd (ubuntu-latest)

The local variable name 'LOCAL_VARIABLE' doesn't match '[a-z][a-zA-Z0-9]*'

Configurable naming conventions for local variable declarations. This rule reports variable declarations which do not match the regex that applies to their specific kind (e.g. local variable, or final local variable). Each regex can be configured through properties. By default this rule uses the standard Apex naming convention (Camel case). LocalVariableNamingConventions (Priority: 5, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_apex_codestyle.html#localvariablenamingconventions

Check notice on line 3 in src/classes/LocalVariableNamingConventionsSample.cls

View workflow job for this annotation

GitHub Actions / pmd (windows-latest)

The local variable name 'LOCAL_VARIABLE' doesn't match '[a-z][a-zA-Z0-9]*'

Configurable naming conventions for local variable declarations. This rule reports variable declarations which do not match the regex that applies to their specific kind (e.g. local variable, or final local variable). Each regex can be configured through properties. By default this rule uses the standard Apex naming convention (Camel case). LocalVariableNamingConventions (Priority: 5, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_apex_codestyle.html#localvariablenamingconventions

Check notice on line 3 in src/classes/LocalVariableNamingConventionsSample.cls

View workflow job for this annotation

GitHub Actions / pmd (macos-latest)

The local variable name 'LOCAL_VARIABLE' doesn't match '[a-z][a-zA-Z0-9]*'

Configurable naming conventions for local variable declarations. This rule reports variable declarations which do not match the regex that applies to their specific kind (e.g. local variable, or final local variable). Each regex can be configured through properties. By default this rule uses the standard Apex naming convention (Camel case). LocalVariableNamingConventions (Priority: 5, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_apex_codestyle.html#localvariablenamingconventions
return LOCAL_VARIABLE;
}
public Integer foo() {
Integer LOCAL_VARIABLE = 1; // should be reported as "localVariableNamingConventions" (prio 5, notice)

Check notice on line 7 in src/classes/LocalVariableNamingConventionsSample.cls

View workflow job for this annotation

GitHub Actions / pmd (ubuntu-latest)

The local variable name 'LOCAL_VARIABLE' doesn't match '[a-z][a-zA-Z0-9]*'

Configurable naming conventions for local variable declarations. This rule reports variable declarations which do not match the regex that applies to their specific kind (e.g. local variable, or final local variable). Each regex can be configured through properties. By default this rule uses the standard Apex naming convention (Camel case). LocalVariableNamingConventions (Priority: 5, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_apex_codestyle.html#localvariablenamingconventions

Check notice on line 7 in src/classes/LocalVariableNamingConventionsSample.cls

View workflow job for this annotation

GitHub Actions / pmd (windows-latest)

The local variable name 'LOCAL_VARIABLE' doesn't match '[a-z][a-zA-Z0-9]*'

Configurable naming conventions for local variable declarations. This rule reports variable declarations which do not match the regex that applies to their specific kind (e.g. local variable, or final local variable). Each regex can be configured through properties. By default this rule uses the standard Apex naming convention (Camel case). LocalVariableNamingConventions (Priority: 5, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_apex_codestyle.html#localvariablenamingconventions

Check notice on line 7 in src/classes/LocalVariableNamingConventionsSample.cls

View workflow job for this annotation

GitHub Actions / pmd (macos-latest)

The local variable name 'LOCAL_VARIABLE' doesn't match '[a-z][a-zA-Z0-9]*'

Configurable naming conventions for local variable declarations. This rule reports variable declarations which do not match the regex that applies to their specific kind (e.g. local variable, or final local variable). Each regex can be configured through properties. By default this rule uses the standard Apex naming convention (Camel case). LocalVariableNamingConventions (Priority: 5, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_apex_codestyle.html#localvariablenamingconventions
return LOCAL_VARIABLE;
}
}

0 comments on commit 95a81e1

Please sign in to comment.