Skip to content
Snippets Groups Projects
Commit 8c2ab9e9 authored by Eduard Thamm's avatar Eduard Thamm
Browse files

Settings: Enrich Metrics/LineLength config

parent fed30f11
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -166,6 +166,20 @@ Metrics/CyclomaticComplexity:
Metrics/LineLength:
Enabled: true
Max: 125
# To make it possible to copy or click on URIs in the code, we allow lines
# containing a URI to be longer than Max.
AllowHeredoc: true
AllowURI: true
URISchemes:
- http
- https
# The IgnoreCopDirectives option causes the LineLength rule to ignore cop
# directives like '# rubocop: enable ...' when calculating a line's length.
IgnoreCopDirectives: false
# The IgnoredPatterns option is a list of !ruby/regexp and/or string
# elements. Strings will be converted to Regexp objects. A line that matches
# any regular expression listed in this option will be ignored by LineLength.
IgnoredPatterns: []
Metrics/MethodLength:
Description: Avoid methods longer than 10 lines of code.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment