title: How to get (IntelliJ + checkstyle code formatting) working?
body: <p>I followed the instructions in this response: <a href="https://stackoverflow.com/a/35273850/1122470">https://stackoverflow.com/a/35273850/1122470</a> </p>
  
  <p>However, after using the automatic formatting <kbd><code>Ctrl</code></kbd><kbd><code>Shift</code></kbd><kbd><code>Alt</code></kbd><kbd><code>L</code></kbd>, the code was reformatted for sure, yes, but I am not sure if it was according to the checkstyle.xml</p>
  
  <p>When I try to check for violations using <code>gradlew checkstyle</code> all the previous errors seem to remain.</p>
  
  <p>Any suggestions on how to get the formatting done according to the checkstyle rules using the plugin?</p>
  
  <p>Edit: adding config screenshots</p>
  
  <p><a href="https://i.stack.imgur.com/K7TCH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K7TCH.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Nmp3e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nmp3e.png" alt="Codestyle settings"></a></p>