Hi all
I'm beginning to work with Eclipse for some Java development. I'm quite new to Eclipse, as I am a Visual Studio developer normally.
I tried to install the CheckStyle Eclipse Plug-In and Subversive, using the Eclipse "Install new Software" feature. No errors, everything seems to have worked well. Clicking on "What software is alr...
I'm looking to find something along the lines of Checkstyle for Visual Studio. I've recently started a new gig doing .NET work and realized that coding standards here are a bit lacking. While I'm still a young guy and far from the most experienced developer I'm trying to lead by example and get things going in the right direction.
I l...
I am starting a new Java web project that will be worked on by up to 10 developers.
It will probably be hard to change once the codebase grows large, so what are the best checkstyle settings to use for methodLength and fileLength?
...
Hi there,
we have the following environment: a Windows 2008 Server with Apache 2.2.14 and SVN 1.6.6 through WebDAV. Multiple developers commit Java code from different Windows platforms.
Now we want to implement a pre-commit hook to our repository that runs Checkstyle on the committed code. We use SVNChecker (http://svnchecker.tigris.o...
Hello,
I am working on a project where we have many JSF pages - using the XHTML format.
We monitor the quality of our code using Sonar (and thus Checkstyle, PMD, FindBugs...). This works great for the Java part of our application.
Now, I want to have a tool (ideally something that could then be linked to Sonar by writing my own plugin)...
Hello, I am working on a group project for class and we are trying out CheckStyle.
I am fairly comfortable with Java but have never touched JDBC or done any database work before this.
I was wondering if there is an elegant way to avoid magic number errors in preparedStatement calls, consider:
preparedStatement = connect.prepar...
In turning off Checkstyle for a segment of code, is there a syntax that would supress only specific checks.
So rather than just
// CHECKSTYLE:OFF
code
// CHECKSTYLE:ON
you could have something like
// CHECKSTYLE:OFF:RequireThis,
code
// CHECKSTYLE:ON
In cases where we are purposely making an exception to the style, it would be nice ...
We'd like to have trivial Java property accessors using a single line syntax, so they take up much much less space, and are more readable (in terms of 'seeing' the set of accessors quickly). But we do want to enforce multi-line method syntax for everything else in our checkstyle configuration. But I'm not sure how to make this exception ...
Hi, I am new to maven and chekstyle, so need to ask some question... I want to use checkstyle in my maven based project, so in my pom.xml I have add the dependency
<dependency>
<groupId>checkstyle</groupId>
<artifactId>checkstyle</artifactId>
<version>2.4</version>
</dependency>
and also I have added the entry in plugin tag:...
I recently installed the checkstyle addon for eclipse, while it does help me make some parts of my code clearer, there are some stupid rules.
I've been capable of disabling most of those besides the using ++ is not allowed rule.
Does anyone have any idea how I can disable that one?
...
I just been given a new assignment which looks like its going to be an interesting challenge.
The customer is wanting a code style checking tool to be developed for their internal (soon to be open sourced) programming language which runs on the JVM. The language syntax is very Java like.
The customer basically wants me to produce some...
Hi,
I want a rule that checks that fields and classes are properly annotated with the java concurrency in practice annotations provided by: http://mvnrepository.com/artifact/net.jcip/jcip-annotations
Fields have to be annotated with @GuardedBy and classes have to be annotated with one of @Immutable, @ThreadSafe or @NotThreadSafe.
I h...
My maven reports are working great, all except Checkstyle and test xref. My test source is still being cross referenced at xref and not the test xref. So, when I click on the xref from within a Checkstyle report, I naturally get an error, the file isn't found. If I click on a source file, it works perfectly.
I tried testXrefLocation ...
Is there any tool to do for JSP files what checkstyle does for Java files?
The ideal would be to include JSP checking on checkstyle, but as far as I can see, this isn't possible.
I would like for example to check JSP files for :
Indentation style
Right placements of certain constructs
Tab / space check
Check for use of scriplets
Tha...
I have checkstyle plugin installed in my eclipse. How do I disable check style for a specific project in my workspace? If that is not feasible I would like to turn off checkstyle. Please advice.
...
We would like to get statistics like number of non commenting statements, number of classes, number of methods. JavaNCSS doesn't work with generics in many situations. I'm wondering if i can just use Sonar Squid specifically the CheckstyleSquidBridge class and plugin that in as a module to Checkstyle 5.1. And this would be independent...
Checkstyle is a great tool to enforce a code standards for java. We have some projects working with objective-c, and I tried to find some similar tool like checkstyle for Objective-C, but didn't get lucky.
Does anyone know that kind of tool which be used to enforce code standards for Objective-C? Thanks in advance.
...
Hi,
we are using an eclipse formatting profile, that states that line width is 125 characters and that the method parameters should be wrapped when necessary. Now this line does not get broken in two:
public FeaturePart(final Long fooBarBarBarBar, final String foo, final int sequenceNumber, final boolean fooBarBarBazBar) {
Note t...
This is my parent pom.xml (part of it) in a multi-module project:
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
...
This is my code (taken from reply posted at SO question):
package my;
import java.net.MalformedURLException;
import java.net.URL;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverte...