diff --git a/.rubocop.yml b/.rubocop.yml index bff6ada..1b031ad 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,93 +1,16 @@ # This file strictly follows the rules defined in the Ruby style guide: # http://shopify.github.io/ruby-style-guide/ +inherit_gem: + rubocop-shopify: rubocop.yml AllCops: TargetRubyVersion: 2.6 + SuggestExtensions: false # Allow .ruby-version and spec.required_ruby_version to differ # to run a newer Ruby version for Rubocop, but don't force users to upgrade Gemspec/RequiredRubyVersion: Enabled: false -Rails: - Enabled: false - -Lint/AssignmentInCondition: - Enabled: false - -Style/Documentation: - Enabled: false - -Layout/MultilineOperationIndentation: - Enabled: false - -Layout/AlignParameters: - EnforcedStyle: with_fixed_indentation - -Layout/IndentFirstArgument: - EnforcedStyle: consistent - -Style/TrailingCommaInArrayLiteral: - Enabled: false - -Style/SignalException: - EnforcedStyle: only_raise - -Style/NumericLiterals: - Enabled: false - -Layout/CaseIndentation: - EnforcedStyle: end - -Layout/IndentFirstHashElement: - EnforcedStyle: consistent - -Style/WordArray: - Enabled: false - -Metrics/AbcSize: - Enabled: false - -Metrics/CyclomaticComplexity: - Enabled: false - -Style/StringLiterals: - Enabled: false - -Metrics/LineLength: - Max: 120 - -Metrics/ClassLength: - Enabled: false - -Metrics/MethodLength: - Enabled: false - -Metrics/BlockLength: - Exclude: - - "**/*_spec.rb" - -Metrics/ParameterLists: - Max: 5 - CountKeywordArgs: false - -Metrics/PerceivedComplexity: - Enabled: false - -Layout/EndAlignment: - EnforcedStyleAlignWith: variable - Style/FrozenStringLiteralComment: Enabled: false - -Style/Alias: - EnforcedStyle: prefer_alias_method - -Style/MutableConstant: - Enabled: false - -Performance/Casecmp: - Enabled: false - -Style/GuardClause: - Enabled: false diff --git a/Gemfile b/Gemfile index 449e957..a447d79 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,10 @@ +# frozen_string_literal: true source 'https://rubygems.org' gem 'byebug' gem 'rake' gem 'rubocop' +gem 'rubocop-shopify', require: false gem 'yard' group :test do