martin-helmich / typo3-typoscript-lint

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

Allow indent inside conditions #96

Closed Smove closed 4 years ago

Smove commented 4 years ago

To improve readability you should be allowed to indent TypoScript within conditions. Currently the indentation is criticized.

Smove commented 4 years ago

Found out its already possible

By default, the indentation sniff expects code inside TypoScript conditions to be not indented. You can change this behaviour by setting the indentConditions flag for the indentation sniff to true in your typoscript-lint.yml configuration file (see below).