Having issues getting Sonar to even do a simple scan of my repo. It complains about the repo having > 1M LOC when I have specifically limited scope to one folder just to see how it’s working. How can I get help to get this running?
Hi,
Welcome to the community!
What’s the structure of your project? Does Core/lib/Core
exist in the directory analysis is kicked off from? If so, can you try removing that leading slash (so, list it like I did) and try again?
Thx,
Ann
Thanks!
No difference without leading /.
Attaching screenshot of directory structure.
Any other ideas? Seems very complicated to just get a first run completed…
Hi,
Where is analysis executed from? Is it fired from the directory above that first Core
? Because that’s the only way an inclusion of Core/lib/Core/**/*
is going to work. If you’re firing analysis from within Core
then the inclusion needs to be different.
HTH,
Ann
Not quite sure what this means: “Is it fired from the directory above that first Core
?” Do you refer to another configuration block in the settings? An example of how to set SQ up to just analyze a single folder containing JS files would be incredibly helpful.
Hi,
From what directory is the analysis command run? Where are you/the pipeline cd
ed into when the analysis command fires?
Ann
Hi,
You configure where analysis is run from in your pipeline…?
Ann
I didn’t set anything like that up, just selected repo in the SQ app to run the analysis on.
Hi,
Are you using automatic analysis?
If so, then I suppose that top-level Core
directory is the root of your project? Which means that analysis is run from within Core
and your inclusion should be lib/Core/**/*
.
HTH,
Ann