martin-helmich / typo3-typoscript-lint

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

Indentation of globalVar #66

Closed misterboe closed 5 years ago

misterboe commented 5 years ago

My Code and Identation looks like that:

## Disable Cache when logged in BE
[globalVar = TSFE:beUserLogin > 0]
  config {
    no_cache = 1
    sendCacheHeaders = 0
    cache_period = 0
  }
[global]

But i get an warning that identation sould be 0

martin-helmich commented 5 years ago

That's the desired default behaviour. You can change it to your desired behaviour by supplying the indentCondition option to the Indentation sniff in the config file.


  - class: Indentation
    parameters:
      indentConditions: true  # <-- Here!