Skip to content

Commit

Permalink
fda
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 committed Feb 27, 2024
1 parent ba3c48e commit 835a201
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# TODO: remove this
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.3

MethodLength:
Description: 'Avoid methods longer than 30 lines of code.'
Max: 30 # default is 10

Documentation:
Enabled: false

StringLiterals:
Enabled: false

HashSyntax:
Enabled: false

SpaceInsideHashLiteralBraces:
Enabled: false

Encoding:
Enabled: false

LineLength:
Max: 100

FormatString:
Enabled: false # we use % for i18n

IfUnlessModifier:
Enabled: false

Next:
Enabled: false # don't force next over conditions

MethodCalledOnDoEndBlock:
Enabled: true

LeadingCommentSpace:
Enabled: false

RescueModifier:
Enabled: false

AssignmentInCondition:
Enabled: false

AlignParameters:
Enabled: false # don't care if parameters are not aligned

AlignParameters:
Enabled: false # don't care if parameters are not aligned

WhileUntilModifier:
Enabled: false

ParenthesesAroundCondition:
Enabled: false

DotPosition:
Enabled: false

Lambda:
Enabled: false # don't require -> for single line lambdas

RedundantSelf:
Enabled: false

RedundantReturn:
Enabled: false

SingleLineBlockParams:
Enabled: false

FormatString:
Enabled: false # we use % for i18n

Style/Alias:
Enabled: false

Style/IndentArray:
EnforcedStyle: consistent

Style/MultilineMethodCallBraceLayout:
Enabled: false

Style/MultilineHashBraceLayout:
Enabled: false

Style/MultilineArrayBraceLayout:
Enabled: false
18 changes: 18 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-05-12 11:20:45 -0400 using RuboCop version 0.39.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: 7
Metrics/AbcSize:
Max: 39

# Offense count: 1
Metrics/PerceivedComplexity:
Max: 8

Style/FrozenStringLiteralComment:
Enabled: False

0 comments on commit 835a201

Please sign in to comment.