ontohub/ontohub-models

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
AllCops:
  TargetRubyVersion: 2.5
  TargetRailsVersion: 5.1

  CacheRootDirectory: /tmp
  AllowSymlinksInCacheRootDirectory: true

  Exclude:
    - 'apidoc/**/*'
    - 'bin/bundle'
    - 'bin/rails'
    - 'bin/rake'
    - 'bin/setup'
    - 'bin/spring'
    - 'bin/update'
    - 'config/deploy/*.rb'
    - 'config/mixins/applications/*.rb'
    - 'data/**/*'
    - 'db/schema.rb'
    - 'node_modules/**/*'
    - 'spec/dummy/**/*'
    - 'vendor/**/*'
    - 'repositories/**/*'
    - 'repos/**/*'
    - 'tmp/**/*'

Layout/AlignParameters:
  Enabled: false

Layout/DotPosition:
  EnforcedStyle: trailing

Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

Layout/SpaceInsideHashLiteralBraces:
  EnforcedStyle: no_space

Metrics/BlockLength:
  Exclude:
    - 'app/graphql/**/*'
    - 'config/routes.rb'
    - 'config/environments/**/*'
    - 'config/initializers/devise.rb'
    - 'lib/tasks/**/*.rake'
    - 'spec/**/*'
    - 'db/migrate/*'
    - '*.gemspec'

Metrics/LineLength:
  Exclude:
    - 'app/graphql/**/*_enum.rb'
    - 'config/initializers/devise.rb'

Naming/FileName:
  Exclude:
    - config/deploy/*.rb
    - config/mixins/applications/*.rb
    - lib/git-shell.rb
    - lib/graphql-pundit.rb
    - lib/hets-agent.rb
    - lib/ontohub-models.rb
    - spec/lib/git-shell_spec.rb

Style/Documentation:
  Exclude:
    - 'app/indexers/**/*'
    - 'spec/**/*'

Style/DoubleNegation:
  Enabled: false

Style/FormatStringToken:
  Enabled: false

Style/NumericLiterals:
  Enabled: false

Style/PercentLiteralDelimiters:
  PreferredDelimiters:
    default: ()
    '%i': '()'
    '%I': '()'
    '%r': '{}'
    '%w': '()'
    '%W': '()'

Style/SymbolArray:
  Exclude:
    - 'db/migrate/**'

Style/TrailingCommaInArrayLiteral:
  EnforcedStyleForMultiline: comma

Style/TrailingCommaInHashLiteral:
  EnforcedStyleForMultiline: comma