Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indented code blocks don't get auto-fixed #2

Open
2 tasks
GuySartorelli opened this issue Nov 13, 2023 · 0 comments
Open
2 tasks

Indented code blocks don't get auto-fixed #2

GuySartorelli opened this issue Nov 13, 2023 · 0 comments

Comments

@GuySartorelli
Copy link
Member

Identified in #1 (comment)

If a code block is indented, e.g. as part of a list item, issues in the block will be correctly identified by the sniff but not fixed when the --fix option is passed in.

There's an example of this in the unit test fixtures - see

For some reason this one doesn't get auto-fixed.
- this one will be indented
```php
class FinalClass {
private string $lastProperty='this is the value';
}
```

Acceptance criteria

  • Fixable linting issues in indented code blocks are fixed
  • The note about them not being fixable is removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant