Skip to content

Commit 8e7ef1c

Browse files
committed
🍻 Add REEK
1 parent ca72087 commit 8e7ef1c

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ platform :mri do
1818

1919
# Dev Console - Binding.pry - Irb replacement
2020
gem "pry", "~> 0.14" # ruby >= 2.0
21+
22+
gem "reek", "~> 6.4"
2123
end
2224

2325
# Security Audit

Gemfile.lock

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,46 @@ GEM
2020
ast (2.4.2)
2121
backports (3.25.0)
2222
benchmark (0.4.0)
23+
bigdecimal (3.1.9)
2324
bundler-audit (0.9.2)
2425
bundler (>= 1.2.0, < 3)
2526
thor (~> 1.0)
2627
byebug (11.1.3)
2728
coderay (1.1.3)
29+
concurrent-ruby (1.3.5)
2830
date (3.4.1)
2931
diff-lcs (1.6.0)
3032
diffy (3.4.3)
3133
docile (1.4.1)
34+
dry-configurable (1.3.0)
35+
dry-core (~> 1.1)
36+
zeitwerk (~> 2.6)
37+
dry-core (1.1.0)
38+
concurrent-ruby (~> 1.0)
39+
logger
40+
zeitwerk (~> 2.6)
41+
dry-inflector (1.2.0)
42+
dry-initializer (3.2.0)
43+
dry-logic (1.6.0)
44+
bigdecimal
45+
concurrent-ruby (~> 1.0)
46+
dry-core (~> 1.1)
47+
zeitwerk (~> 2.6)
48+
dry-schema (1.13.4)
49+
concurrent-ruby (~> 1.0)
50+
dry-configurable (~> 1.0, >= 1.0.1)
51+
dry-core (~> 1.0, < 2)
52+
dry-initializer (~> 3.0)
53+
dry-logic (>= 1.4, < 2)
54+
dry-types (>= 1.7, < 2)
55+
zeitwerk (~> 2.6)
56+
dry-types (1.8.2)
57+
bigdecimal (~> 3.0)
58+
concurrent-ruby (~> 1.0)
59+
dry-core (~> 1.0)
60+
dry-inflector (~> 1.0)
61+
dry-logic (~> 1.4)
62+
zeitwerk (~> 2.6)
3263
github-markup (5.0.1)
3364
json (2.10.1)
3465
kettle-soup-cover (1.0.4)
@@ -42,6 +73,7 @@ GEM
4273
version_gem (~> 1.1, >= 1.1.4)
4374
language_server-protocol (3.17.0.4)
4475
lint_roller (1.1.0)
76+
logger (1.6.6)
4577
method_source (1.1.0)
4678
ostruct (0.6.1)
4779
parallel (1.26.3)
@@ -60,6 +92,12 @@ GEM
6092
rdoc (6.12.0)
6193
psych (>= 4.0.0)
6294
redcarpet (3.6.0)
95+
reek (6.4.0)
96+
dry-schema (~> 1.13.0)
97+
logger (~> 1.6)
98+
parser (~> 3.3.0)
99+
rainbow (>= 2.0, < 4.0)
100+
rexml (~> 3.1)
63101
regexp_parser (2.10.0)
64102
rexml (3.4.1)
65103
rspec (3.13.0)
@@ -169,6 +207,7 @@ GEM
169207
ostruct
170208
rainbow
171209
yard
210+
zeitwerk (2.7.2)
172211

173212
PLATFORMS
174213
arm64-darwin-22
@@ -188,6 +227,7 @@ DEPENDENCIES
188227
rake (~> 13.0)
189228
rdoc (~> 6.11)
190229
redcarpet (~> 3.6)
230+
reek (~> 6.4)
191231
rspec (~> 3.13)
192232
rspec-block_is_expected (~> 1.0)
193233
rubocop-lts (~> 8.1, >= 8.1.1)

REEK

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
lib/version_gem/error.rb -- 1 warning:
2+
[4]:IrresponsibleModule: VersionGem::Error has no descriptive comment [https://github.com/troessner/reek/blob/v6.4.0/docs/Irresponsible-Module.md]
3+
lib/version_gem/ruby.rb -- 1 warning:
4+
[14, 15]:DuplicateMethodCall: VersionGem::Ruby#actual_minor_version? calls 'RUBY_VER.segments' 2 times [https://github.com/troessner/reek/blob/v6.4.0/docs/Duplicate-Method-Call.md]
5+
spec/spec_helper.rb -- 1 warning:
6+
[29, 30]:DuplicateMethodCall: VersionGem::Faux#actual_minor_version? calls 'RUBY_VER.segments' 2 times [https://github.com/troessner/reek/blob/v6.4.0/docs/Duplicate-Method-Call.md]
7+
3 total warnings

0 commit comments

Comments
 (0)