Have you tried to resolve this issue yourself first?
Bug Description
I disabled some rules and recreated the config file. ( see #2013 )
All the disabled rules were moved to the end of the pmd section.
But I want to view ALL the PMD rules alphabetized so I know which ones are in there.
Output / Logs
Steps To Reproduce
- Disabled a rule with
disabled: true
- Run
echo 'y' | sf code-analyzer config --include-unmodified-rules --rule-selector all --config-file code-analyzer.yml --output-file code-analyzer.yml
- See that the disabled rules are moved.
Expected Behavior
All rules should be alphabetized by their unique key. This extra sort doesn't help anything and only can confuse people.
Operating System
macOS
Salesforce CLI Version
@salesforce/cli/2.128.5 darwin-arm64 node-v22.22.1
Code Analyzer Plugin (code-analyzer) Version
5.11.1
Node Version
No response
Java Version
No response
Python Version
No response
Additional Context (Screenshots, Files, etc)
This is actually a significant bug because changing from expected behavior will confuse people.
Workaround
No response
Urgency
Moderate
Have you tried to resolve this issue yourself first?
Bug Description
I disabled some rules and recreated the config file. ( see #2013 )
All the disabled rules were moved to the end of the
pmdsection.But I want to view ALL the PMD rules alphabetized so I know which ones are in there.
Output / Logs
Steps To Reproduce
disabled: trueecho 'y' | sf code-analyzer config --include-unmodified-rules --rule-selector all --config-file code-analyzer.yml --output-file code-analyzer.ymlExpected Behavior
All rules should be alphabetized by their unique key. This extra sort doesn't help anything and only can confuse people.
Operating System
macOS
Salesforce CLI Version
@salesforce/cli/2.128.5 darwin-arm64 node-v22.22.1
Code Analyzer Plugin (code-analyzer) Version
5.11.1
Node Version
No response
Java Version
No response
Python Version
No response
Additional Context (Screenshots, Files, etc)
This is actually a significant bug because changing from expected behavior will confuse people.
Workaround
No response
Urgency
Moderate