title: How to ignore code blocks in Sonar code coverage analysis?
body: <p>In our code, there are quite a lot of logging fragments like this:</p>
  
  <pre><code>if(logger.isDebugEnabled()) {
      logger.debug("...")
  }
  </code></pre>
  
  <p>Is it possible to configure SonarQube so that such code blocks are not included in the code coverage analysis? Writing tests to cover such debug statements does not seem to make much sense...</p>
  
  <p>I found out how to:</p>
  
  <ul>
  <li>ignore entire files from coverage analysis</li>
  <li>ignore issues in code blocks</li>
  </ul>
  
  <p>But I did not find a way of excluding a code block from the coverage analysis only.</p>