Closed xgouchet closed 2 years ago
You can disable that warning yourself by creating a bsconfig.json
at the root of your vscode workspace, and then adding this content:
{
"diagnosticFilters": [{
"src": "tests/**/*",
"codes": [1013]
]]
}
Thanks didn't know that. Is there a documentation on all the diagnostic filters and which code they have?
The list of codes that brighterscript includes is found in this file, but each bsc plugin can have its own list of filters as well.
There's also this small section in the brighterscript readme showing how to use diagnosticFilters
.
I'm using Roca to write and run unit tests in my projects. Test files live in a
tests
folder, and by definition they are not referenced in either thesource
orcomponents
folders, meaning that all my test files have a warning:Could we disable the reference check for the
tests
folder?