Skip to content

DL3041, DL3033: Handle RPM package with plus sign#1125

Merged
m-ildefons merged 1 commit intohadolint:masterfrom
samcranford:fix/package_with_plus_sign
Sep 15, 2025
Merged

DL3041, DL3033: Handle RPM package with plus sign#1125
m-ildefons merged 1 commit intohadolint:masterfrom
samcranford:fix/package_with_plus_sign

Conversation

@samcranford
Copy link
Copy Markdown

@samcranford samcranford commented Sep 11, 2025

What I did
Added to Hadolint rule DL3041 and DL3033 to allow plus signs for a.) package names which contain a hyphen and b.) versioning.

How I did it
Updated DL3033.hs isVersionChar allowable characters to allow '+'
Updated DL3041.hs isVersionChar allowable characters '+'
Added tests to DL3033Spec.hs for package name with hyphen and plus sign.
Added tests to DL3041Spec.hs for package name with hyphen and plus sign.

How to verify it
Unit Tests:
All unit tests pass successfully

Copy link
Copy Markdown
Member

@m-ildefons m-ildefons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the contribution.

@m-ildefons m-ildefons merged commit aa6bb0c into hadolint:master Sep 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants