File tree Expand file tree Collapse file tree 3 files changed +8
-28
lines changed Expand file tree Collapse file tree 3 files changed +8
-28
lines changed Original file line number Diff line number Diff line change
1
+ inherit_gem :
2
+ main_branch_shared_rubocop_config : config/rubocop.yml
3
+
1
4
AllCops :
2
- NewCops : enable
3
- # Output extra information for each offense to make it easier to diagnose:
4
- DisplayCopNames : true
5
- DisplayStyleGuide : true
6
- ExtraDetails : true
7
- SuggestExtensions : false
8
- # RuboCop enforces rules depending on the oldest version of Ruby which
9
- # your project supports:
5
+ # Pin this project to Ruby 3.1 in case the shared config above is upgraded to 3.2
6
+ # or later.
10
7
TargetRubyVersion : 3.1
11
-
12
- # The default max line length is 80 characters
13
- Layout/LineLength :
14
- Max : 120
15
-
16
- # The DSL for RSpec and the gemspec file make it very hard to limit block length:
17
- Metrics/BlockLength :
18
- Exclude :
19
- - " spec/**/*_spec.rb"
20
- - " *.gemspec"
21
-
22
- Gemspec/DevelopmentDependencies :
23
- EnforcedStyle : gemspec
Original file line number Diff line number Diff line change @@ -49,14 +49,9 @@ CLEAN << 'rspec-report.xml'
49
49
50
50
require 'rubocop/rake_task'
51
51
52
- RuboCop ::RakeTask . new do |t |
53
- t . options = %w[
54
- --format progress
55
- --format json --out rubocop-report.json
56
- ]
57
- end
52
+ RuboCop ::RakeTask . new
58
53
59
- CLEAN << 'rubocop-report.json'
54
+ # YARD
60
55
61
56
unless RUBY_PLATFORM == 'java'
62
57
# yard:build
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Gem::Specification.new do |spec|
44
44
45
45
spec . add_development_dependency 'bundler-audit' , '~> 0.9'
46
46
# spec.add_development_dependency 'debug', '~> 1.9'
47
+ spec . add_development_dependency 'main_branch_shared_rubocop_config' , '~> 0.1'
47
48
spec . add_development_dependency 'rake' , '~> 13.2'
48
49
spec . add_development_dependency 'rspec' , '~> 3.13'
49
50
spec . add_development_dependency 'rubocop' , '~> 1.66'
You can’t perform that action at this time.
0 commit comments