diff --git a/.rubocop.yml b/.rubocop.yml index afe2d02..50ed10d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,3 +8,7 @@ Naming/FileName: - "rubocop-github.gemspec" - "lib/rubocop-github.rb" - "lib/rubocop-github-rails.rb" + +Gemspec/DevelopmentDependencies: + Enabled: true + EnforcedStyle: gemspec diff --git a/config/default_pending.yml b/config/default_pending.yml index ee85c60..9d18903 100644 --- a/config/default_pending.yml +++ b/config/default_pending.yml @@ -4,3 +4,69 @@ Style/OperatorMethodCall: # new in 1.37 Enabled: false Style/RedundantStringEscape: # new in 1.37 Enabled: false +Gemspec/DevelopmentDependencies: # new in 1.44 + Enabled: false +Lint/DuplicateMatchPattern: # new in 1.50 + Enabled: false +Lint/ItWithoutArgumentsInBlock: # new in 1.59 + Enabled: false +Lint/LiteralAssignmentInCondition: # new in 1.58 + Enabled: false +Lint/MixedCaseRange: # new in 1.53 + Enabled: false +Lint/RedundantRegexpQuantifiers: # new in 1.53 + Enabled: false +Lint/UselessRescue: # new in 1.43 + Enabled: false +Metrics/CollectionLiteralLength: # new in 1.47 + Enabled: false +Style/ArrayIntersect: # new in 1.40 + Enabled: false +Style/ComparableClamp: # new in 1.44 + Enabled: false +Style/ConcatArrayLiterals: # new in 1.41 + Enabled: false +Style/DataInheritance: # new in 1.49 + Enabled: false +Style/DirEmpty: # new in 1.48 + Enabled: false +Style/ExactRegexpMatch: # new in 1.51 + Enabled: false +Style/FileEmpty: # new in 1.48 + Enabled: false +Style/MapIntoArray: # new in 1.63 + Enabled: false +Style/MapToSet: # new in 1.42 + Enabled: false +Style/MinMaxComparison: # new in 1.42 + Enabled: false +Style/RedundantArrayConstructor: # new in 1.52 + Enabled: false +Style/RedundantConstantBase: # new in 1.40 + Enabled: false +Style/RedundantCurrentDirectoryInPath: # new in 1.53 + Enabled: false +Style/RedundantDoubleSplatHashBraces: # new in 1.41 + Enabled: false +Style/RedundantEach: # new in 1.38 + Enabled: false +Style/RedundantFilterChain: # new in 1.52 + Enabled: false +Style/RedundantHeredocDelimiterQuotes: # new in 1.45 + Enabled: false +Style/RedundantLineContinuation: # new in 1.49 + Enabled: false +Style/RedundantRegexpArgument: # new in 1.53 + Enabled: false +Style/RedundantRegexpConstructor: # new in 1.52 + Enabled: false +Style/ReturnNilInPredicateMethodDefinition: # new in 1.53 + Enabled: false +Style/SingleLineDoEndBlock: # new in 1.57 + Enabled: false +Style/SuperWithArgsParentheses: # new in 1.58 + Enabled: false +Style/YAMLFileRead: # new in 1.53 + Enabled: false +Performance/MapMethodChain: # new in 1.19 + Enabled: false diff --git a/config/rails_pending.yml b/config/rails_pending.yml index b3abb0b..3e9582d 100644 --- a/config/rails_pending.yml +++ b/config/rails_pending.yml @@ -18,3 +18,81 @@ Rails/WhereMissing: # new in 2.16 Enabled: false Rails/WhereNotWithMultipleConditions: # new in 2.17 Enabled: false +Gemspec/DevelopmentDependencies: # new in 1.44 + Enabled: false +Lint/DuplicateMatchPattern: # new in 1.50 + Enabled: false +Lint/ItWithoutArgumentsInBlock: # new in 1.59 + Enabled: false +Lint/LiteralAssignmentInCondition: # new in 1.58 + Enabled: false +Lint/MixedCaseRange: # new in 1.53 + Enabled: false +Lint/RedundantRegexpQuantifiers: # new in 1.53 + Enabled: false +Lint/UselessRescue: # new in 1.43 + Enabled: false +Metrics/CollectionLiteralLength: # new in 1.47 + Enabled: false +Style/ArrayIntersect: # new in 1.40 + Enabled: false +Style/ComparableClamp: # new in 1.44 + Enabled: false +Style/ConcatArrayLiterals: # new in 1.41 + Enabled: false +Style/DataInheritance: # new in 1.49 + Enabled: false +Style/DirEmpty: # new in 1.48 + Enabled: false +Style/ExactRegexpMatch: # new in 1.51 + Enabled: false +Style/FileEmpty: # new in 1.48 + Enabled: false +Style/MapIntoArray: # new in 1.63 + Enabled: false +Style/MapToSet: # new in 1.42 + Enabled: false +Style/MinMaxComparison: # new in 1.42 + Enabled: false +Style/RedundantArrayConstructor: # new in 1.52 + Enabled: false +Style/RedundantConstantBase: # new in 1.40 + Enabled: false +Style/RedundantCurrentDirectoryInPath: # new in 1.53 + Enabled: false +Style/RedundantDoubleSplatHashBraces: # new in 1.41 + Enabled: false +Style/RedundantEach: # new in 1.38 + Enabled: false +Style/RedundantFilterChain: # new in 1.52 + Enabled: false +Style/RedundantHeredocDelimiterQuotes: # new in 1.45 + Enabled: false +Style/RedundantLineContinuation: # new in 1.49 + Enabled: false +Style/RedundantRegexpArgument: # new in 1.53 + Enabled: false +Style/RedundantRegexpConstructor: # new in 1.52 + Enabled: false +Style/ReturnNilInPredicateMethodDefinition: # new in 1.53 + Enabled: false +Style/SingleLineDoEndBlock: # new in 1.57 + Enabled: false +Style/SuperWithArgsParentheses: # new in 1.58 + Enabled: false +Style/YAMLFileRead: # new in 1.53 + Enabled: false +Performance/MapMethodChain: # new in 1.19 + Enabled: false +Rails/DangerousColumnNames: # new in 2.21 + Enabled: false +Rails/EnvLocal: # new in 2.22 + Enabled: false +Rails/RedundantActiveRecordAllMethod: # new in 2.21 + Enabled: false +Rails/ResponseParsedBody: # new in 2.18 + Enabled: false +Rails/ThreeStateBooleanColumn: # new in 2.19 + Enabled: false +Rails/UnusedRenderContent: # new in 2.21 + Enabled: false diff --git a/test/test_avoid_object_send_with_dynamic_method.rb b/test/test_avoid_object_send_with_dynamic_method.rb index bdca640..b176cbc 100644 --- a/test/test_avoid_object_send_with_dynamic_method.rb +++ b/test/test_avoid_object_send_with_dynamic_method.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/avoid_object_send_with_dynamic_method" diff --git a/test/test_insecure_hash_algorithm.rb b/test/test_insecure_hash_algorithm.rb index 71df7e3..6e0277f 100644 --- a/test/test_insecure_hash_algorithm.rb +++ b/test/test_insecure_hash_algorithm.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/insecure_hash_algorithm" diff --git a/test/test_rails_controller_render_action_symbol.rb b/test/test_rails_controller_render_action_symbol.rb index 8376ab6..9b67a2c 100644 --- a/test/test_rails_controller_render_action_symbol.rb +++ b/test/test_rails_controller_render_action_symbol.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/rails_controller_render_action_symbol" diff --git a/test/test_rails_controller_render_literal.rb b/test/test_rails_controller_render_literal.rb index 712b81d..5acd5c2 100644 --- a/test/test_rails_controller_render_literal.rb +++ b/test/test_rails_controller_render_literal.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/rails_controller_render_literal" diff --git a/test/test_rails_controller_render_shorthand.rb b/test/test_rails_controller_render_shorthand.rb index 4998c02..f4bb111 100644 --- a/test/test_rails_controller_render_shorthand.rb +++ b/test/test_rails_controller_render_shorthand.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/rails_controller_render_shorthand" diff --git a/test/test_rails_render_object_collection.rb b/test/test_rails_render_object_collection.rb index e5fa972..c13ec9a 100644 --- a/test/test_rails_render_object_collection.rb +++ b/test/test_rails_render_object_collection.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/rails_render_object_collection" diff --git a/test/test_rails_view_render_literal.rb b/test/test_rails_view_render_literal.rb index 0def50e..7c081dd 100644 --- a/test/test_rails_view_render_literal.rb +++ b/test/test_rails_view_render_literal.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/rails_view_render_literal" diff --git a/test/test_rails_view_render_shorthand.rb b/test/test_rails_view_render_shorthand.rb index 4c8110f..0077cee 100644 --- a/test/test_rails_view_render_shorthand.rb +++ b/test/test_rails_view_render_shorthand.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./cop_test" +require_relative "cop_test" require "minitest/autorun" require "rubocop/cop/github/rails_view_render_shorthand"