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] Fix @SuppressWarnings with whitespace around comma by jsotuyod · Pull Request #6074 · pmd/pmd

Conversation

@jsotuyod

@jsotuyod jsotuyod commented Sep 18, 2025

Copy link
Copy Markdown
Member

Describe the PR

With #5609 we stopped supporting this. The build didn't fail because the only test checked for the first suppression in the list, which was right next to the comma, and didn't include any whitespace.

Related issues

  • Fix [apex] @SuppressWarnings - allow whitespace around comma when suppressing multiple rules #5935

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jsotuyod jsotuyod added this to the 7.18.0 milestone Sep 18, 2025
@jsotuyod jsotuyod added the a:bug PMD crashes or fails to analyse a file. label Sep 18, 2025
@jsotuyod jsotuyod mentioned this pull request Sep 18, 2025
[apex] @SuppressWarnings - allow whitespace around comma when suppressing multiple rules #5935
Closed
@pmd-actions-helper

pmd-actions-helper Bot commented Sep 18, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.

Regression Tester Report

(comment created at 2025-09-25 14:51:17+00:00 for fb58cce)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

UncleOwen
UncleOwen reviewed Sep 19, 2025
View reviewed changes
Comment thread pmd-apex/src/test/java/net/sourceforge/pmd/lang/apex/SuppressWarningsTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

adangel added a commit to jsotuyod/pmd that referenced this pull request Sep 25, 2025
@adangel
[doc] Update release notes (pmd#6074, pmd#5935)
4d67544
jsotuyod and others added 5 commits September 25, 2025 16:27
@jsotuyod @adangel
Add failing test for pmd#5935
7628675
@jsotuyod @adangel
Fix pmd#5935
df47037
@jsotuyod @adangel
[doc] Update release notes (pmd#6074, pmd#5935)
8c6a993
@adangel
[apex] Improved testcase for suppress warnings
9f7989f
@adangel
Add @AndrewStopchenko-SO as a contributor
fb58cce
@adangel
adangel force-pushed the fix/apex-suppressions branch from ecbff66 to fb58cce Compare September 25, 2025 14:33
adangel
adangel approved these changes Sep 25, 2025
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The 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
@adangel
adangel merged commit 7cf842b into pmd:main Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@UncleOwen UncleOwen UncleOwen left review comments
@adangel adangel adangel approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

a:bug PMD crashes or fails to analyse a file.

Projects

None yet

Milestone

7.18.0

Development

Successfully merging this pull request may close these issues.

[apex] @SuppressWarnings - allow whitespace around comma when suppressing multiple rules

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@jsotuyod @adangel @UncleOwen
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.