rubocop-performance.yml in gitlab-styles-6.1.0 vs rubocop-performance.yml in gitlab-styles-6.2.0
- old
+ new
@@ -33,9 +33,15 @@
Enabled: true
Performance/MethodObjectAsBlock: # (new in 1.9)
Enabled: true
+# Use `Struct.new(..., keyword_init: true)` instead of `OpenStruct.new(...)`.
+Performance/OpenStruct:
+ Enabled: true
+ Exclude:
+ - 'spec/**/*'
+
# Use `Range#cover?` instead of `Range#include?`.
Performance/RangeInclude:
Enabled: true
# This cop identifies the use of a `&block` parameter and `block.call`