.rubocop.yml in influxdb-rails-1.0.1.beta2 vs .rubocop.yml in influxdb-rails-1.0.1.beta3

- old
+ new

@@ -11,20 +11,17 @@ - 'vendor/bundle/**/*' DisplayCopNames: true StyleGuideCopsOnly: false TargetRubyVersion: 2.4 -Rails: - Enabled: false - Layout/EmptyLinesAroundArguments: Enabled: false Layout/SpaceBeforeBlockBraces: EnforcedStyleForEmptyBraces: space -Layout/AlignHash: +Layout/HashAlignment: EnforcedColonStyle: table EnforcedHashRocketStyle: table Metrics/AbcSize: Max: 20 @@ -32,11 +29,11 @@ Metrics/BlockLength: Exclude: - 'spec/**/*.rb' - 'influxdb-rails.gemspec' -Metrics/LineLength: +Layout/LineLength: Max: 100 Exclude: - 'spec/**/*.rb' Metrics/ModuleLength: @@ -44,11 +41,11 @@ Max: 120 Metrics/ParameterLists: Max: 6 -Naming/UncommunicativeMethodParamName: +Naming/MethodParameterName: AllowedNames: [io, id, db, ex] Naming/FileName: Exclude: - lib/influxdb-rails.rb @@ -79,5 +76,36 @@ Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: comma Exclude: - "spec/**/*.rb" + +Lint/DuplicateBranch: + Enabled: true +Lint/DuplicateRegexpCharacterClassElement: + Enabled: true +Lint/EmptyBlock: + Enabled: true +Lint/EmptyClass: + Enabled: true +Lint/NoReturnInBeginEndBlocks: + Enabled: true +Lint/ToEnumArguments: + Enabled: true +Lint/UnexpectedBlockArity: + Enabled: true +Lint/UnmodifiedReduceAccumulator: + Enabled: true +Style/ArgumentsForwarding: + Enabled: true +Style/CollectionCompact: + Enabled: true +Style/DocumentDynamicEvalDefinition: + Enabled: true +Style/NegatedIfElseCondition: + Enabled: true +Style/NilLambda: + Enabled: true +Style/RedundantArgument: + Enabled: true +Style/SwapValues: + Enabled: true