You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to introduce WP standards in a codebase that is using spaces for indentation, so instead of converting all indentation to tabs, I'd like to enforce 2 spaces as per existing style.
this config gets me nearly there https://gist.github.com/pdewouters/39d6b4f1c2d60e5c1538163774c8ed18
But I still get some errors related to array indentation, it thinks it should be 4 spaces instead of 2.
Is your feature request related to a problem?
Enforcing spaces for indentation
Describe the solution you'd like
I want to introduce WP standards in a codebase that is using spaces for indentation, so instead of converting all indentation to tabs, I'd like to enforce 2 spaces as per existing style.
this config gets me nearly there https://gist.github.com/pdewouters/39d6b4f1c2d60e5c1538163774c8ed18
But I still get some errors related to array indentation, it thinks it should be 4 spaces instead of 2.
Additional context (optional)
See screenshot: the first line has no errors because it has 4 spaces indent but the next ones throw an error. It should be the reverse
The text was updated successfully, but these errors were encountered: