martin-helmich / typo3-typoscript-lint

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

PHP Warnings for str_repeat() #79

Closed peterkraume closed 4 years ago

peterkraume commented 4 years ago
str_repeat(): Second argument has to be greater than or equal to 0 in ./vendor/helmich/typo3-typoscript-lint/src/Linter/Sniff/IndentationSniff.php on line 68

PHP Version: 7.2 typo3-typoscript-lint: 2.0.1 CLI Command: ./vendor/bin/typoscript-lint --fail-on-warnings -c build/lint/tslint.yaml

my configuration:

paths:
  - packages/my_sitepackage/Configuration/

filePatterns:
  - "*.typoscript"
  - "*.tsconfig"
  - "*.ts"

sniffs:
  - class: Indentation
    parameters:
      indentPerLevel: 2
      indentConditions: true
  - class: RepeatingRValue
    disabled: true
  - class: NestingConsistency
    disabled: true
peterkraume commented 4 years ago

The problem still exists with v2.1.4.

martin-helmich commented 4 years ago

Oh, yes. I hadn't released a new version after merging #83 (only the new release 2.1.4 of the typoscript-parser dependency). I've just tagged v2.1.0 -- should be composer-installable within minutes.

peterkraume commented 4 years ago

Perfect. Works fine now. Thx a lot for your effort!