Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Checkstyle reports different issues on different r

rajeshkumar created the topic: Checkstyle reports different issues on different r

Checkstyle reports different issues on different runs

I’m seeing something strange with the checkstyle plugin.

We are using Checkstyle plugin 2.5 and configure it using a checkstyle
file in a jar that is an extension of our pom.

Thus:
[code language=”css”]
<project>
<properties>
<checkstyle-maven-plugin.version>2.5</checkstyle-maven-plugin.version>
</properties>
<build>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle-maven-plugin.version}</version>
<configuration>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<configLocation>iris_checks.xml</configLocation>
</configuration>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.example</groupId>
<artifactId>build-resources</artifactId>
<version>1.0.4</version>
</extension>
</extensions>
</build>
</project>
[/code]
When I run the following command line:
mvn clean checkstyle:checkstyle && cp target/checkstyle-result.xml .
&& mvn clean checkstyle:checkstyle && diff checkstyle-result.xml
target/checkstyle-result.xml

I sometimes see differences like:
[code language=”css”]
> <error line=”12″ column=”5″ severity=”warning” message=”Missing a Javadoc
> comment.”
> source=”com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck”/>
279a281,286
> <error line=”122″ column=”9″ severity=”warning” message=”Missing a Javadoc
> comment.”
> source=”com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck”/>
> <error line=”123″ column=”9″ severity=”warning” message=”Missing a Javadoc
> comment.”
> source=”com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck”/>
> <error line=”124″ column=”9″ severity=”warning” message=”Missing a Javadoc
> comment.”
> source=”com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck”/>
> <error line=”125″ column=”9″ severity=”warning” message=”Missing a Javadoc
> comment.”
> source=”com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck”/>
> <error line=”126″ column=”9″ severity=”warning” message=”Missing a Javadoc
> comment.”
> source=”com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck”/>
> <error line=”127″ column=”9″ severity=”warning” message=”Missing a Javadoc
> comment.”
> source=”com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck”/>
[/code]
I don’t change code between runs, so I assume this may never happen.
What could cause this?

With regards,
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x