Skip to content
New issue

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

Update DummyClass.cls #17

Merged
merged 13 commits into from
May 16, 2024
8 changes: 6 additions & 2 deletions .github/workflows/codeAnalyzerOnPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,21 @@ jobs:
- name: Install Salesforce Code Analyzer Plugin
run: sf plugins install @salesforce/sfdx-scanner@latest

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44

- name: Run Salesforce Code Analyzer
id: run-code-analyzer
uses: forcedotcom/run-code-analyzer@v1
with:
run-command: run
run-arguments: --normalize-severity --target . --outfile results.html
run-arguments: --normalize-severity --target ${{ steps.changed-files.outputs.all_changed_files }} --outfile results.html
results-artifact-name: salesforce-code-analyzer-results

- name: Check the outputs to determine whether to fail
if: |
steps.run-code-analyzer.outputs.exit-code > 0 ||
steps.run-code-analyzer.outputs.num-sev1-violations > 0 ||
steps.run-code-analyzer.outputs.num-violations > 10
steps.run-code-analyzer.outputs.num-violations > 0
run: exit 1
4 changes: 2 additions & 2 deletions force-app/main/default/classes/DummyClass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ public with sharing class DummyClass {
}

public static String getStatic(){
String a = 'RETORNO';
String a = 'Analiza o código';

return a;
}
}
}
Loading