forked from Shopify/oktakit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better rubocopping (inherit from rubocop-shopify)
Signed-off-by: Jonathan Pulsifer <[email protected]>
- Loading branch information
Jonathan Pulsifer
committed
Dec 7, 2020
1 parent
90f1b39
commit 76f05fb
Showing
2 changed files
with
5 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters