Lars Ködderitzsch | 13 Feb 21:28 2014
Picon

Eclipse Checkstyle Plugin 5.7.0 is out

Hey Checkstyle disciples!

Following on the heels of Checkstyle 5.7 the Eclipse Checkstyle Plugin 
(eclipse-cs) 5.7.0 has just been released, integrating the 
aforementioned new core version.

As usual get it from the update site:
http://eclipse-cs.sourceforge.net/update/

or from Eclipse Marketplace:
http://marketplace.eclipse.org/content/checkstyle-plug

or the Eclipse Marketplace client within Eclipse itself.

Eclipse versions from 3.6.x to 4.3.x are supported in principle, 
personally I only tested on the Kepler release (4.3).

Kind regards,
Lars Ködderitzsch

PS: I, for one, welcome our new Checkstyle overlords!

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
Roman Ivanov | 8 Feb 22:16 2014
Picon

Checkstyle needs your feedback on Java 8 and JavaDoc support

Hello Checkstyle User,

Java 8 is about to release. Checkstyle crashes on Java 8 code due to new syntax changes. Unfortunately ANTLR
grammar update is not a simple task, and none of our tiny development team can handle it before Java8 is
released or even this year.

I decided to file the proposal:
https://github.com/checkstyle/checkstyle/wiki/Checkstyle-GSoC-2014-Project-Ideas to Google
Summer Of Code 2014 in order to find talented students who can focus/work on this tasks for some period of time.

All I need/ask from you is either of the following: 
- 1 question survey, without registration - https://www.surveymonkey.com/s/MNFHYSJ ;
- reply to this mail thread to show that you need this feature;
- if you represent organization that participate in GSoC 2014 and could give us support vote please let me
know .

For us it is required to understand how much you need these features.
Please reshare this request to other developers who use Checkstyle.

Thanks,
Roman Ivanov
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
Roman Ivanov | 5 Feb 07:52 2014
Picon

that mail-list is moved google groups

Hi,

Attention! That mail list is going to be closed.

Chckstyle development team decided to move mail-list to Google Groups.

New location is: https://groups.google.com/forum/#!forum/checkstyle

Archive for SourceForge's mail list will be availbale at http://blog.gmane.org/gmane.comp.java.audit.checkstyle.user

Thanks,
Roman Ivanov
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
Scott Duchin | 15 Jan 03:05 2014

new bug

I do not have "create +" showing on the bug report page.
So I am using this forum to report a bug.

the problem is if you break before "throws" on method definition the wrapped indentation does not work

¤¤public void doGet(HttpServletRequest req, HttpServletResponse resp)

¤¤¤¤¤¤throws IOException {

gets the following message:
.....java:18: method def throws at indentation level 6 not at correct indentation, 4

i think of the throws as continuation of method def wrapped line
basic offset was 2, so double indent for wrapped starting at 2 is 6
all other wraps work fine for me
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
Andrew Pennebaker | 6 Nov 17:29 2013

Checking for improperly namespaced code?

Improperly namespaced code is giving our Windows developers trouble, but we don't know which code is to blame, as most of our developers use Mac, whose version of javac allows improper namespaces.

E.g., Mac javac allows package org.blah.blah.blah; in .java files that reside in src/main/java/com/blah/blah/blah/. Windows javac fails when encountering such a discrepancy.

This leads to much confusion and tearing of hair, as there is much code on our Macs that will fail to compile when we eventually try it out in Windows.

Our codebase is getting too large to check each package declaration manually. Is there was a way to configure checkstyle.xml and/or maven-checkstyle-plugin to report improper namespacing, when package declarations don't match up with the actual directory structure?

--
Cheers,

Andrew Pennebaker
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
Andrew Pennebaker | 7 Oct 16:55 2013

mvn checkstyle:checkstyle -q hides the warnings

I'd like to hide the INFO sections before and after Checkstyle warnings, so I tried `mvn checkstyle:checkstyle -q`, but this hides all output.

Is there a configuration tweak I can do to maven-checkstyle-plugin in my pom to show checkstyle warnings, but hide the INFO sections before and after?
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
Andrew Pennebaker | 7 Oct 16:45 2013

maven-checkstyle-plugin neglects to scan src/test/..*.java

I would like to enforce a rule of no star imports across all Java files, including jUnit tests. If I use a star import in a src/main/..*.java file, Checkstyle correctly reports:

$ mvn checkstyle:checkstyle
...
Using the '.*' form of import should be avoided - java.net.*.
...

However, if I use a star import in src/test/..*.java, Checkstyle reports no such error.

$ mvn checkstyle:checkstyle
...
[INFO] Starting audit...
Audit done.
...

* Is there a maven-checkstyle-plugin rule that can add src/test/**/*.java to the list of locations to scan?
* Could the next version of maven-checkstyle-plugin check this location by default?
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
Andrew Pennebaker | 27 Sep 16:54 2013

Chocolatey package for Windows users?

I love how Ubuntu users can "sudo apt-get install checkstyle", and Mac users can "brew install checkstyle"! It makes setting up checkstyle for the first time so much easier.

Could we make a Chocolatey package for checkstyle, so that Windows users can "chocolatey install checkstyle"?
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
Tony HEDOUX | 20 Aug 16:44 2013
Picon

Check for <at> param sentence format

Hi,

I'm looking for a way to check the format of java <at> param comments.

For example, I want to ensure these comments begin with an uppercase and do not finished with a point.

I can achieve this easily on Class parameter with the WriteTag checker. But I can't find a way to do it works for a method comments.

Any clue about this?

Thx for help,

Tony
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
mark.c.determan | 16 Aug 17:05 2013

False report of AvoidInlineConditionals?

I am seeing a false violation for AvoidInlineConditional, when using Checkstyle 5.6.

 

The java code that triggers the Checkstyle violation is:

 

    //This is a SQL statement and not an inline conditional

    private static final String NON_ADMIN_USER_QUERY =

        "INSERT INTO TEMP_PERMISSIONS (RESOURCE_ID) SELECT distinct " +

        "V_ENTITY_PERMISSION.ENTITY_ID FROM V_ENTITY_PERMISSION, %s resource_table " +

        "where V_ENTITY_PERMISSION.ENTITY_ID = resource_table.%s " +

        "and V_ENTITY_PERMISSION.MEMBER_GUID in (%s) and V_ENTITY_PERMISSION.ENTITY_TYPE = ? " +

        "and V_ENTITY_PERMISSION.ROLE <= ? and resource_table.CUSTOMER_STORAGE_ID = ? " +

        "and resource_table.CUSTOMER_STORAGE_ID = V_ENTITY_PERMISSION.CUSTOMER_STORAGE_ID " +

        "and V_ENTITY_PERMISSION.MEMBER_TYPE in (%s)";

 

Is this a potential CheckStyle bug, or is there a way to configure CheckStyle to avoid falsely reporting a violation for AvoidInlineConditional?

 

Mark C. Determan

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
John D. Ament | 8 Jul 02:06 2013
Picon

Enforcing no author tags in javadocs

Hi,

Is it possible to configure a javadoc check currently that ensures that no <at> author tag is present?  I tried plugging in some regexs, but didn't quite work as expected.

John
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Checkstyle-user mailing list
Checkstyle-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/checkstyle-user

Gmane