Among the several folders that need to be excluded for our scans, there is a folder that begins with a dot. It does not get excluded automatically and my attempts to escape the dot with a backslash and/or enclosing it with quotes did not succeed. If it matters, it is the .storybook folder mentioned in the list below and it contains a tsconfig.json that leads to a bunch of errors when scanned.
There’s an interesting history here – we used to exclude such directories by default on all operating systems, but stopped doing so for Windows some time back since on Windows, files with a name starting with a dot are not necessarily hidden.
And, having just tried it on an Azure DevOps Pipeline, an exclusion of sonar.exclusions=.storybook/**/* worked exactly as expected, hiding the folder.