Hi,
As far as JS is concerned, one possibility is to play with the
TypeScript compiler.
TypeScript, via definition files covering default libraries [1][2]
provided by default can do type checking of JS code.
One possibility could be to leverage TypeScript and provide different
default definition files to see what breaks and what doesn't for the
code being checked.
(happy to chat if I'm being too obscure here)
David
[1] https://github.com/Microsoft/TypeScript/blob/master/src/lib/core.d.ts
[2]
https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts
Le 19/10/2014 22:42, Luke Crouch a écrit :
dev-static-analysis,
Hi, I'm a Mozilla staff web developer on MDN, and I'm exploring an idea
to offer Web-Compatibility-Scanning-as-a-Service via MDN. [1]
e.g., When a developer sends a pull request, we scan its HTML, CSS,
and/or JavaScript and comment with a report of which code breaks which
browsers.
We've been working on a browser compatibility data store & API [2][3].
To that, we (think we) need to add a linting tool that will use the
compat data store to make a code compatibility report.
The question for this group is - can we get someone who knows static
analysis involved now to help us make sure the compat data model is
conducive to generating rules for the linter?
Thanks,
-L
[1]
https://docs.google.com/document/d/1c5w87-KDZCP9eltjfk98GL_i-hyqQ193J86_e1L4wnQ/edit?usp=sharing
[2] https://wiki.mozilla.org/MDN/Development/CompatibilityTables
[3] http://doesitwork-dev.allizom.org/
_______________________________________________
dev-mdn mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-mdn
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis