Skip to content

Commit ac64f62

Browse files
committed
Add rubocop extensions: packaging, performance, rake
1 parent 404c152 commit ac64f62

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.rubocop.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
inherit_from: .rubocop_todo.yml
22

3+
require:
4+
- rubocop-packaging
5+
- rubocop-performance
6+
- rubocop-rake
7+
38
AllCops:
49
NewCops: enable
10+
SuggestExtensions: false
511
TargetRubyVersion: 3.0
612

713
Layout/EmptyLineAfterGuardClause:
814
Enabled: false
915

1016
Layout/HashAlignment:
1117
Exclude:
12-
- 'lib/gemdiff/repo_finder.rb'
13-
- 'lib/gemdiff/colorize.rb'
18+
- "lib/gemdiff/repo_finder.rb"
19+
- "lib/gemdiff/colorize.rb"
1420

1521
Layout/LineLength:
1622
Max: 120
@@ -65,6 +71,6 @@ Style/ZeroLengthPredicate:
6571

6672
Style/FrozenStringLiteralComment:
6773
Exclude:
68-
- 'Gemfile'
69-
- 'Rakefile'
70-
- '*.gemspec'
74+
- "Gemfile"
75+
- "Rakefile"
76+
- "*.gemspec"

Gemfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ source "https://rubygems.org"
44

55
gem "minitest", "~> 5.21"
66
gem "mocha", "~> 2.0"
7-
gem "pry-byebug" unless ENV["CI"]
87
gem "rake", "~> 13.0"
98

9+
unless ENV["CI"]
10+
gem "pry-byebug"
11+
gem "rubocop", "~> 1.66"
12+
gem "rubocop-packaging", "~> 0.5"
13+
gem "rubocop-performance", "~> 1.22"
14+
gem "rubocop-rake", "~> 0.6"
15+
end
16+
1017
gemspec

0 commit comments

Comments
 (0)