Skip to content

Commit

Permalink
Support generating multiple bug reports (#1776)
Browse files Browse the repository at this point in the history
* try to implement a bug reporter dispatching bug instances

* extract interface to configure bug reporter during init phase

* chore: enhance exception handling

* feat: support independent output stream for XML reporter

* extract method to reuse for other kinds of reporter

* feat: support file path setting for other reporters

* resolve a warning reported by SQ

https://sonarcloud.io/project/issues?id=com.github.spotbugs.spotbugs&issues=AXzFIi_qkP_G57_BaZmZ&open=AXzFIi_qkP_G57_BaZmZ&pullRequest=1776

* test: add a test for BugReporterDispatcher

* bypass dispatcher if only one reporter is used

* docs: explain the change in the manual and the changelog

* docs: explain the change in the manual and the changelog

* test: add test cases to cover more changes

* chore: apply spotless

* test: add test cases to cover more changes

* test: set charcode to PrintStream

* test: add test cases to cover more changes

* test: stop provide a null to non-null arg
  • Loading branch information
KengoTODA committed Nov 3, 2021
1 parent cf0b796 commit 6882383
Show file tree
Hide file tree
Showing 12 changed files with 707 additions and 234 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ Currently the versioning policy of this project follows [Semantic Versioning v2.

### Added
* Rule `DCN_NULLPOINTER_EXCEPTION` covers catching NullPointerExceptions in accordance with SEI Cert rule [ERR08-J](https://wiki.sei.cmu.edu/confluence/display/java/ERR08-J.+Do+not+catch+NullPointerException+or+any+of+its+ancestors) ([#1740](https://github.com/spotbugs/spotbugs/pull/1740))
* Multiple types of report can be generated in batch. Set multiple commandline options for report configuration like `-html=report/spotbugs.html -xml:withMessages=report/spotbugs.xml`.

### Fixed
* False negative about the rule ES_COMPARING_STRINGS_WITH_EQ ([#1764](https://github.com/spotbugs/spotbugs/issues/1764))

### Deprecated
* `-output` commandline option is deprecated. Use commandline options for report configuration like `-xml=spotbugs.xml` instead.

## 4.4.2 - 2021-10-08
### Changed
- Add bug code to report in fancy-hist.xsl ([#1688](https://github.com/spotbugs/spotbugs/pull/1688))
Expand Down

0 comments on commit 6882383

Please sign in to comment.