File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ Gemfile.lock
11
11
node_modules
12
12
package-lock.json
13
13
ai-prompt.erb
14
+ rubocop-report.json
Original file line number Diff line number Diff line change
1
+ inherit_gem :
2
+ main_branch_shared_rubocop_config : config/rubocop.yml
3
+
4
+ AllCops :
5
+ # Pin this project to Ruby 3.1 in case the shared config above is upgraded to 3.2
6
+ # or later.
7
+ TargetRubyVersion : 3.2
Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ task :test do
18
18
end
19
19
default_tasks << :test
20
20
21
+ # Rubocop
22
+
23
+ require 'rubocop/rake_task'
24
+
25
+ RuboCop ::RakeTask . new
26
+
27
+ default_tasks << :rubocop
28
+
29
+ # YARD
30
+
21
31
unless RUBY_PLATFORM == 'java' || RUBY_ENGINE == 'truffleruby'
22
32
#
23
33
# YARD documentation for this project can NOT be built with JRuby.
@@ -51,7 +61,7 @@ default_tasks << :build
51
61
task default : default_tasks
52
62
53
63
desc 'Build and install the git gem and run a sanity check'
54
- task : 'test:gem' => :install do
64
+ task 'test:gem' : :install do
55
65
output = `ruby -e "require 'git'; g = Git.open('.'); puts g.log.size"` . chomp
56
66
raise 'Gem test failed' unless $CHILD_STATUS. success?
57
67
raise 'Expected gem test to return an integer' unless output =~ /^\d +$/
Original file line number Diff line number Diff line change @@ -33,9 +33,12 @@ Gem::Specification.new do |spec|
33
33
spec . add_runtime_dependency 'rchardet' , '~> 1.9'
34
34
35
35
spec . add_development_dependency 'create_github_release' , '~> 2.1'
36
+ spec . add_development_dependency 'main_branch_shared_rubocop_config' , '~> 0.1'
36
37
spec . add_development_dependency 'minitar' , '~> 1.0'
37
38
spec . add_development_dependency 'mocha' , '~> 2.7'
38
39
spec . add_development_dependency 'rake' , '~> 13.2'
40
+ spec . add_development_dependency 'rubocop' , '~> 1.77'
41
+
39
42
spec . add_development_dependency 'test-unit' , '~> 3.6'
40
43
41
44
unless RUBY_PLATFORM == 'java'
You can’t perform that action at this time.
0 commit comments