Be consistent with your hashes and arrays.

```
val = %W(hello world
                 world)
```

```
var = %W(
  hello
  world
)
```

```
var = %W(hello world)
```
This commit is contained in:
Jordon Bedwell 2016-01-03 00:15:31 -06:00
parent 2a280b7f62
commit a2623be3da
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Style/IndentHash: { EnforcedStyle: align_braces } Style/IndentHash: { EnforcedStyle: align_braces }
Style/StringLiteralsInInterpolation: { EnforcedStyle: double_quotes } Style/StringLiteralsInInterpolation: { EnforcedStyle: double_quotes }
Style/IndentArray: { EnforcedStyle: consistent }
Style/IndentHash: { EnforcedStyle: consistent }
Style/StringLiterals: { EnforcedStyle: none } Style/StringLiterals: { EnforcedStyle: none }
Metrics/MethodLength: { Max: 24 } Metrics/MethodLength: { Max: 24 }
Metrics/ClassLength: { Max: 240 } Metrics/ClassLength: { Max: 240 }