Top "Checkstyle" questions

Checkstyle is a static analysis tool for checking compliance of Java code to standards.

How to disable a particular checkstyle rule for a particular line of code?

I have a checkstyle validation rule configured in my project, that prohibits to define class methods with more than 3 input …

java checkstyle
Checkstyle: How to Resolve "Hidden Field" Error

I am getting this checkstyle error: 'serverURL' hides a field in this private static void setServerURL(final String serverURL) { Utility.…

java eclipse checkstyle
Ignoring of Checkstyle warnings with annotation @SuppressWarnings

I try to ignore or disable some useless warnings in eclipse by checkstyle with annotation @SuppressWarnings like How to disable …

java eclipse checkstyle
Disable maven checkstyle

I want to execute a maven target but checkstyle errors forbids that. I have no time right now to correct …

maven checkstyle
Is SonarQube Replacement for Checkstyle, PMD, FindBugs?

We are working on a web project from scratch and are looking at the following static code analysis tools. Conventions (…

checkstyle findbugs sonarqube pmd
Checkstyle vs. PMD

We are introducing static analysis tools into the build system for our Java product. We are using Maven2 so Checkstyle …

java static-analysis findbugs checkstyle pmd
Intellij IDEA checkstyle

I've got a problem trying to import my check-style to IDEA 14. That's what I do: File -> Settings -&…

java intellij-idea checkstyle
How to suppress all checks for a file in Checkstyle?

I'm doing an override for a third party class and I want to suppress all checks for it (since I'm …

java checkstyle
Why is package-info.java useful?

When I run CheckStyle over my Java project it says Missing package-info.java file. for some classes, but not all …

java maven checkstyle
Checkstyle : always receive File contains tab characters (this is the first instance)

I'm using Checkstyle for Java in Eclipse IDE. I don't know in every java file, at second line, I always …

java eclipse checkstyle