GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — refactor(handler): clear 4 Code Analyzer findings in TriggerHandler by dschach · Pull Request #373 · dschach/salesforce-trigger-framework Conversation
Owner
After the DevSecOps rules were added, Code Analyzer reported 7 findings in ChangesFixes
Suppressions
Behavior notes
Test plan
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe default maximum of LoopCount() is the named constant DEFAULT_MAX_LOOP_COUNT, kept in the outer class because an Apex inner class cannot hold statics. LoopCount declares inherited sharing. The switch in run() has an empty when else whose comment says that its 7 cases are every trigger operation. PMD.CognitiveComplexity joins the class-level suppression next to PMD.CyclomaticComplexity: both report a class total, 184 against a limit of 50, while no method is above 6. No behavior changes. Co-Authored-By: Claude <[email protected]> The empty when else in run() is removed. run() suppresses PMD.SwitchWithoutWhenElse instead, and its ApexDoc gives the reason: the switch names all 7 trigger operations, and validateRun() rejects a null operation. Co-Authored-By: Claude <[email protected]>
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
dschach
added a commit
that referenced
this pull request
🤖 I have created a release *beep* *boop* --- ## [1.5.0](v1.4.2...v1.5.0) (2026-10-30) ### Features * **handler:** Let a test run a handler without DML ([312e121](312e121)) * **handler:** Route the framework messages through a log hook ([#372](#372)) ([312e121](312e121)) ### Code Refactoring * **handler:** Clear 4 Code Analyzer findings in TriggerHandler ([#373](#373)) ([3cc05e4](3cc05e4)) ### Continuous Integration * **apex-tests:** Run the Apex tests on pushes to main that change a class ([#368](#368)) ([e9a4ed3](e9a4ed3)) * **apex-tests:** Stop project config changes from starting a run ([e9a4ed3](e9a4ed3)) * **release-please:** Open release PRs with a token of their own ([#371](#371)) ([94e1de0](94e1de0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: David Schach <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |