Skip to content

Commit f11d477

Browse files
AlexWayferroute
authored andcommitted
Add RuboCop
1 parent 31413a4 commit f11d477

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

.rubocop.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
AllCops:
4+
TargetRubyVersion: 2.4
5+
NewCops: enable
6+
7+
Layout/FirstArrayElementIndentation:
8+
EnforcedStyle: consistent
9+
10+
Style/StringLiterals:
11+
EnforcedStyle: double_quotes
12+
13+
Metrics/BlockLength:
14+
Exclude:
15+
- spec/**/*
16+
17+
Naming/MethodParameterName:
18+
AllowedNames:
19+
- x
20+
- y
21+
- id
22+
- to
23+
24+
Naming/FileName:
25+
Exclude:
26+
- 'gemfiles/websocket-driver-*.gemfile'

.rubocop_todo.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2020-08-25 19:54:53 UTC using RuboCop version 0.89.1.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 24
10+
# Configuration parameters: IgnoredMethods.
11+
Metrics/AbcSize:
12+
Max: 66
13+
14+
# Offense count: 5
15+
# Configuration parameters: CountComments, CountAsOne.
16+
Metrics/ClassLength:
17+
Max: 258
18+
19+
# Offense count: 6
20+
# Configuration parameters: IgnoredMethods.
21+
Metrics/CyclomaticComplexity:
22+
Max: 14
23+
24+
# Offense count: 35
25+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
26+
Metrics/MethodLength:
27+
Max: 52
28+
29+
# Offense count: 9
30+
# Configuration parameters: CountComments, CountAsOne.
31+
Metrics/ModuleLength:
32+
Max: 602
33+
34+
# Offense count: 5
35+
# Configuration parameters: IgnoredMethods.
36+
Metrics/PerceivedComplexity:
37+
Max: 14
38+
39+
# Offense count: 2
40+
# Cop supports --auto-correct.
41+
# Configuration parameters: Keywords.
42+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
43+
Style/CommentAnnotation:
44+
Exclude:
45+
- 'spec/node_spec.rb'
46+
47+
# Offense count: 45
48+
Style/Documentation:
49+
Enabled: false
50+
51+
# Offense count: 7
52+
# Cop supports --auto-correct.
53+
# Configuration parameters: EnforcedStyle.
54+
# SupportedStyles: compact, exploded
55+
Style/RaiseArgs:
56+
Exclude:
57+
- 'lib/ferrum/browser/client.rb'
58+
- 'lib/ferrum/browser/command.rb'
59+
- 'lib/ferrum/browser/process.rb'
60+
- 'lib/ferrum/browser/xvfb.rb'
61+
- 'lib/ferrum/frame/runtime.rb'

0 commit comments

Comments
 (0)