rubocop-dubit 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b8b0c9103dfa1bb69a6c8a1717034ecdb122cea682b2334118a32b6cfcea346a
4
+ data.tar.gz: ae76045eec27809d7ae8cbc96ce1e65a5a741f4c15bbbb588a776174a28c9b34
5
+ SHA512:
6
+ metadata.gz: b6553e47560c2c710dee0f3bf9e58a62edb42bf1534d306c993f1f21c78f1524f54e2c6f9f3d56fd8601ba8f2bddb5c1ec80505ad73b57fc6f7ba92daf90bd62
7
+ data.tar.gz: 9f53dbb7e0a5b7f07d89914ee4eb4b2202d22862fddaf09cc3799878a612002dda6ddc3729dce201f62311abada81cb80d4135bf3fa692a6e4601592e512c325
@@ -0,0 +1,11 @@
1
+ inherit_mode:
2
+ # Lists the options that should be merged rather than overridden from the below files. Without it, the last
3
+ # file that specifies the rule will take effect and all configuration in the files above it will be ignored.
4
+ merge:
5
+ - Exclude
6
+
7
+ inherit_from:
8
+ - ruby.rubocop.yml
9
+ - rails.rubocop.yml
10
+ - haml.rubocop.yml
11
+ - rspec.rubocop.yml
@@ -0,0 +1,4 @@
1
+ # Linting for HAML files
2
+ # @see https://github.com/sds/haml-lint
3
+
4
+ require: haml_lint
@@ -0,0 +1,33 @@
1
+ # Linting specific for the Ruby on Rails applications
2
+ require: rubocop-rails
3
+
4
+ # Exclude files that are auto-generated
5
+ AllCops:
6
+ Exclude:
7
+ - db/schema.rb
8
+ - bin/**/*
9
+ - tmp/**/*
10
+
11
+ Rails:
12
+ Enabled: true
13
+
14
+ # Rake tasks can grow quite long, with many lines. Concerns with more than a little functionality can
15
+ # also feature long blocks.
16
+ Metrics/BlockLength:
17
+ Exclude:
18
+ - '**/*.rake'
19
+ - app/controllers/concerns/**/*.rb
20
+ - app/models/concerns/**/*.rb
21
+ - config/environments/*.rb
22
+
23
+ # Migrations and rake tasks can grow quite long, and this is valid.
24
+ Metrics/MethodLength:
25
+ Exclude:
26
+ - libs/tasks/*/**.rake
27
+ - 'db/migrate/*'
28
+
29
+ # Currently an issue with this cop and seems to require the MySQL adapter version of schema.rb to be committed
30
+ # in order to determine whether columns have a unique index:
31
+ # @see https://github.com/rubocop-hq/rubocop-rails/issues/226
32
+ Rails/UniqueValidationWithoutIndex:
33
+ Enabled: false
@@ -0,0 +1,33 @@
1
+ # Linting for the RSpec test suites
2
+
3
+ require:
4
+ - rubocop-rspec
5
+
6
+ # You pass blocks to describe and context methods, that grow with the number of specs inside them. It's valid
7
+ # to have many specs in a single describe or context definition.
8
+ Metrics/BlockLength:
9
+ Exclude:
10
+ - spec/**/*.rb
11
+
12
+ # Request and acceptance tests are integration tests, that verify many different steps or final outputs. This
13
+ # requires multiple assertions.
14
+ RSpec/MultipleExpectations:
15
+ Exclude:
16
+ - 'spec/requests/**/*.rb'
17
+ - 'spec/acceptance/**/*.rb'
18
+
19
+ # Request and acceptance tests are integration tests, and often involve many steps to complete the user journey,
20
+ # so often require many lines to achieve this.
21
+ RSpec/ExampleLength:
22
+ Max: 20
23
+ Exclude:
24
+ - 'spec/request/**/*.rb'
25
+ - 'spec/acceptance/**/*.rb'
26
+
27
+ # Allow starting context descriptions with any of these words
28
+ RSpec/ContextWording:
29
+ Prefixes:
30
+ - Given
31
+ - when
32
+ - and
33
+ - with
@@ -0,0 +1,51 @@
1
+ require: rubocop-performance
2
+
3
+ # Linting for the Ruby language
4
+
5
+ # Raise linting errors for code lines longer than 120 characters (about half the width of a modern laptop screen)
6
+ Layout/LineLength:
7
+ Max: 120
8
+
9
+ # The cop measures complexity of methods (nesting, branches, etc)
10
+ # @see http://wiki.c2.com/?AbcMetric%20and%20https://en.wikipedia.org/wiki/ABC_Software_Metric
11
+ Metrics/AbcSize:
12
+ Max: 20
13
+
14
+ # Methods longer than 25 lines long (excluding comments) should be broken up into smaller routines
15
+ Metrics/MethodLength:
16
+ CountComments: false
17
+ Max: 20
18
+
19
+ # Default is 100 lines, which is not a strong indicator of a problem
20
+ Metrics/ClassLength:
21
+ Max: 200
22
+
23
+ # Exclude Guardfile configuration
24
+ Metrics/BlockLength:
25
+ Exclude:
26
+ - Guardfile
27
+
28
+ # Prefer to call error objects 'error' in catch blocks
29
+ Naming/RescuedExceptionsVariableName:
30
+ PreferredName: 'error'
31
+
32
+ Style/ExponentialNotation: # Added in (0.82)
33
+ Enabled: true
34
+
35
+ Style/HashEachMethods: # Added in (0.80)
36
+ Enabled: true
37
+
38
+ Style/HashTransformKeys: # Added in (0.80)
39
+ Enabled: true
40
+
41
+ Style/HashTransformValues: # Added in (0.80)
42
+ Enabled: true
43
+
44
+ Layout/SpaceAroundMethodCallOperator: # Added in (0.82)
45
+ Enabled: true
46
+
47
+ Lint/RaiseException: # Added in (0.81)
48
+ Enabled: true
49
+
50
+ Lint/StructNewOverride: # Added in (0.81)
51
+ Enabled: true
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-dubit
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Dubit Limited
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: haml_lint
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.35'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.35'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.82'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.82'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-performance
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.5'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.5'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.5'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.38'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.38'
97
+ description: Shared RuboCop rules for Ruby projects at Dubit
98
+ email:
99
+ - ops@dubitlimited.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - config/default.yml
105
+ - config/haml.rubocop.yml
106
+ - config/rails.rubocop.yml
107
+ - config/rspec.rubocop.yml
108
+ - config/ruby.rubocop.yml
109
+ homepage: https://github.com/dubit/rubocop-dubit
110
+ licenses:
111
+ - MIT
112
+ metadata: {}
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '2.6'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubygems_version: 3.0.9
129
+ signing_key:
130
+ specification_version: 4
131
+ summary: RuboCop Dubit
132
+ test_files: []