This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188233 - SQE uses 2 checkstyle configurations
Summary: SQE uses 2 checkstyle configurations
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: sqe tools (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: sreimers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 10:08 UTC by tomzi
Modified: 2010-06-30 10:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2010-06-30 10:08:45 UTC
If I configure checkstyle via 

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <configuration>
                    <configLocation>checkstyle.5.0.xml</configLocation>
                </configuration>
            </plugin>

Nb is also using the checkstyle configuration set in the global configuration
<home>/.netbeans\6.9\config\Preferences\org\nbheaven\sqe\codedefects\checkstyle.xml

thus in the java code nb would show 2 checkstyle entries eg linelength longer then 120 and linelength longer than 80.

However if i simply remove the Config File in the Global Configuration it would automatically write the netbeans install directory (E:/Programme/Softwareentwicklung/NetBeans 6.9/NetBeans 6.9) into this field.  If I change the java file and checkstyle checks again I'd get an error:

java.io.FileNotFoundException: E:/Programme/Softwareentwicklung/NetBeans 6.9/NetBeans 6.9

Nb should only use one checkstyle configuration, usually the one used via the project properties.