martin-helmich / typo3-typoscript-lint

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

FEATURE: Do not print trigger warning if new condition starts #51

Closed DanielSiepmann closed 6 years ago

DanielSiepmann commented 6 years ago

As conditions will end earlier conditions, there is no need to end a condition before starting a new one. Therefore a condition can have indentation level of 0 'inside' another condition. And level is not raised for this condition again.

DanielSiepmann commented 6 years ago

Of course you're right. I've fixed that and force pushed.

I'll also add a blog post in near future about how to use your linter within vim / neovim, which is just a small vim file.

martin-helmich commented 6 years ago

Looking good, merging now. Feel free to drop me a link to your article when it's done; looking forward to it.