Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Error Prone Static Analysis Tool #70

Closed

Conversation

tool-recommender-bot
Copy link

@tool-recommender-bot tool-recommender-bot commented Jan 28, 2019

Looks like you're not using any error-checking in your Java build. This pull requests adds a static analysis tool, Error Prone, created by Google to find common errors in Java code. For example, running mvn compile on the following code:

public boolean validate(String s) {
	return s == this.username;
}

would identify this error:

[ERROR] src/main/java/HelloWorld.java:[17,17] error: [StringEquality] String comparison using reference equality instead of value equality
[ERROR]     (see https://errorprone.info/bugpattern/StringEquality)

If you think you might want to try out this plugin, you can just merge this pull request. Please feel free to add any comments below explaining why you did or did not find this recommendation useful.

Adds Error Prone maven plugin in pom.xml to automatically check for Java errors during project builds.
@Xylakant
Copy link
Member

As per the readme, this repo is unmaintained. Please stop using automated tools with a lack of understanding against random repos on github.

@Xylakant Xylakant closed this Jan 28, 2019
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.

2 participants