The World’s Largest Online Community for Developers

'; continuous integration - Syntax Checker for CI-Testing of template repository - LavOzs.Com

We have a repository that stores our default .gitignore, .dockerignore, etc., template files so we can quickly set up a new repository with reasonable defaults.

Especially for files like the .*ignores it'd be nice to automatically check in a pull request to the template repo, if the changes produce a valid file.

Now git comes with the check-ignore option, but is there a tool that's more general? And for docker I didn't find a checker at all, although since the syntax definiton is so similar, one could probably use git check-ignore .dockerfile as well; but my question is:

Are there any specialized tools to check the syntax of non-code config-ish files, like .*ignore, etc.?

Storing C++ template function definitions in a .CPP file
Is it possible to write a template to check for a function's existence?
Why can templates only be implemented in the header file?
Where and why do I have to put the “template” and “typename” keywords?
Conditionally ignoring tests in JUnit 4
Difference of keywords 'typename' and 'class' in templates?
How can I check the syntax of Python script without executing it?
How to remove files that are listed in the .gitignore but still on the repository?
Can't Find a way to ignore bin dir contents and keep the bin dir
Convert .gitignore into ignore.conf