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

Feature: ability to align array arrows when in new line #63

Merged

Conversation

michalbundyra
Copy link
Member

To configure that we need to set (for example):

// configuration of double arrow alignment
WebimpressCodingStandard.Arrays.DoubleArrow.maxPadding = 50
WebimpressCodingStandard.Arrays.DoubleArrow.ignoreNewLineArrayArrow = false

// ignore indent or double arrow when at the beggining of the line
WebimpressCodingStandard.WhiteSpace.ScopeIndent.ignoreNewLineArrayArrow = true

// ignore spacing before double arrow (so we can have more than one space)
WebimpressCodingStandard.WhiteSpace.OperatorAndKeywordSpacing.ignoreSpacingBeforeAssignments = true

Fixes #29

@michalbundyra michalbundyra added the enhancement New feature or request label Nov 18, 2019
@michalbundyra michalbundyra added this to the 1.1.0 milestone Nov 18, 2019
To configure that we need to set (for example):

```
// configuration of double arrow alignment
WebimpressCodingStandard.Arrays.DoubleArrow.maxPadding = 50
WebimpressCodingStandard.Arrays.DoubleArrow.ignoreNewLineArrayArrow = false

// ignore indent or double arrow when at the beggining of the line
WebimpressCodingStandard.WhiteSpace.ScopeIndent.ignoreNewLineArrayArrow = true

// ignore spacing before double arrow (so we can have more than one space)
WebimpressCodingStandard.WhiteSpace.OperatorAndKeywordSpacing.ignoreSpacingBeforeAssignments = true
```

Fixes webimpress#29
michalbundyra added a commit that referenced this pull request Dec 6, 2019
Feature: ability to align array arrows when in new line
michalbundyra added a commit that referenced this pull request Dec 6, 2019
michalbundyra added a commit that referenced this pull request Dec 6, 2019
@michalbundyra michalbundyra merged commit 5b3f3e4 into webimpress:develop Dec 6, 2019
@michalbundyra michalbundyra deleted the feature/align-arrow-new-line branch December 6, 2019 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants