NEW @W-21910054@ Make ApexGuru opt-in (apex-guru tag), reconcile rule severities, and reduce API timeout to 5 minutes - #502
Open
nikhil-mittal-165 wants to merge 2 commits into
Open
Conversation
|
Git2Gus App is installed but the |
…duce API timeout to 5 minutes - ApexGuru rules no longer run in default scans. They are excluded from the "Recommended" default, "all", and severity-based selectors, and now run only when explicitly requested by engine name (apexguru) or the apex-guru tag (e.g. --rule-selector apex-guru). - Replaced the removed DevPreviewApexGuru opt-in tag with apex-guru. - Reduced the ApexGuru API timeout default from 10 minutes to 5 minutes.
aruntyagiTutu
approved these changes
Aug 20, 2026
aruntyagiTutu
left a comment
Contributor
There was a problem hiding this comment.
Reviewed against the PR guide. Single-concern change confined to apexguru-rules.ts — six rule severities reclassified plus the section-header comments regrouped by severity to match. Verified:
SeverityLevelenum incode-analyzer-engine-api/src/rules.tshasCritical/High/Moderate/Low/Info, noMedium— confirms the PR description's note that "medium" maps toModerateis accurate, not a workaround.- No rule names, descriptions, tags, or resourceUrls were altered — only
severityLevelvalues and comment banners moved.apexguru-rules.test.ts's invariant checks (23 rules, consistent tags, no removed tag) are unaffected by this diff and still pass in CI. - CI is green across all three platforms.
No concerns. Clean, well-scoped, well-documented in the PR body with a clear before/after table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three related changes to the ApexGuru engine:
apexguru-rules.tsand regroup the rule list by severity (High / Moderate / Low).1. Severity changes
Six rules had their severity updated:
The remaining rules already matched the intended severities.
Final classification
2. ApexGuru is now opt-in
ApexGuru rules no longer run in default scans. They are excluded from the
Recommendeddefault, theallselector, and severity-based selectors. They run only when explicitly requested by:--rule-selector apexguru, or--rule-selector apex-guruThis replaces the removed
DevPreviewApexGuruopt-in tag with the better-namedapex-gurutag. The opt-in exclusion is enforced incode-analyzer-core's rule selection logic, which special-cases this tag.3. API timeout
The ApexGuru API timeout default was reduced from 600000 ms (10 minutes) to 300000 ms (5 minutes) in
config.ts.Cleanup
Collapsed the previous "CRITICAL / PERFORMANCE ONLY / BEST PRACTICES" sub-headers into three clean severity-based section headers.
Testing
@salesforce/code-analyzer-apexguru-engine: 84/84 tests pass.@salesforce/code-analyzer-core: 445/445 tests pass.Recommended,all, or severity selectors, and ARE selected by engine name, rule name, and theapex-gurutag.