You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[apex] ApexUnitTestShouldNotUseSeeAllDataTrue violation range should only be the annotation and not the entire test method #5904
When running PMD against any apex test file that contains @isTest(seeAllData = true), then the ApexUnitTestShouldNotUseSeeAllDataTrue violation is found correctly, but its line and column information is the entire method. This makes for a very noisy experience inside of tools that integrate with PMD (like the Salesforce Code Analyzer VS Code Extension). Instead, this rule should give a range that is just the annotation.
Activity
[apex] Fix ApexUnitTestShouldNotUseSeeAllDataTrue violation location (p…