Open Mihails-Simvulidi opened 1 year ago
Hello @Mihails-Simvulidi
We've made an initial effort towards reducing the warnings produced by the solution checker by enforcing strict comparison in dg.xrmquery.web.js. However, the minified versions (dg.xrmquery.web.min.js and dg.xrmquery.web.promise.min.js) still produce warnings as the minifying process (gulp-uglify and UglifyJS) introduces loose equality comparisons.
Unfortunately I don't see a solution to all of the warnings produced by the solution checker:
"use strict";
at file level of each JavaScript file but not at function level. I don't believe there are any recommendations for doing this differently. But currently the Solution Checker does not consider this behavior correct. The Solution Checker requires the "use strict;"
line at the beginning of each function. Additionally it creates a warning for incorrect usage of "use strict";
which currently includes the line at file level. We could add "use strict";
to functions in TypeScript, but that doesn't improve the code, and I don't believe we can add it to helper functions generated by the TypeScript compiler, e.g. __extends
. I don't currently see a feasible solution for eliminating all Solution Checker warnings. Ideas are welcome and pull requests even more so.
Thank you!
Regarding Xrm.Page - I think XrmDefinitelyTyped.exe could generate different dg.xrmquery.web*.js files depending on environment version or setting in XrmDefinitelyTyped.exe.config.
Regarding "use strict;" - maybe it could be reported as a bug to Microsoft?
Describe the bug Power Apps solution checker shows a medium severity issues because:
To Reproduce Steps to reproduce the behavior:
Expected behavior No solution checker issues. It could be achieved by:
Screenshots
Environment