Dependencies should be explicit - How to whitelist modules to ignore while checking in package.json


(Premuditha Perera) #1

I want to whitelist couple of modules in my Angular 6 project to get rid of code smell warnings like Module 'models' is not listed as dependency in package.json.

I have added these modules into tslint.json file under no-implicit-dependencies and things work well in local environment when run the ng lint command.

but in SonarCloud, I’m still getting these errors and not so sure how to whitelist the modules. It’s great if I could get a support on this.

(Fabrice Bellingard) #2

Is your project open-source? If yes, feel free to send the link to it here, this would be useful to help you.