Skip to content
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

33 Solution Checker Warnings on SmartButtons.ClientHooks.js #79

Open
brianilland opened this issue Jun 15, 2021 · 1 comment
Open

33 Solution Checker Warnings on SmartButtons.ClientHooks.js #79

brianilland opened this issue Jun 15, 2021 · 1 comment

Comments

@brianilland
Copy link

brianilland commented Jun 15, 2021

Now that Solution Checker is an accepted part of the ALM process, I am finding more and more situations where a clean bill of health is expected from solution checker as part of the release pipeline.

The transpiled SmartButtons.ClientHooks.js file shows 33 warnings for web-use-strict-equality-operators -

"For most comparisons the strict equality comparison algorithm is the appropriate choice as it will return the expected results. The strict operators, === and !==, handle null and undefined values as expected."

Is there a way these warnings can be

a) minimised or eliminated as part of the smartbuttons build process or
b) somehow ignored by solution checker because of their type?

@brianilland
Copy link
Author

brianilland commented Jun 15, 2021

For what it's worth, to get around this issue, I ran through the solution checker after beautifying the minimised javascript in the solution and then went through each of the 33 line numbers to see if I could tie back to the typescript and replace with a strict operator. I fixed locally in typescript but was left with a handful of non-strict operators which were generated as part of the compilation which couldn't (easily) be fixed in the typescript. I then re-beautified the compiled js and fixed the remaining issues in the target to get it to pass solution checker with no warnings left.

My OCD feels good, even if I'd rather stand over the source as tested by everyone else.

SmartButtons.ClientHooks.js.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant