rubocop-performance.yml in gitlab-styles-5.4.0 vs rubocop-performance.yml in gitlab-styles-6.0.0

- old
+ new

@@ -8,20 +8,32 @@ # Initializing from String is faster than from Numeric for BigDecimal. # https://docs.rubocop.org/rubocop-performance/1.8/cops_performance.html#performancebigdecimalwithnumericargument Performance/BigDecimalWithNumericArgument: Enabled: true +Performance/BlockGivenWithExplicitBlock: # (new in 1.9) + Enabled: true + # Use `caller(n..n)` instead of `caller`. Performance/Caller: Enabled: false # Use `casecmp` rather than `downcase ==`. Performance/Casecmp: Enabled: true +Performance/CollectionLiteralInLoop: # (new in 1.8) + Enabled: true + +Performance/ConstantRegexp: # (new in 1.9) + Enabled: true + # Use `str.{start,end}_with?(x, ..., y, ...)` instead of # `str.{start,end}_with?(x, ...) || str.{start,end}_with?(y, ...)`. Performance/DoubleStartEndWith: + Enabled: true + +Performance/MethodObjectAsBlock: # (new in 1.9) Enabled: true # Use `Range#cover?` instead of `Range#include?`. Performance/RangeInclude: Enabled: true