Open fredemmott opened 5 years ago
Hey @lildude, could you point me to the syntax validator used by the linguist repo?
pretty sure it's https://github.com/github/linguist/tree/master/tools/grammars/compiler
Yup, that’s it. We push a docker image whenever we update the sauce too.
I wasn't able to use just the docker container for syntax validation, since it seems to still have a dependency on the repo itself.
Going the full repo route, the compilation seems to raise warnings (on stdout) but there's no way to for the call to result in an error.
@lildude any thoughts on the best approach for this?
I wasn't able to use just the docker container for syntax validation, since it seems to still have a dependency on the repo itself.
Interesting. I've never tried to run it independently of the repo 😁 .
Going the full repo route, the compilation seems to raise warnings (on stdout) but there's no way to for the call to result in an error.
I've not looked at this for a while but legit errors like an invalid regex should cause an error IIRC.
Detect issues like #54, #76, #78 earlier