pragmatic-bear/Pull Request SFDX Code Review
Uses Salesforce Code Analyzer to create a Pull Request Review including inline Comments
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source_path | Path to the package folder containing source to be analysed. Git Diff will be performend in this folder and only changed files will be considered. | yes | "***.cls" "***.trigger" "***.js" "***.html" "***.page" "***.cmp" "***.component" "***.apex" "***.ts" |
| github_token | Pass in the GITHUB_TOKEN to facilitate API calls to GitHub | yes | — |
| fail_threshold | Single Issue with this severity will cause the pipeline to fail (can be used instad of request changes) | no | 0 |
| reject_threshold | Single Issue with this severity will cause the review to request changes | no | 0 |
| approve_threshold | If all Issues are less severe than this the review will give approval | no | 99 |
| severity_threshold | Any issue less severe than this configuration will be completely ignored | no | 3 |
| max_comments | Maximum number of feedback comments to post as part of the review. Anything over 39 will be posted separately in 5s intervals. | no | 39 |
| category | From Analyzer; One or more categories of rules to run. Specify multiple values as a comma-separated list. | no | — |
| engine | From Analyzer (default: pmd, eslint, cpd); not including Graph Engine. Specifies one or more engines to run. Submit multiple values as a comma-separated list. Specify the location of eslintrc config to customize eslint engine | no | pmd,eslint,cpd |
| eslintconfig | From Analyzer; Specifies the location of eslintrc config to customize eslint engine. | no | — |
| pmdconfig | From Analyzer; Specifies the location of PMD rule reference XML file to customize rule selection. | no | — |
| tsconfig | From Analyzer; Location of tsconfig.json file used by eslint-typescript engine. | no | — |
| dfa_setting | Include Salesforce Graph Engine analysis. Options: "dfa" or "dfa-only". Leave blank to run only standard Analyzer. | no | — |
| projectdir | From Analyzer, Applies to DFA only; Provides the relative or absolute root project directory used to set the context for Graph Engine analysis. Project directory must be a path, not a glob. Specify multiple values as a comma-separated list. Defaults to ./ | no | ./ |
| rule_thread_count | From Analyzer, Applies to DFA only; Specifies number of rule evaluation threads, or how many entrypoints can be evaluated concurrently. Inherits value from SFGE_RULE_THREAD_COUNT env-var, if set. Default is 4. | no | 4 |
| rule_thread_timeout | From Analyzer, Applies to DFA only; Specifies time limit for evaluating a single entrypoint in milliseconds. Inherits from SFGE_RULE_THREAD_TIMEOUT env-var if set. Default is 900,000 ms, or 15 minutes. | no | 900000 |
Outputs
no outputs