2

I have a project which I'm developing in IntelliJ Idea and I have formatting rules like where curly braces are to be located and so on. Is it possible to convert an IntelliJ code style into a checkstyle one so that when I run reports through Maven, I don't see warnings like "Right curly brace and next "else", "catch" and "finally" keywords should be located on the same line"...?

Thanks in advance!

carlspring
  • 31,231
  • 29
  • 115
  • 197

1 Answers1

0

Answer for your question is a maven-checkstyle-plugin.

http://maven.apache.org/plugins/maven-checkstyle-plugin/

But before using, you need to understand that maven is a separate application is not fully integrated with the idea. ie this plugin will not use the idea of ​​setting, but it will have to use a separate files configuration.

MartenCatcher
  • 2,713
  • 8
  • 26
  • 39
  • Thanks for your answer! I am well aware of the fact that they are two separate tools. One is an IDE while the other is a build tool. However, I was hoping I could get the code style from Idea converted to a rule set for Checkstyle. – carlspring Nov 23 '13 at 19:37