11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2018 -12-20 21:38:24 +0000 using RuboCop version 0.51.0.
3+ # on 2019 -12-09 18:07:42 +0100 using RuboCop version 0.51.0.
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
@@ -26,41 +26,47 @@ Lint/RescueWithoutErrorClass:
2626 Exclude :
2727 - ' lib/grape/validations/validators/coerce.rb'
2828
29- # Offense count: 47
29+ # Offense count: 1
30+ # Cop supports --auto-correct.
31+ Lint/UnneededRequireStatement :
32+ Exclude :
33+ - ' lib/grape.rb'
34+
35+ # Offense count: 46
3036Metrics/AbcSize :
3137 Max : 44
3238
33- # Offense count: 4
39+ # Offense count: 7
3440# Configuration parameters: CountComments, ExcludedMethods.
3541Metrics/BlockLength :
3642 Max : 182
3743
38- # Offense count: 9
44+ # Offense count: 10
3945# Configuration parameters: CountComments.
4046Metrics/ClassLength :
4147 Max : 302
4248
43- # Offense count: 31
49+ # Offense count: 30
4450Metrics/CyclomaticComplexity :
4551 Max : 14
4652
47- # Offense count: 1234
53+ # Offense count: 1300
4854# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
4955# URISchemes: http, https
5056Metrics/LineLength :
5157 Max : 215
5258
53- # Offense count: 57
59+ # Offense count: 60
5460# Configuration parameters: CountComments.
5561Metrics/MethodLength :
56- Max : 34
62+ Max : 33
5763
5864# Offense count: 12
5965# Configuration parameters: CountComments.
6066Metrics/ModuleLength :
6167 Max : 220
6268
63- # Offense count: 21
69+ # Offense count: 22
6470Metrics/PerceivedComplexity :
6571 Max : 14
6672
@@ -74,8 +80,40 @@ Naming/FileName:
7480 - ' Guardfile'
7581 - ' Rakefile'
7682
83+ # Offense count: 1
84+ # Cop supports --auto-correct.
85+ Performance/RegexpMatch :
86+ Exclude :
87+ - ' lib/grape/middleware/versioner/path.rb'
88+
7789# Offense count: 2
7890# Configuration parameters: SupportedStyles.
7991# SupportedStyles: annotated, template
8092Style/FormatStringToken :
8193 EnforcedStyle : template
94+
95+ # Offense count: 1
96+ # Cop supports --auto-correct.
97+ # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
98+ # SupportedStyles: predicate, comparison
99+ Style/NumericPredicate :
100+ Exclude :
101+ - ' spec/**/*'
102+ - ' lib/grape/middleware/formatter.rb'
103+
104+ # Offense count: 12
105+ # Cop supports --auto-correct.
106+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil.
107+ Style/SafeNavigation :
108+ Exclude :
109+ - ' lib/grape/api/instance.rb'
110+ - ' lib/grape/dsl/desc.rb'
111+ - ' lib/grape/dsl/helpers.rb'
112+ - ' lib/grape/dsl/inside_route.rb'
113+ - ' lib/grape/dsl/routing.rb'
114+ - ' lib/grape/endpoint.rb'
115+ - ' lib/grape/middleware/error.rb'
116+ - ' lib/grape/middleware/versioner/accept_version_header.rb'
117+ - ' lib/grape/middleware/versioner/header.rb'
118+ - ' lib/grape/middleware/versioner/param.rb'
119+ - ' lib/grape/middleware/versioner/path.rb'
0 commit comments