diff --git a/.rubocop.yml b/.rubocop.yml index d1a33ff..5f68966 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,9 +3,16 @@ inherit_from: .rubocop_todo.yml AllCops: NewCops: enable +Layout/LineLength: + Enabled: false + Metrics/ClassLength: Enabled: false +Naming/PredicatePrefix: + ForbiddenPrefixes: + - is_ + Style/Documentation: Enabled: false @@ -15,10 +22,6 @@ Style/EmptyCaseCondition: Style/GuardClause: Enabled: false -Style/PredicateName: - ForbiddenPrefixes: - - is_ - Style/StringLiterals: EnforcedStyle: double_quotes @@ -34,9 +37,6 @@ Style/TrailingCommaInArrayLiteral: Style/RedundantPercentQ: Enabled: false -Metrics/LineLength: - Enabled: false - Metrics/BlockLength: Exclude: - qiita-markdown.gemspec diff --git a/Gemfile b/Gemfile index f2e154a..ffbd52c 100644 --- a/Gemfile +++ b/Gemfile @@ -9,5 +9,5 @@ gem "codeclimate-test-reporter", "0.4.4" gem "pry" gem "rake" gem "rspec", "~> 3.1" -gem "rubocop", "~> 1.60.2" +gem "rubocop", "~> 1.76.0" gem "simplecov", "!= 0.18.0", "!= 0.18.1", "!= 0.18.2", "!= 0.18.3", "!= 0.18.4", "!= 0.18.5", "!= 0.19.0", "!= 0.19.1" diff --git a/lib/qiita/markdown/filters/code_block.rb b/lib/qiita/markdown/filters/code_block.rb index d10eed3..55da625 100644 --- a/lib/qiita/markdown/filters/code_block.rb +++ b/lib/qiita/markdown/filters/code_block.rb @@ -82,7 +82,7 @@ def empty? end def has_only_filename? - sections[1].nil? && sections[0] && sections[0].include?(".") + sections[1].nil? && sections[0]&.include?(".") end def linguist_language