I’m using SonarQube 7.5 and Sonar Scanner 4.7.0.2747
I’ve a JavaScript project which I want to scan it using Sonar Scanner but Files under the project root directory are not scanned and displayed like .eslintrc.js, What should I do to make it appear?
I think you may have misunderstood my meaning. We do not plan to upgrade the version because of some restrictions. In this case, how can we scan all the files under the project and include configuration files similar to eslint
While that indicates what configuration you fed the scanner, I expect if you scroll down you’ll find the file was “indexed with language ‘null’”. It’s the same reason your .png files don’t appear in SonarQube.
In fact you’re right – the cause is a bit different than I thought. .eslintrc.js is considered a hidden file, and the scanner ignores hidden files. This isn’t possible to override.
First of all, thank you for your patience. If I really want to set hidden files or, to say the least, only hidden files .eslintrc.js to be scanned, it is possible to be resolved by modifying the configuration or source code?
Because some irregular code writing in this file needs to be exposed.
I’m happy to pass on the feedback that you’d like to scan these kinds of files – but today the scanner will automatically ignore hidden files, so the only way to analyze these files would be to make them not hidden.