martin-helmich / typo3-typoscript-lint

Find coding errors in your TypoScript files.
MIT License
82 stars 19 forks source link

Report errors as errors #16

Closed mbrodala closed 7 years ago

mbrodala commented 7 years ago

ATM syntax errors are shown as Tokenization error but still reported as warning.

This should be changed to split warnings and errors and always return an exit code > 0 if there are errors. The --exit-code option could/should then be renamed to e.g. --fail-on-warning to make stricter checks available as opt-in.

The benefit of this would be that real errors let the command fail and warnings can be ignored which is useful in CI environments.