Configure new cops
This commit is contained in:
		
							parent
							
								
									1ebde7c4cb
								
							
						
					
					
						commit
						9084f9f752
					
				
							
								
								
									
										18
									
								
								.rubocop.yml
								
								
								
								
							
							
						
						
									
										18
									
								
								.rubocop.yml
								
								
								
								
							|  | @ -65,6 +65,8 @@ Lint/ConstantDefinitionInBlock: | ||||||
|     - test/**/*.rb |     - test/**/*.rb | ||||||
| Lint/DeprecatedOpenSSLConstant: | Lint/DeprecatedOpenSSLConstant: | ||||||
|   Enabled: true |   Enabled: true | ||||||
|  | Lint/DuplicateBranch: | ||||||
|  |   Enabled: true | ||||||
| Lint/DuplicateElsifCondition: | Lint/DuplicateElsifCondition: | ||||||
|   Enabled: true |   Enabled: true | ||||||
| Lint/DuplicateRegexpCharacterClassElement: | Lint/DuplicateRegexpCharacterClassElement: | ||||||
|  | @ -75,6 +77,8 @@ Lint/DuplicateRequire: | ||||||
|   Enabled: true |   Enabled: true | ||||||
| Lint/EmptyBlock: | Lint/EmptyBlock: | ||||||
|   Enabled: true |   Enabled: true | ||||||
|  | Lint/EmptyClass: | ||||||
|  |   Enabled: true | ||||||
| Lint/EmptyConditionalBody: | Lint/EmptyConditionalBody: | ||||||
|   Enabled: true |   Enabled: true | ||||||
| Lint/EmptyFile: | Lint/EmptyFile: | ||||||
|  | @ -172,10 +176,20 @@ Naming/MemoizedInstanceVariableName: | ||||||
| 
 | 
 | ||||||
| Performance/AncestorsInclude: | Performance/AncestorsInclude: | ||||||
|   Enabled: false |   Enabled: false | ||||||
|  | Performance/ArraySemiInfiniteRangeSlice: | ||||||
|  |   Enabled: true | ||||||
| Performance/BigDecimalWithNumericArgument: | Performance/BigDecimalWithNumericArgument: | ||||||
|   Enabled: true |   Enabled: true | ||||||
|  | Performance/BlockGivenWithExplicitBlock: | ||||||
|  |   Enabled: true | ||||||
| Performance/ChainArrayAllocation: | Performance/ChainArrayAllocation: | ||||||
|   Enabled: true |   Enabled: true | ||||||
|  | Performance/CollectionLiteralInLoop: | ||||||
|  |   Enabled: true | ||||||
|  | Performance/ConstantRegexp: | ||||||
|  |   Enabled: true | ||||||
|  | Performance/MethodObjectAsBlock: | ||||||
|  |   Enabled: true | ||||||
| Performance/RedundantSortBlock: | Performance/RedundantSortBlock: | ||||||
|   Enabled: true |   Enabled: true | ||||||
| Performance/RedundantStringChars: | Performance/RedundantStringChars: | ||||||
|  | @ -272,6 +286,8 @@ Style/MultilineTernaryOperator: | ||||||
|   Severity: error |   Severity: error | ||||||
| Style/NegatedIfElseCondition: | Style/NegatedIfElseCondition: | ||||||
|   Enabled: true |   Enabled: true | ||||||
|  | Style/NilLambda: | ||||||
|  |   Enabled: true | ||||||
| Style/OptionalBooleanParameter: | Style/OptionalBooleanParameter: | ||||||
|   Enabled: true |   Enabled: true | ||||||
| Style/PercentLiteralDelimiters: | Style/PercentLiteralDelimiters: | ||||||
|  | @ -283,6 +299,8 @@ Style/PercentLiteralDelimiters: | ||||||
|     "%w": "()" |     "%w": "()" | ||||||
|     "%W": "()" |     "%W": "()" | ||||||
|     "%x": "()" |     "%x": "()" | ||||||
|  | Style/RedundantArgument: | ||||||
|  |   Enabled: true | ||||||
| Style/RedundantAssignment: | Style/RedundantAssignment: | ||||||
|   Enabled: true |   Enabled: true | ||||||
| Style/RedundantFetchBlock: | Style/RedundantFetchBlock: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue