Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added code-quality assurance tools to pom.xml #16

Merged
merged 8 commits into from
Oct 14, 2017

Conversation

charlesdaniels
Copy link
Contributor

  • Added CheckStyle to perform static analysis on the Recaf codebase.

    • View output on the console with "mvn checkstyle:check".
  • Added FindBugs to check for common anti-patterns that tend to cause
    bugs.

    • View the output on the console with "mvn clean compile; mvn
      findbugs:check".

    • View the output in the GUI with "mvn clean compile; mvn
      findbugs:gui".

  • "mvn site" should now include HTML versions of the CheckStyle and
    FindBugs reports. Note that for the FindBugs one to show up, you might
    need to run "mvn clean compile" before "mvn site".

  • In the future, the project should be configured to refuse to compile
    if any CheckStyle or FindBugs issues are present (i.e. after the
    standing issues are fixed).

* Added CheckStyle to perform static analysis on the Recaf codebase.

	* View output on the console with "mvn checkstyle:check".

* Added FindBugs to check for common anti-patterns that tend to cause
  bugs.

	* View the output on the console with "mvn clean compile; mvn
	  findbugs:check".

	* View the output in the GUI with "mvn clean compile; mvn
	  findbugs:gui".

* "mvn site" should now include HTML versions of the CheckStyle and
  FindBugs reports. Note that for the FindBugs one to show up, you might
  need to run "mvn clean compile" before "mvn site".

* In the future, the project should be configured to refuse to compile
  if any CheckStyle or FindBugs issues are present (i.e. after the
  standing issues are fixed).

	* For CheckStyle: http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html

	* For FindBugs: http://memorynotfound.com/findbugs-maven-plugin-fail-build/
…pile.

There were lots of method where JavaDoc was throwing errors due to
description fields not being filled out. I have filled all of them in,
and done my best to make my descriptions accurate. There were a few
places where I was insufficiently familiar with the code and simply left
TODOS.

More work needs to be done to get the JavaDoc for this project into a
useful state, but it (the JavaDoc) at least actually compiles now.
charlesdaniels and others added 4 commits October 14, 2017 16:30
This reduced the number of checkstyle warnings by about 400, and should
provide a good starting point for ongoing code style and quality
improvement.
* Added CheckStyle to perform static analysis on the Recaf codebase.

	* View output on the console with "mvn checkstyle:check".

* Added FindBugs to check for common anti-patterns that tend to cause
  bugs.

	* View the output on the console with "mvn clean compile; mvn
	  findbugs:check".

	* View the output in the GUI with "mvn clean compile; mvn
	  findbugs:gui".

* "mvn site" should now include HTML versions of the CheckStyle and
  FindBugs reports. Note that for the FindBugs one to show up, you might
  need to run "mvn clean compile" before "mvn site".

* In the future, the project should be configured to refuse to compile
  if any CheckStyle or FindBugs issues are present (i.e. after the
  standing issues are fixed).

	* For CheckStyle: http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html

	* For FindBugs: http://memorynotfound.com/findbugs-maven-plugin-fail-build/
@Col-E Col-E merged commit 1db3b10 into Col-E:master Oct 14, 2017
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.

None yet

2 participants