.rubocop.yml in pg_objects-0.5.4 vs .rubocop.yml in pg_objects-0.5.5

- old
+ new

@@ -20,10 +20,14 @@ # Gems in consecutive lines should be alphabetically sorted Bundler/OrderedGems: TreatCommentsAsGroupSeparators: true # Layout ###################################################################### + +Layout/EmptyLinesAroundAttributeAccessor: + Enabled: true + # Limit lines to 80 characters. Layout/LineLength: Max: 140 # Checks that the closing brace in an array literal is either on the same line @@ -47,10 +51,13 @@ # Checks indentation of binary operations that span more than one line. Layout/MultilineOperationIndentation: Enabled: true EnforcedStyle: indented +Layout/SpaceAroundMethodCallOperator: + Enabled: true + # Checks for padding/surrounding spaces inside string interpolation. Layout/SpaceInsideStringInterpolation: EnforcedStyle: no_space Enabled: true @@ -61,57 +68,10 @@ # Use the configured style when naming variables. Naming/VariableName: EnforcedStyle: snake_case Enabled: true -# Style ####################################################################### -# Use alias_method instead of alias. -Style/Alias: - EnforcedStyle: prefer_alias_method - Enabled: true - -Style/AsciiComments: - Enabled: false - StyleGuide: http://relaxed.ruby.style/#styleasciicomments - -# Checks if there is a magic comment to enforce string literals -Style/FrozenStringLiteralComment: - Enabled: false - -Style/HashEachMethods: - Enabled: true - -Style/HashTransformKeys: - Enabled: true - -Style/HashTransformValues: - Enabled: true - -Style/RegexpLiteral: - EnforcedStyle: mixed - Enabled: false - -# Checks for proper usage of fail and raise. -Style/SignalException: - EnforcedStyle: only_raise - Enabled: true - -# Check for the usage of parentheses around stabby lambda arguments. -Style/StabbyLambdaParentheses: - EnforcedStyle: require_parentheses - Enabled: true - -# Checks if configured preferred methods are used over non-preferred. -Style/StringMethods: - PreferredMethods: - intern: to_sym - Enabled: true - -# Checks for %q/%Q when single quotes or double quotes would do. -Style/RedundantPercentQ: - Enabled: false - # Metrics ##################################################################### # A calculated magnitude based on number of assignments, # branches, and conditions. # Metrics/AbcSize: @@ -155,15 +115,31 @@ # Enabled: true # Max: 13 # Lint ######################################################################## +Lint/DeprecatedOpenSSLConstant: + Enabled: true + +Lint/DuplicateElsifCondition: + Enabled: true + +Lint/MixedRegexpCaptureTypes: + Enabled: true + +Lint/RaiseException: + Enabled: true + # This cop looks for use of the same name as outer local variables # for block arguments or block local variables. Lint/ShadowingOuterLocalVariable: Enabled: false +Lint/StructNewOverride: + Enabled: true + + # Rails ####################################################################### # Enables Rails cops. Rails: Enabled: false @@ -210,7 +186,94 @@ # Enforces the usage of the same method on all negative message expectations. RSpec/NotToNot: EnforcedStyle: not_to Enabled: true +# Style ####################################################################### + +Style/AccessorGrouping: + Enabled: true + +# Use alias_method instead of alias. +Style/Alias: + EnforcedStyle: prefer_alias_method + Enabled: true + +Style/ArrayCoercion: + Enabled: true + +Style/AsciiComments: + Enabled: false + StyleGuide: http://relaxed.ruby.style/#styleasciicomments + +Style/BisectedAttrAccessor: + Enabled: true + +Style/CaseLikeIf: + Enabled: true + +Style/ExponentialNotation: + Enabled: true + +# Checks if there is a magic comment to enforce string literals +Style/FrozenStringLiteralComment: + Enabled: false + +Style/HashAsLastArrayItem: + Enabled: true + +Style/HashEachMethods: + Enabled: true + +Style/HashLikeCase: + Enabled: true + +Style/HashTransformKeys: + Enabled: true + +Style/HashTransformValues: + Enabled: true + Style/IfUnlessModifier: Enabled: false + +Style/RedundantAssignment: + Enabled: true + +Style/RedundantFetchBlock: + Enabled: true + +Style/RedundantFileExtensionInRequire: + Enabled: true + +Style/RedundantRegexpCharacterClass: + Enabled: true + +Style/RedundantRegexpEscape: + Enabled: true + +Style/RegexpLiteral: + EnforcedStyle: mixed + Enabled: false + +# Checks for proper usage of fail and raise. +Style/SignalException: + EnforcedStyle: only_raise + Enabled: true + +# Check for the usage of parentheses around stabby lambda arguments. +Style/StabbyLambdaParentheses: + EnforcedStyle: require_parentheses + Enabled: true + +# Checks if configured preferred methods are used over non-preferred. +Style/StringMethods: + PreferredMethods: + intern: to_sym + Enabled: true + +# Checks for %q/%Q when single quotes or double quotes would do. +Style/RedundantPercentQ: + Enabled: false + +Style/SlicingWithRange: + Enabled: true