Skip to content

[java] Update rule SuspiciousOctalEscape#3527

Merged
adangel merged 2 commits into
pmd:pmd/7.0.xfrom
adangel:pmd7-update-SuspiciousOctalEscape
Oct 8, 2021
Merged

[java] Update rule SuspiciousOctalEscape#3527
adangel merged 2 commits into
pmd:pmd/7.0.xfrom
adangel:pmd7-update-SuspiciousOctalEscape

Conversation

@adangel

@adangel adangel commented Sep 30, 2021

Copy link
Copy Markdown
Member

Describe the PR

Part of #2701

@adangel adangel added this to the 7.0.0 milestone Sep 30, 2021
@ghost

ghost commented Sep 30, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 810 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 31208 violations,
introduces 21308 new violations, 1 new errors and 0 new configuration errors,
removes 136425 violations, 8 errors and 3 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 4 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 31204 violations,
introduces 21205 new violations, 1 new errors and 0 new configuration errors,
removes 137229 violations, 8 errors and 3 configuration errors.
Full report

Generated by 🚫 Danger

@adangel

adangel commented Oct 8, 2021

Copy link
Copy Markdown
Member Author

I find it a bit difficult to see, what exactly is suspicious:

https://github.com/spring-projects/spring-framework/tree/v5.0.6.RELEASE/spring-web/src/test/java/org/springframework/protobuf/OuterSample.java#L31

      "ah\030\002 \001(\0132\n.SecondMsg\"\031\n\tSecondMsg\022\014\n\004bla" +

I think, it is this sequence: \0132 - this is a octal escape \013 followed by 2...

It would be better if the rule explicitly would include the suspicious octal escape in the violation message...

@adangel adangel self-assigned this Oct 8, 2021

@adangel adangel left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

According to the regression tester report, this looks fine. I'm going to merge this.

@adangel adangel merged commit 24ab5ab into pmd:pmd/7.0.x Oct 8, 2021
@adangel adangel deleted the pmd7-update-SuspiciousOctalEscape branch October 8, 2021 09:58
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
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.

1 participant