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

Summary: SQE uses 2 checkstyle configurations
Product: third-party Reporter: tomzi <tomzi>
Component: sqe toolsAssignee: sreimers <sreimers>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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.