DStyle: Constraints on declarations should have the same indentation level#5139
Closed
wilzbach wants to merge 0 commit intodlang:masterfrom
Closed
DStyle: Constraints on declarations should have the same indentation level#5139wilzbach wants to merge 0 commit intodlang:masterfrom
wilzbach wants to merge 0 commit intodlang:masterfrom
Conversation
skl131313
reviewed
Feb 16, 2017
std/algorithm/mutation.d
Outdated
| && is(typeof(InputRange.init.front = ForwardRange.init.front))) | ||
| if (isInputRange!InputRange | ||
| && (isForwardRange!ForwardRange | ||
| || (isInputRange!ForwardRange && isInfinite!ForwardRange)) |
Contributor
There was a problem hiding this comment.
Shouldn't this line still be indented? The || is part of a sub condition.
(isForwardRange!ForwardRange || (isInputRange!ForwardRange && isInfinite!ForwardRange))Putting it at the same level makes it confusing, with the && and || aligned.
Member
There was a problem hiding this comment.
I agree with @sprinkle131313 but let's leave that to the next pass.
andralex
approved these changes
Feb 17, 2017
Member
|
Auto-merge toggled on |
Member
|
@wilzbach all good, rebase and babysit the autotester |
8e4267b to
b5e76a2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I accidentally closed #4999 - the decision from this PR was:
I updated the replacement tool that looks at all Dscanner warnings and tries to fix them, so that a couple of previously unhandled edge case are handled. Moreover it now also updates the indentation of the following lines of the
ifconstraint correctly (+4 of theifindentation level).Steps to reproduce
1) Git clone the specific branch of the dscanner
2) Modify dscanner to emit the expected indent size
3) Ignore other checks
Add the following to the
.dscanner.ini:4) Run dscanner and save all warnings
5) Let the replacement tool fix all warnings