diff --git a/.rubocop.yml b/.rubocop.yml index fe88760..309615c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -28,6 +28,8 @@ Layout/EmptyLinesAroundAttributeAccessor: Enabled: true Layout/EndAlignment: Severity: error +Layout/EndOfLine: + Enabled: false # Use .gitattributes with `* text=auto` for cross-platform flexibility Layout/FirstArrayElementIndentation: EnforcedStyle: consistent Layout/FirstHashElementIndentation: @@ -79,6 +81,8 @@ Lint/DuplicateElsifCondition: Enabled: true Lint/DuplicateMagicComment: Enabled: true +Lint/DuplicateMatchPattern: + Enabled: true Lint/DuplicateRegexpCharacterClassElement: Enabled: true Lint/DuplicateRequire: @@ -107,6 +111,8 @@ Lint/LambdaWithoutLiteralBlock: Enabled: true Lint/MissingSuper: Enabled: false +Lint/MixedCaseRange: + Enabled: true Lint/MixedRegexpCaptureTypes: Enabled: false Lint/NestedPercentLiteral: @@ -125,6 +131,8 @@ Lint/RaiseException: Enabled: true Lint/RedundantDirGlobSort: Enabled: true +Lint/RedundantRegexpQuantifiers: + Enabled: true Lint/RedundantSafeNavigation: Enabled: true Lint/RefinementImportMethods: @@ -174,6 +182,10 @@ Metrics/BlockLength: - !ruby/regexp /^spec/ Metrics/ClassLength: Max: 240 +Metrics/CollectionLiteralLength: + Enabled: true +Metrics/CyclomaticComplexity: + Max: 11 Metrics/MethodLength: CountComments: false Max: 20 @@ -214,6 +226,8 @@ Performance/ConstantRegexp: Enabled: true Performance/MapCompact: Enabled: true +Performance/MapMethodChain: + Enabled: true Performance/MethodObjectAsBlock: Enabled: true Performance/RedundantEqualityComparisonBlock: @@ -278,6 +292,8 @@ Style/ComparableClamp: Enabled: true Style/ConcatArrayLiterals: Enabled: true +Style/DirEmpty: + Enabled: true Style/DocumentDynamicEvalDefinition: Enabled: true Style/Documentation: @@ -290,11 +306,15 @@ Style/EndlessMethod: Enabled: true Style/EnvHome: Enabled: true +Style/ExactRegexpMatch: + Enabled: true Style/ExplicitBlockArgument: Enabled: false Style/ExponentialNotation: Enabled: true Style/FetchEnvVar: + Enabled: false +Style/FileEmpty: Enabled: true Style/FileRead: Enabled: true @@ -380,10 +400,14 @@ Style/QuotedSymbols: Enabled: true Style/RedundantArgument: Enabled: true +Style/RedundantArrayConstructor: + Enabled: true Style/RedundantAssignment: Enabled: true Style/RedundantConstantBase: Enabled: true +Style/RedundantCurrentDirectoryInPath: + Enabled: true Style/RedundantDoubleSplatHashBraces: Enabled: true Style/RedundantEach: @@ -392,12 +416,20 @@ Style/RedundantFetchBlock: Enabled: false Style/RedundantFileExtensionInRequire: Enabled: true +Style/RedundantFilterChain: + Enabled: true Style/RedundantHeredocDelimiterQuotes: Enabled: true Style/RedundantInitialize: Enabled: true +Style/RedundantLineContinuation: + Enabled: true +Style/RedundantRegexpArgument: + Enabled: true Style/RedundantRegexpCharacterClass: Enabled: true +Style/RedundantRegexpConstructor: + Enabled: true Style/RedundantRegexpEscape: Enabled: true Style/RedundantSelfAssignment: @@ -414,10 +446,14 @@ Style/SafeNavigation: Enabled: true Style/SelectByRegexp: Enabled: true +Style/ReturnNilInPredicateMethodDefinition: + Enabled: true Style/SignalException: EnforcedStyle: only_raise Style/SingleArgumentDig: Enabled: true +Style/SingleLineDoEndBlock: + Enabled: true Style/SlicingWithRange: Enabled: false Style/SoleNestedConditional: diff --git a/rubocop-jekyll.gemspec b/rubocop-jekyll.gemspec index 34c4966..8f03728 100644 --- a/rubocop-jekyll.gemspec +++ b/rubocop-jekyll.gemspec @@ -19,6 +19,6 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] s.required_ruby_version = ">= 2.7.0" - s.add_runtime_dependency "rubocop", "~> 1.45.0" + s.add_runtime_dependency "rubocop", "~> 1.57.0" s.add_runtime_dependency "rubocop-performance", "~> 1.2" end