Skip to content

[Umbrella] Use SpotBugs to improve code quality #532

@kaijchen

Description

@kaijchen

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the proposal

SpotBugs is a program which uses static analysis to look for bugs in Java code.

SpotBugs checks for more than 400 bug patterns. Bug descriptions can be found here

For example: #527

Task list

  • DM_NUMBER_CTOR
  • EI_EXPOSE_REP
  • EI_EXPOSE_REP2
  • EI_EXPOSE_STATIC_REP2
  • IS2_INCONSISTENT_SYNC
  • MS_EXPOSE_REP
  • MS_PKGPROTECT
  • MS_CANNOT_BE_FINAL
  • REC_CATCH_EXCEPTION
  • RV_RETURN_VALUE_IGNORED_BAD_PRACTICE
  • SC_START_IN_CTOR
  • SE_BAD_FIELD
  • SWL_SLEEP_WITH_LOCK_HELD
  • THROWS_METHOD_THROWS_RUNTIMEEXCEPTION
  • THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION
  • THROWS_METHOD_THROWS_CLAUSE_THROWABLE
  • URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD
  • UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions