Skip to content

Commit

Permalink
Better rubocopping (inherit from rubocop-shopify)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Pulsifer <[email protected]>
  • Loading branch information
Jonathan Pulsifer committed Dec 7, 2020
1 parent 90f1b39 commit 76f05fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 80 deletions.
83 changes: 3 additions & 80 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 76f05fb

Please sign in to comment.