config/default.yml in rubocop-1.3.1 vs config/default.yml in rubocop-1.4.0

- old
+ new

@@ -461,10 +461,14 @@ Layout/EmptyLineBetweenDefs: Description: 'Use empty lines between defs.' StyleGuide: '#empty-lines-between-methods' Enabled: true VersionAdded: '0.49' + VersionChanged: '1.4' + EmptyLineBetweenMethodDefs: true + EmptyLineBetweenClassDefs: true + EmptyLineBetweenModuleDefs: true # If `true`, this parameter means that single line method definitions don't # need an empty line between them. AllowAdjacentOneLineDefs: false # Can be array to specify minimum and maximum number of empty lines, e.g. [1, 2] NumberOfEmptyLines: 1 @@ -889,12 +893,12 @@ Layout/LineLength: Description: 'Checks that line length does not exceed the configured limit.' StyleGuide: '#max-line-length' Enabled: true VersionAdded: '0.25' - VersionChanged: '1.3' - AutoCorrect: false + VersionChanged: '1.4' + AutoCorrect: true Max: 120 # To make it possible to copy or click on URIs in the code, we allow lines # containing a URI to be longer than Max. AllowHeredoc: true AllowURI: true @@ -1682,10 +1686,11 @@ Description: >- This cop checks for the presence of constructors and lifecycle callbacks without calls to `super`'. Enabled: true VersionAdded: '0.89' + VersionChanged: '1.4' Lint/MixedRegexpCaptureTypes: Description: 'Do not mix named captures and numbered captures in a Regexp literal.' Enabled: true VersionAdded: '0.85' @@ -3973,9 +3978,20 @@ Prefer to use ranges when generating random numbers instead of integers with offsets. StyleGuide: '#random-numbers' Enabled: true VersionAdded: '0.52' + +Style/RedundantArgument: + Description: 'Check for a redundant argument passed to certain methods.' + Enabled: pending + Safe: false + VersionAdded: '1.4' + Methods: + # Array#join + join: '' + # String#split + split: ' ' Style/RedundantAssignment: Description: 'Checks for redundant assignment before returning.' Enabled: true VersionAdded: '0.87'