-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add rule for proper indentation with preconfigured number of spaces #227
Comments
Any update on this @jpsim ? Would really value this rule. |
It's up for grabs, no one has started work on this as far as I know. |
+1 |
Working on this over at master...qasim:qasim/add-indentation. |
@qasim Any updates on this one? |
@Johennes @salutis @ecnepsnai I've created a PR addressing the first part of this issue. Please feel free to 👍 if you'd like to express interest! #873 |
The new |
Let's close this. Anyone should feel empowered to file new, more specific issues about further enhancements. Thanks @fredpi! |
FYI it looks like this rule is incompatible with this style: XCTAssertEqual(foo,
"blah") which we use when the first line would overflow our column length limit |
@keith That's by design, as the rule suggests the following style in case of overflow: XCTAssertEqual(
foo,
"blah"
) |
It' be awesome to add a configuration option to support the first style too. |
@patrickBDev Unfortunately, that's not yet available and currently, I don't have the time to implement it 🙁 Feel free though to open a new issue specifically explaining the desired changes! |
In my there is entry
When I run 👇 on terminal,
However, when I run |
@hisavali This is expected behavior, as autocorrection is not yet available for the |
It would be great to check for a consistent indentation using e.g. 2 or 4 space for each level of nesting. Here are some violating examples:
In addition, it'll also be nice to check for a consistent indentation of multi-line array/dictionary or string constructs. Violating examples:
The text was updated successfully, but these errors were encountered: