Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Sep 27, 2018
0 parents commit c7227a3
Show file tree
Hide file tree
Showing 25 changed files with 3,780 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .rubocop.ribose.yml
@@ -0,0 +1,66 @@
AllCops:
Include:
- "**/*.rake"
- "**/Gemfile"
- "**/*.gemfile"
- "**/Rakefile"
- "**/*.rb"
Exclude:
- "vendor/**/*"
- "db/**/*"
- "tmp/**/*"
DisplayCopNames: false
StyleGuideCopsOnly: false
Rails:
Enabled: true
Metrics/AbcSize:
Description: A calculated magnitude based on number of assignments, branches, and
conditions.
Enabled: true
Max: 15
Metrics/BlockLength:
Exclude:
- "spec/**/*"
Metrics/BlockNesting:
Description: Avoid excessive block nesting
StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
Enabled: true
Max: 3
Metrics/ClassLength:
Description: Avoid classes longer than 100 lines of code.
Enabled: false
CountComments: false
Max: 100
Metrics/CyclomaticComplexity:
Description: A complexity metric that is strongly correlated to the number of test
cases needed to validate a method.
Enabled: true
Max: 6
Metrics/LineLength:
Description: Limit lines to 80 characters.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
Enabled: true
Max: 80
AllowURI: true
URISchemes:
- http
- https
Metrics/MethodLength:
Description: Avoid methods longer than 10 lines of code.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
Enabled: true
CountComments: true
Max: 10
Exclude:
- "spec/**/*"
Metrics/ParameterLists:
Description: Avoid long parameter lists.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
Enabled: true
Max: 5
CountKeywordArgs: true
Metrics/PerceivedComplexity:
Description: A complexity metric geared towards measuring complexity for a human
reader.
Enabled: true
Max: 7

0 comments on commit c7227a3

Please sign in to comment.