Skip to content

[apex] fixed WITH SECURITY_ENFORCED regex to recognise line break characters#2397

Merged
adangel merged 2 commits into
pmd:masterfrom
kieranlblack:fixCRUDRule
Apr 4, 2020
Merged

[apex] fixed WITH SECURITY_ENFORCED regex to recognise line break characters#2397
adangel merged 2 commits into
pmd:masterfrom
kieranlblack:fixCRUDRule

Conversation

@kieranlblack

@kieranlblack kieranlblack commented Apr 3, 2020

Copy link
Copy Markdown

PR Description:

Rule: ApexCrudViolation

Modified the regex used when checking if WITH SECURITY_ENFORCED is used to ensure it will account for any extra line break characters due to stylistic choices. Before, newlines would cause a false negative.

This continues to fix #2210

@ghost

ghost commented Apr 3, 2020

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

@adangel

adangel commented Apr 3, 2020

Copy link
Copy Markdown
Member

@adangel adangel added this to the 6.23.0 milestone Apr 4, 2020

@adangel adangel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool, thanks!

@adangel adangel self-assigned this Apr 4, 2020
@adangel adangel merged commit 746797e into pmd:master Apr 4, 2020
adangel added a commit that referenced this pull request Apr 4, 2020
adangel added a commit that referenced this pull request Apr 4, 2020
[apex] fixed WITH SECURITY_ENFORCED regex to recognise line break characters #2397
@kieranlblack kieranlblack deleted the fixCRUDRule branch April 4, 2020 14:19
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.

[apex] ApexCRUDViolation: false positive with security enforced with line break [apex] ApexCRUDViolation: Support WITH SECURITY_ENFORCED

2 participants