Skip to content

[java] Update junit annotation rules#3176

Merged
adangel merged 6 commits into
pmd:pmd/7.0.xfrom
oowekyala:java-update-junit-annotation-rules
Mar 30, 2021
Merged

[java] Update junit annotation rules#3176
adangel merged 6 commits into
pmd:pmd/7.0.xfrom
oowekyala:java-update-junit-annotation-rules

Conversation

@oowekyala

@oowekyala oowekyala commented Mar 28, 2021

Copy link
Copy Markdown
Member

Describe the PR

Update 4 related rules in bestpractices.xml:

  • JUnit4SuitesShouldUseSuiteAnnotation
  • JUnit4TestShouldUseAfterAnnotation
  • JUnit4TestShouldUseBeforeAnnotation
  • JUnit4TestShouldUseTestAnnotation

Both JUnit4TestShouldUse(After|Before)Annotation now are more conservative when finding setUp/tearDown methods.

Related issues

Ready?

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

@oowekyala oowekyala added this to the 7.0.0 milestone Mar 28, 2021
@ghost

ghost commented Mar 28, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 7730 new violations, 605 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 1119 violations,
introduces 10613 new violations, 601 new errors and 0 new configuration errors,
removes 237354 violations, 5 errors and 2 configuration errors.
Full report

Generated by 🚫 Danger

@oowekyala

oowekyala commented Mar 28, 2021

Copy link
Copy Markdown
Member Author

From seeing the diff report, the violations are 1-to-1 with master

@adangel adangel self-assigned this Mar 30, 2021
@adangel adangel merged commit 04d5461 into pmd:pmd/7.0.x Mar 30, 2021
@oowekyala oowekyala deleted the java-update-junit-annotation-rules branch March 30, 2021 18:04
@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.

2 participants