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 — [apex] Fix #5669: Report ApexUnitTestMethodShouldHaveIsTestAnnotation only on the method name by HawkForge · Pull Request #7263 · pmd/pmd Conversation
Contributor
Describe the PRFixes the violation range of the Apex rule ApexUnitTestMethodShouldHaveIsTestAnnotation. The XPath was Added a rule test with an end line expectation ( Thanks to @stephen-carter-at-sf for reporting. Related issuesReady?
Replaces #7228, which got closed when my fork was accidentally detached.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…ion only on the method signature
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
adangel
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
No relevant source code has been changed, pmdtester skipped. (comment created at 2026-11-21 09:46:58+00:00 for 57bcc52) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think, it's not ready after all:
Before, it reported the whole method. But now, it reports on |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I assume, the correct fix will be developed in #7264 and the rule change here is not necessary anymore - if a violation is reported on ASTMethod then the identifier should be used as the report location.
The tests added here are still useful, though.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Andreas Dangel <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[apex] ApexUnitTestMethodShouldHaveIsTestAnnotation: Violation range should only cover the method name
There was an error while loading. Please reload this page.