title: How to create a custom ruleprofile javascript sonarlint CLI
body: <p>I'm trying to create a custom rule profile for running a specific rule scan on directory.</p>
  
  <p>I want to run a console log check in all js files.</p>
  
  <p>I have defined a following property in environment variables.
  export -DSonar_PROFILE=D:\testProfile.json
  <br></p>
  
  <h2>testProfile.json</h2>
  
  <p>{"name":"Sonar way","ruleKeys":["ConsoleLoggingCheck","S2228"]}</p>
  
  <p>When I run sonarlint command line tool. It is scanning all rules.
  am I missing any thing here. any pointers will be helpful.</p>
  
  <p>Following is the log when I run sonarlint CLI</p>
  
  <p>D:\test\bin>sonarlint.bat<br>
  D:\test\test\bin..<br>
  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8<br>
  INFO: Java 1.7.0_80 Oracle Corporation (64-bit)<br>
  INFO: Windows 7 6.1 amd64
  INFO: SONARLINT_OPTS=-DSonar_PROFILE=D:\testProfile.json
  INFO: Index files
  INFO: 7 files indexed
  INFO: 7 source files to be analyzed
  INFO: 7/7 source files have been analyzed
  INFO:</p>
  
  <p>-------------  SonarLint Report  -------------</p>
  
  <pre><code>      12 issues (7 files analyzed)
  
        4 blocker
        3 critical
        5 major
  </code></pre>
  
  <hr>
  
  <p><br>
  <br>INFO: SonarLint HTML Report generated: D:\GScanOjetRules\Runnable <br>Jar\test\test\bin.sonarlint\
  <br>INFO: ------------------------------------------------------------------------
  <br>INFO: EXECUTION SUCCESS
  <br>INFO: ------------------------------------------------------------------------
  <br>INFO: Total time: 2.233s
  <br>INFO: Final Memory: 8M/118M</p>