0

I am running Sonarqube scan on my angular 7 application and i see that Sonar report is complaining "Unexpected unknown pseudo-element selector "::ng-deep"", does any one know how to mark this rule as ignore or remove this rule.

I tried using //NOSONAR , but no luck.

Auspex
  • 2,175
  • 15
  • 35
OptimusPrime
  • 85
  • 2
  • 4
  • 12

2 Answers2

0

Create a new quality profile and add rules you want and apply on the project. or exclude that rule from current applied quality profile

Shubham Gorlewar
  • 404
  • 4
  • 11
  • this worked for me. "You need to do it in SonarQube UI. Go to Rules tab, find this rule and edit parameter value for the profile you use for your project(s)." – OptimusPrime Feb 24 '20 at 16:30
0

Sonarqube does not allow us to edit the root profile so need to create copy of the same.Once a copy of same profile being created then can deactivate the desired rule. Imp point to note in order the sonarqube picks the copied version make it default.

To create a copy of rule:-

Quality Profiles > select the profile > right click on setting icons > select copy option from dropdown > edit the copied version > make it default

Manrah
  • 556
  • 3
  • 13