Hi,
c:\whatever>sonarlint -h
c:\tools\sonarlint-cli-1.0\bin\..
INFO:
INFO: usage: sonarlint [options]
INFO:
INFO: Options:
INFO: -D,--define <arg> Define property
INFO: -e,--errors Produce execution error messages
INFO: -h,--help Display help information
INFO: -v,--version Display version information
INFO: -X,--debug Produce execution debug output
INFO: -i,--interactive Run interactively
INFO: --html-report <path> HTML report output path (relative or absolute)
INFO: --src <glob pattern> GLOB pattern to identify source files
INFO: --tests <glob pattern> GLOB pattern to identify test files
INFO: --charset <name> Character encoding of the source files
A test with an example project that has 81 Java sources under /src shows different
behaviour with using:
sonarlint -Dsonar.sources=/src (or -Dsonar.sources=src)
=> INFO: 81 files indexed
and
sonarlint --src **/src/**
=> INFO: 78 files indexed
The glob pattern **/src/** was the only one to make it work, all others
like f.e. */src/** resulted in :
WARN: No files to analyze
What's the reason for the missing 3 files not indexed, when using --src parameter ?
//Gilbert