1- # This is the configuration used to check the rubocop source code.
2- # Check out: https://github.com/bbatsov/rubocop
3- require :
4- - rubocop-performance
5- - rubocop-rspec
1+ # Inherits from root config
2+ inherit_from : ../.rubocop.yml
63
74AllCops :
8- NewCops : enable
9- DisplayCopNames : true
10- TargetRubyVersion : 3.0.0
115 SuggestExtensions : false
126
13- Include :
14- - ' **/Rakefile'
15- - ' **/config.ru'
16- - ' Gemfile'
17- - ' **/*.rb'
18- - ' **/*.rake'
19-
207 Exclude :
21- - ' **/*.js'
22- - ' **/node_modules/**/*'
23- - ' **/public/**/*'
24- - ' **/tmp/**/*'
25- - ' coverage/**/*'
26- - ' gen-examples/examples/**/*'
27- - ' node_modules/**/*'
28- - ' ../react_on_rails_pro/**/*' # Exclude pro package (has its own linting)
298 - ' spec/dummy/bin/*'
30- - ' spec/fixtures/**/*'
31- - ' spec/react_on_rails/dummy-for-generators/**/*'
32- - ' tmp/**/*'
33- - ' vendor/**/*'
349
3510Naming/FileName :
3611 Exclude :
3712 - ' **/Gemfile*'
3813 - ' **/Rakefile'
3914 - ' **/Steepfile'
4015
41- Layout/LineLength :
42- Max : 120
43-
44- Style/StringLiterals :
45- EnforcedStyle : double_quotes
46-
47- Style/Documentation :
48- Enabled : false
49-
50- Style/HashEachMethods :
51- Enabled : true
52-
53- Style/HashTransformKeys :
54- Enabled : true
55-
56- Style/HashTransformValues :
57- Enabled : true
58-
5916Lint/AssignmentInCondition :
6017 Exclude :
6118 - ' spec/dummy/bin/spring'
@@ -66,33 +23,23 @@ Lint/SuppressedException:
6623 - ' spec/dummy/bin/rake'
6724
6825Metrics/AbcSize :
69- Max : 28
7026 Exclude :
7127 - ' lib/generators/react_on_rails/install_generator.rb' # Generator setup methods require comprehensive error handling
7228
7329Metrics/CyclomaticComplexity :
7430 Max : 7
7531
76- Metrics/PerceivedComplexity :
77- Max : 10
78-
7932Metrics/ClassLength :
8033 Max : 150
8134 Exclude :
8235 - ' lib/generators/react_on_rails/base_generator.rb' # Generator complexity justified
8336 - ' lib/react_on_rails/dev/server_manager.rb' # Dev tool with comprehensive help system
8437
85- Metrics/ParameterLists :
86- Max : 5
87- CountKeywordArgs : false
88-
8938Metrics/MethodLength :
90- Max : 41
9139 Exclude :
9240 - ' lib/generators/react_on_rails/install_generator.rb' # Generator setup methods require comprehensive error handling
9341
9442Metrics/ModuleLength :
95- Max : 180
9643 Exclude :
9744 - ' spec/react_on_rails/engine_spec.rb' # Comprehensive engine tests require many examples
9845
@@ -107,15 +54,6 @@ RSpec/AnyInstance:
10754 - ' spec/react_on_rails/binstubs/dev_static_spec.rb'
10855 - ' spec/react_on_rails/dev/**/*_spec.rb' # Dev module tests require system mocking
10956
110- RSpec/DescribeClass :
111- Enabled : false
112-
113- RSpec/ExampleLength :
114- Enabled : false
115-
116- RSpec/MessageSpies :
117- Enabled : false
118-
11957RSpec/NestedGroups :
12058 Max : 4
12159
@@ -127,19 +65,10 @@ RSpec/BeforeAfterAll:
12765 - ' spec/react_on_rails/binstubs/dev_static_spec.rb'
12866 - ' spec/react_on_rails/dev/**/*_spec.rb' # Dev module tests require global setup
12967
130- RSpec/MessageChain :
131- Enabled : false
132-
133- RSpec/MultipleExpectations :
134- Enabled : false
135-
13668RSpec/MultipleDescribes :
13769 Exclude :
13870 - ' spec/dummy/spec/system/integration_spec.rb'
13971
140- RSpec/MultipleMemoizedHelpers :
141- Max : 12
142-
14372Style/GlobalVars :
14473 Exclude :
14574 - ' spec/dummy/config/environments/development.rb'
@@ -156,4 +85,3 @@ RSpec/InstanceVariable:
15685RSpec/StubbedMock :
15786 Exclude :
15887 - ' spec/react_on_rails/dev/**/*_spec.rb' # Dev module tests use mixed stub/mock patterns
159-
0 commit comments