Thanks a lot for your quick answers.
I got your point but detected a potentially unexpected behavior while trying to set better parameters to SonarLint for Command Line execution, thanks to your advice, Julien.
It seems the program won't take account of --tests if its path is not included in --src param value.
>cmd.exe /c ..\sonarlint-cli-2.0\bin\sonarlint.bat --src **/src/main/** --tests **/src/test/** --exclude **.jasper
INFO: Java 1.8.0_05 Oracle Corporation (64-bit)
INFO: Windows 7 6.1 amd64
INFO: Connected mode (20161007)
INFO: Using storage for server 'PIC v2' (last update 30/11/16 11:12)
INFO: Index files
INFO: 190 files indexed
INFO: Configured Java source version (sonar.java.source): none
INFO: JavaClasspath initialization
INFO: Bytecode of dependencies was not provided for analysis of source files, you might end up with less precise results. Bytecode can be provided using sonar.java.libraries property
INFO: JavaClasspath initialization (done) | time=4ms
INFO: JavaTestClasspath initialization
INFO: Bytecode of dependencies was not provided for analysis of test files, you might end up with less precise results. Bytecode can be provided using sonar.java.test.libraries property
INFO: JavaTestClasspath initialization (done) | time=1ms
INFO: Java Main Files AST scan
INFO: 53 source files to be analyzed
INFO: Java Main Files AST scan (done) | time=3825ms
INFO: 53/53 source files have been analyzed
INFO: Java Test Files AST scan
INFO: 0 source files to be analyzed
INFO: Java Test Files AST scan (done) | time=0ms
INFO: 0/0 source files have been analyzed
INFO: 2 source files to be analyzed
INFO: Unit Test Coverage Sensor is started
INFO: 2/2 source files have been analyzed
INFO: Integration Test Coverage Sensor is started
INFO: Overall Coverage Sensor is started
INFO: 55 source files to be analyzed
INFO: 55/55 source files have been analyzed
INFO:
------------- SonarLint Report -------------
85 issues (190 files analyzed)
17 major
66 minor
2 info
-------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 6.979s
INFO: Final Memory: 4M/96M
INFO: ------------------------------------------------------------------------
2nd call, src includes tests, they get analyzed.
>cmd.exe /c ..\sonarlint-cli-2.0\bin\sonarlint.bat --src **/src/** --tests **/src/test/** --exclude **.jasper
INFO: Java 1.8.0_05 Oracle Corporation (64-bit)
INFO: Windows 7 6.1 amd64
INFO: Connected mode (20161007)
INFO: Using storage for server 'PIC v2' (last update 30/11/16 11:12)
INFO: Index files
INFO: 200 files indexed
INFO: Configured Java source version (sonar.java.source): none
INFO: JavaClasspath initialization
INFO: Bytecode of dependencies was not provided for analysis of source files, you might end up with less precise results. Bytecode can be provided using sonar.java.libraries property
INFO: JavaClasspath initialization (done) | time=0ms
INFO: JavaTestClasspath initialization
INFO: Bytecode of dependencies was not provided for analysis of test files, you might end up with less precise results. Bytecode can be provided using sonar.java.test.libraries property
INFO: JavaTestClasspath initialization (done) | time=0ms
INFO: Java Main Files AST scan
INFO: 53 source files to be analyzed
INFO: Java Main Files AST scan (done) | time=4118ms
INFO: 53/53 source files have been analyzed
INFO: Java Test Files AST scan
INFO: 10 source files to be analyzed
INFO: Java Test Files AST scan (done) | time=297ms
INFO: 10/10 source files have been analyzed
INFO: 2 source files to be analyzed
INFO: Unit Test Coverage Sensor is started
INFO: 2/2 source files have been analyzed
INFO: Integration Test Coverage Sensor is started
INFO: Overall Coverage Sensor is started
INFO: 55 source files to be analyzed
INFO: 55/55 source files have been analyzed
INFO:
------------- SonarLint Report -------------
85 issues (200 files analyzed)
17 major
66 minor
2 info
-------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 7.582s
INFO: Final Memory: 4M/98M
INFO: ------------------------------------------------------------------------
Alexis.