title: How to exclude specific SonarQube issues by file contents
body: <p>Using SonarQube 4.1.1 on Maven based Java project.</p>
  
  <p>I have a few rules that I want to exclude on specific Java files.</p>
  
  <p>Here are my use cases:-</p>
  
  <ol>
  <li>Exclude a set of issues </li>
  <li>That set of issues must be excluded only when the files have some regular expression.</li>
  <li>I do not want to blanket exclude the issues - i.e. I intend to catch these issues in other files. </li>
  <li>I do not want blanket exclude the files i.e. I intend to catch other issues on these files.</li>
  </ol>
  
  <p>I don't see any option as to how to accomplish this using Exclusions on the SonarQube Dashboard.   </p>
  
  <p><img src="https://i.stack.imgur.com/4KmTR.png" alt="somewhat close but these do not meet my use cases"></p>
  
  <p><strong>Question</strong>:</p>
  
  <p>What are my options to address my use cases other than (obviously) exclude these on a case by case basis ?</p>