Vivek Dhiman
Vivek Dhiman

Reputation: 1995

Checkstyle Issues In IntelliJIdea

I have added the checkstyle plugins to take care of coding restriction. I fetched the checkstyle.xml from sonar cube server and added in plugin config. As shown :

When I try to check the current file. It shows me 3 warnings which actually should be errors. Moreover, On sonar server report there are 8 error. Therefore I am missing 5 errors as well as there warning that are coming as warning should display as errors. Any Idea how to fix it.

enter image description here

Upvotes: 0

Views: 495

Answers (1)

James
James

Reputation: 521

The Checkstyle-IDEA plugin aims to match the results of the Checkstyle command line tool, not Sonar.

If your results differ from the command line tool then please raise an issue on the GitHub project page. Otherwise, the likely cause is that the exported Checkstyle rules file does not match the Sonar configuration, which would be best raised with the Sonar team.

Upvotes: 1

Related Questions