martin-helmich / typo3-typoscript-lint

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

No warning for not indented lines in conditions #101

Closed tillhoerner closed 3 years ago

tillhoerner commented 3 years ago

Given the TypoScript

[globalString = GP:foo = 1]
foo.bar = 3
[global]

and the configuration

sniffs:
  - class: Indentation
    parameters:
      indentConditions: true

the linter completes without warnings. Although line 2 should be indented with 4 spaces.

julianhofmann commented 3 years ago

Seems there's a regression: Now, in nested blocks empty lines without indention are showing up a warning.

page {
  20 = TEXT

  30 = TEXT
}

"3 Expected indent of 2 spaces."

martin-helmich commented 3 years ago

Seems there's a regression: [...]

@julianhofmann, acknowledged. :+1: Please see #115 for more information.