config/enabled.yml in rubocop-0.26.1 vs config/enabled.yml in rubocop-0.27.0

- old
+ new

@@ -126,15 +126,10 @@ Style/ClassVars: Description: 'Avoid the use of class variables.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars' Enabled: true -Style/CollectionMethods: - Description: 'Preferred collection methods.' - StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#map-fine-select-reduce-size' - Enabled: true - Style/ColonMethodCall: Description: 'Do not use :: for method call.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons' Enabled: true @@ -180,10 +175,14 @@ Style/EachWithObject: Description: 'Prefer `each_with_object` over `inject` or `reduce`.' Enabled: true +Style/ElseAlignment: + Description: 'Align elses and elsifs correctly.' + Enabled: true + Style/EmptyLineBetweenDefs: Description: 'Use empty lines between defs.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods' Enabled: true @@ -193,14 +192,22 @@ Style/EmptyLinesAroundAccessModifier: Description: "Keep blank lines around access modifiers." Enabled: true -Style/EmptyLinesAroundBody: - Description: "Keeps track of empty lines around expression bodies." +Style/EmptyLinesAroundClassBody: + Description: "Keeps track of empty lines around class bodies." Enabled: true +Style/EmptyLinesAroundModuleBody: + Description: "Keeps track of empty lines around module bodies." + Enabled: true + +Style/EmptyLinesAroundMethodBody: + Description: "Keeps track of empty lines around method bodies." + Enabled: true + Style/EmptyLiteral: Description: 'Prefer literals to Array.new/Hash.new/String.new.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash' Enabled: true @@ -347,10 +354,16 @@ Style/MultilineIfThen: Description: 'Never use then for multi-line if/unless.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then' Enabled: true +Style/MultilineOperationIndentation: + Description: >- + Checks indentation of binary operations that span more than + one line. + Enabled: true + Style/MultilineTernaryOperator: Description: >- Avoid multi-line ?: (the ternary operator); use if/unless instead. StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary' @@ -618,10 +631,16 @@ Style/StringLiterals: Description: 'Checks if uses of quotes match the configured preference.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals' Enabled: true +Style/StringLiteralsInInterpolation: + Description: >- + Checks if uses of quotes inside expressions in interpolated + strings match the configured preference. + Enabled: true + Style/SymbolProc: Description: 'Use symbols as procs instead of blocks when possible.' Enabled: true Style/Tab: @@ -703,9 +722,15 @@ Description: 'Use %w or %W for arrays of words.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w' Enabled: true #################### Metrics ################################ + +Metrics/AbcSize: + Description: >- + A calculated magnitude based on number of assignments, + branches, and conditions. + Enabled: true Metrics/BlockNesting: Description: 'Avoid excessive block nesting' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count' Enabled: true