GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [apex] ApexUnitTestShouldNotUseSeeAllDataTrue violation range should only be the annotation and not the entire test method · Issue #5904 · pmd/pmd

[apex] ApexUnitTestShouldNotUseSeeAllDataTrue violation range should only be the annotation and not the entire test method #5904

New issue
Copy link
New issue
Copy link
Closed
#6955
Closed
[apex] ApexUnitTestShouldNotUseSeeAllDataTrue violation range should only be the annotation and not the entire test method#5904
#6955
Copy link
Labels
a:bugPMD crashes or fails to analyse a file.
Milestone
7.27.0

Description

@stephen-carter-at-sf
stephen-carter-at-sf
opened on Jul 14, 2025
Issue body actions

Rule: ApexUnitTestShouldNotUseSeeAllDataTrue

Description:

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.

Image

Activity

  1. stephen-carter-at-sf
    added
    a:bugPMD crashes or fails to analyse a file.
    on Jul 14, 2025
  2. UncleOwen
    added this to the 7.27.0 milestone on Aug 8, 2026
  3. UncleOwen
    closed this as completedin #6955on Aug 8, 2026
  4. UncleOwen
    added a commit that references this issue on Aug 8, 2026

    [apex] Fix ApexUnitTestShouldNotUseSeeAllDataTrue violation location (p…

    This issue will close once commit 2c829a3 is merged into the 'main' branch.
    2c829a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bugPMD crashes or fails to analyse a file.

    Type

    No type

    Projects

    No projects

      Milestone

      • 7.27.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.