Skip to content

Instantly share code, notes, and snippets.

@gfx
Last active April 23, 2019 04:26
Show Gist options
  • Save gfx/95bb425ec7bbd5c0d13c8b005a6eb4f1 to your computer and use it in GitHub Desktop.
Save gfx/95bb425ec7bbd5c0d13c8b005a6eb4f1 to your computer and use it in GitHub Desktop.
Kibela Rubocop settings in 2019/04/23
require: rubocop-performance
inherit_from: .rubocop_todo.yml
# See also https://github.com/onk/onkcop/blob/master/config/rubocop.yml
AllCops:
TargetRubyVersion: 2.5
DisplayCopNames: true
Exclude:
- vendor/**/*
- db/**/*
- bin/**
- node_modules/**/*
- otama/node_modules/**/*
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/EmptyLinesAroundModuleBody:
Enabled: false
Lint/AmbiguousBlockAssociation:
Enabled: false
Lint/DuplicateMethods:
Enabled: true
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/EmptyLinesAroundArguments:
Enabled: false # this cop breaks graphql type file when auto correct
Layout/EmptyLinesAroundClassBody:
Enabled: false
Style/RescueStandardError:
Enabled: false
Metrics/AbcSize:
Max: 55
Metrics/CyclomaticComplexity:
Max: 10
Metrics/ClassLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/LineLength:
Enabled: false
Metrics/MethodLength:
Max: 50
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Max: 12
Naming/HeredocDelimiterNaming:
Enabled: false
Naming/UncommunicativeMethodParamName:
Enabled: false
Naming/UncommunicativeBlockParamName:
Enabled: false
Rails:
Enabled: true
Rails/UnknownEnv:
Environments:
- development
- test
- production
- staging
- heroku
- admin
Rails/OutputSafety:
Enabled: false
Rails/TimeZone:
Enabled: true
Style/CommentedKeyword:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/CommentAnnotation:
Enabled: false
Style/Documentation:
Enabled: false
Naming/FileName:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GuardClause:
Enabled: false
Style/IfInsideElse:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Lambda:
Enabled: false
Style/MutableConstant:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/SignalException:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/WordArray:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/AccessModifierDeclarations:
EnforcedStyle: inline
Layout/SpaceInLambdaLiteral:
Enabled: false
Naming/VariableNumber:
Enabled: false
Naming/PredicateName:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Style/YodaCondition:
Enabled: false
Style/FormatStringToken:
Enabled: false
Style/MultipleComparison:
Enabled: false
Style/SymbolProc:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/EmptyElse:
Enabled: false
Style/NonNilCheck:
Enabled: false
Performance/RedundantBlockCall:
Enabled: false
Performance/TimesMap:
Enabled: false
Rails/DynamicFindBy:
Enabled: false
Rails/FilePath:
Enabled: false
Rails/Validation:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: true
Naming/MemoizedInstanceVariableName:
Enabled: false
Naming/RescuedExceptionsVariableName:
Enabled: false
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-01-07 15:19:05 +0900 using RuboCop version 0.62.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
Metrics/CyclomaticComplexity:
Max: 14
# Offense count: 5
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 60
# Offense count: 1
Metrics/PerceivedComplexity:
Max: 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment