Skip to content

Commit

Permalink
Add rubocop and stickler
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienNeibaf committed Sep 19, 2019
1 parent 8300102 commit 0f705df
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
AllCops:
Exclude:
- "bin/*"
- "db/*"
- "config/*"
- "Guardfile"
- "Rakefile"
DisplayCopNames: true

Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Include: ["app/controllers/*"]
Max: 20
Metrics/AbcSize:
Include: ["app/controllers/*"]
Max: 30
Metrics/ClassLength:
Max: 150
Metrics/BlockLength:
ExcludedMethods: ['describe']

Style/Documentation:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false

Layout/AlignHash:
EnforcedColonStyle: key
Layout/ExtraSpacing:
AllowForAlignment: false
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented

10 changes: 10 additions & 0 deletions .stickler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
linters:
rubocop:
display_cop_names: true
files:
ignore:
- "bin/*"
- "db/*"
- "config/*"
- "Guardfile"
- "Rakefile"

0 comments on commit 0f705df

Please sign in to comment.