Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Don't override default effort and report level #6

Merged
merged 4 commits into from Nov 10, 2016

Conversation

eduardb
Copy link
Contributor

@eduardb eduardb commented Nov 10, 2016

Tracked in JIRA by PT-312

Scope of the PR

The effort and report level of FindBugs were enforced by us, overriding the defaults, but this is something that a user might not want. Leave the defaults in place, and let the user choose if he wants other values.

Considerations/Implementation Details

Really straight forward, just remove setting the values in the task configurator.

Since by default FindBugs is not that restrictive anymore, LowPriorityViolator.java was updated to contain a violation with priority 3 that will get picked up with the defaults.

Testing

Updated (fix) test that said that it should fail build when threshold is passed

Added a test to showcase how one can change the effort and report level

Copy link
Contributor

@mr-archano mr-archano left a comment

Choose a reason for hiding this comment

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

Good stuff! Just minor remark 👍

maxErrors = 0
maxWarnings = 1
}''')
.withFindbugs('findbugs { effort = \'max\' \n reportLevel = \'low\'}')
Copy link
Contributor

Choose a reason for hiding this comment

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

you could use " instead of escaping '

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 0bd326a

@mr-archano mr-archano merged commit b1bad23 into master Nov 10, 2016
@mr-archano mr-archano deleted the feature/PT-311/PT-312_findbugs_defaults branch November 10, 2016 16:36
@mr-archano mr-archano mentioned this pull request Nov 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants