Closed KamiYang closed 2 years ago
Thanks for the report -- I assume that the cause for this issue is that the NestingConsistencySniff
explicitly looks for assignment statements, and not deletions or other statements that operate on an object path. It's been a while since I last touched that code, but I assume that this is most probably not intentional and more likely an oversight.
Just verified this, by having a look in the NestingConsistencyVisitor
class:
So, yes: The NestingConsistencySniff
explicitly looks at assignment operations, and nothing else. I'll see if there's an easy fix for that.
Hi everyone,
I just have a question about the "Common path prefix"-Sniff: While linting the following TypoScript the linter only warns about line 5 & 6 (
bar.baz
) but not about 2 & 3 (foo.baa
).Is this behaivor intended? And if so, why?
foo.typoscript
linter output
KamiYang