-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(chrome-scans): Add ChromiumComponentsShouldUseWebScanner
rule
#871
Conversation
Codecov Report
@@ Coverage Diff @@
## main #871 +/- ##
==========================================
+ Coverage 73.70% 74.78% +1.08%
==========================================
Files 398 422 +24
Lines 12046 13017 +971
==========================================
+ Hits 8878 9735 +857
- Misses 3168 3282 +114
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -520,4 +520,8 @@ HowToFix: {2} | |||
Condition: {3}</value> | |||
<comment>{0} is id, {1} is description, {2} is how to fix, and {3} is condition</comment> | |||
</data> | |||
<data name="ChromiumComponentsShouldUseWebScanner" xml:space="preserve"> | |||
<value>Chromium components should be scanned with a web-based scanner.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "how to fix" guidance suggests K4W.
{ | ||
Info.Description = Descriptions.ChromiumComponentsShouldUseWebScanner; | ||
Info.HowToFix = HowToFix.ChromiumComponentsShouldUseWebScanner; | ||
Info.ErrorCode = EvaluationCode.Error; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At one point, someone mentioned possibly treating this as a framework issue, which would mean creating a web page and linking to it here. Did we ultimately decide against that approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't aware of that discussion and Fer is OOF so we won't be able to get her input for a while. Is that something that had been settled previously?
#### Details Adding test utility suggested in #871 (comment). Initially this PR only leverages the new utility in the 3 tests that are not overlapping with those changed in #871 to avoid PR conflicts, but I'll either update this PR or that one depending on which gets merged first. ##### Motivation Address PR feedback from #871 #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [n/a] Addresses an existing issue: #0000
Details
This PR is 1/2 of addressing #836. It includes the following commits/changes, which can be reviewed separately:
ChromiumComponentsShouldUseWebScanner
rule and a new e2e test leveraging the new web view sample added in this PR.Motivation
Addresses issue #836
Context
This PR only adds the new rule logic but does not do the work to suppress any further errors in descendants of the root "Chrome" element (hence why there are 35 expected errors in the end to end test instead of just 1). A future PR will add the suppression logic separately.
Pull request checklist