Skip to content
Snippets Groups Projects
.rubocop.yml 4.61 KiB
Newer Older
  • Learn to ignore specific revisions
  • Matt Jankowski's avatar
    Matt Jankowski committed
    AllCops:
    
      TargetRubyVersion: 2.5
      NewCops: disable
    
    Matt Jankowski's avatar
    Matt Jankowski committed
      Exclude:
    
        - 'spec/**/*'
        - 'db/**/*'
        - 'app/views/**/*'
        - 'config/**/*'
        - 'bin/*'
        - 'Rakefile'
        - 'node_modules/**/*'
        - 'Vagrantfile'
        - 'vendor/**/*'
        - 'lib/json_ld/*'
        - 'lib/templates/**/*'
    
    Eugen Rochko's avatar
    Eugen Rochko committed
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Bundler/OrderedGems:
    
    Eugen Rochko's avatar
    Eugen Rochko committed
      Enabled: false
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Layout/AccessModifierIndentation:
      EnforcedStyle: indent
    
    Layout/EmptyLineAfterMagicComment:
      Enabled: false
    
    
    Layout/EmptyLineAfterGuardClause:
      Enabled: false
    
    
    Layout/EmptyLineBetweenDefs:
      AllowAdjacentOneLineDefs: true
    
    
    Layout/EmptyLinesAroundAttributeAccessor:
      Enabled: true
    
    
    Layout/FirstHashElementIndentation:
      EnforcedStyle: consistent
    
    
    Layout/HashAlignment:
      Enabled: false
    
    Layout/SpaceAroundMethodCallOperator:
      Enabled: true
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Layout/SpaceInsideHashLiteralBraces:
      EnforcedStyle: space
    
    Lint/DeprecatedOpenSSLConstant:
      Enabled: true
    
    Lint/DuplicateElsifCondition:
      Enabled: true
    
    Lint/MixedRegexpCaptureTypes:
      Enabled: true
    
    Lint/RaiseException:
      Enabled: true
    
    Lint/StructNewOverride:
      Enabled: true
    
    
    abcang's avatar
    abcang committed
    Lint/UselessAccessModifier:
      ContextCreatingMethods:
        - class_methods
    
    
      Exclude:
        - 'lib/mastodon/*_cli.rb'
    
        - 'lib/mastodon/*_cli.rb'
    
      Exclude:
        - 'lib/mastodon/*_cli.rb'
    
      Exclude:
        - 'lib/mastodon/*_cli.rb'
    
      Exclude:
        - 'lib/mastodon/*_cli.rb'
    
    Lerk's avatar
    Lerk committed
    Layout/LineLength:
    
    Matt Jankowski's avatar
    Matt Jankowski committed
      AllowURI: true
      Enabled: false
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
      CountComments: false
    
      Max: 65
      Exclude:
        - 'lib/mastodon/*_cli.rb'
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Metrics/PerceivedComplexity:
    
    Naming/MemoizedInstanceVariableName:
      Enabled: false
    
    
    Naming/MethodParameterName:
      Enabled: true
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Rails:
      Enabled: true
    
    
    Rails/ApplicationController:
    
      Exclude:
        - 'app/controllers/well_known/**/*.rb'
    
    Matt Jankowski's avatar
    Matt Jankowski committed
      Enabled: false
    
    
    Rails/Exit:
      Exclude:
        - 'lib/mastodon/*'
    
        - 'lib/cli.rb'
    
    Rails/FilePath:
      Enabled: false
    
    Rails/HasAndBelongsToMany:
      Enabled: false
    
    Rails/HasManyOrHasOneDependent:
      Enabled: false
    
    
    Rails/HelperInstanceVariable:
      Enabled: false
    
    
    Rails/HttpStatus:
      Enabled: false
    
    Rails/IndexBy:
      Enabled: false
    
    Rails/InverseOf:
      Enabled: false
    
    Rails/LexicallyScopedActionFilter:
      Enabled: false
    
    Rails/OutputSafety:
      Enabled: true
    
    Rails/RakeEnvironment:
      Enabled: false
    
    Rails/RedundantForeignKey:
      Enabled: false
    
    Rails/SkipsModelValidations:
      Enabled: false
    
    Rails/UniqueValidationWithoutIndex:
      Enabled: false
    
    Style/AccessorGrouping:
      Enabled: true
    
    Style/AccessModifierDeclarations:
      Enabled: false
    
    Style/ArrayCoercion:
      Enabled: true
    
    Style/BisectedAttrAccessor:
      Enabled: true
    
    Style/CaseLikeIf:
      Enabled: false
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Style/ClassAndModuleChildren:
      Enabled: false
    
    
    Style/CollectionMethods:
      Enabled: true
      PreferredMethods:
        find_all: 'select'
    
    Style/Documentation:
      Enabled: false
    
    Style/DoubleNegation:
    
    Style/ExpandPathArguments:
      Enabled: false
    
    Style/ExponentialNotation:
      Enabled: true
    
    Style/FormatString:
      Enabled: false
    
    
    Style/FormatStringToken:
      Enabled: false
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Style/GuardClause:
    
    Style/HashAsLastArrayItem:
      Enabled: false
    
    Style/HashEachMethods:
      Enabled: true
    
    Style/HashLikeCase:
      Enabled: true
    
    Style/HashTransformKeys:
      Enabled: true
    
    Style/HashTransformValues:
      Enabled: false
    
    Style/IfUnlessModifier:
      Enabled: false
    
    Style/InverseMethods:
      Enabled: false
    
    
    Style/MutableConstant:
      Enabled: false
    
    
    Style/PercentLiteralDelimiters:
      PreferredDelimiters:
        '%i': '()'
        '%w': '()'
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Style/PerlBackrefs:
      AutoCorrect: false
    
    Style/RedundantAssignment:
      Enabled: false
    
    Style/RedundantFetchBlock:
      Enabled: true
    
    Style/RedundantFileExtensionInRequire:
      Enabled: true
    
    Style/RedundantRegexpCharacterClass:
      Enabled: false
    
    Style/RedundantRegexpEscape:
      Enabled: false
    
    Style/RedundantReturn:
      Enabled: true
    
    
    Style/RedundantBegin:
      Enabled: false
    
    
    Matt Jankowski's avatar
    Matt Jankowski committed
    Style/RegexpLiteral:
    
    yhirano's avatar
    yhirano committed
      Enabled: false
    
    
    Style/RescueStandardError:
      Enabled: false
    
    Style/SignalException:
      Enabled: false
    
    Style/SlicingWithRange:
      Enabled: true
    
    
    Style/TrailingCommaInArrayLiteral:
      EnforcedStyleForMultiline: 'comma'
    
    Style/TrailingCommaInHashLiteral:
    
    Matt Jankowski's avatar
    Matt Jankowski committed
      EnforcedStyleForMultiline: 'comma'
    
    
    Style/UnpackFirst:
      Enabled: false