rails_code_health 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5497b3b246fd2ade723213f812d3b182930bbb5b330842095c9da5e6d209d95e
4
- data.tar.gz: ebd140330230966a6d8077376c2372238b4ef9ca8cc683a5a8eabc0d102d8ab3
3
+ metadata.gz: 4b357d8913c61f87fa0edb2c9f672963c90a56a1b9679e0ee41a80c17d69883f
4
+ data.tar.gz: 55f62937933e657fe285dfddf64238ab39ef19114118c265f849773023ee56b5
5
5
  SHA512:
6
- metadata.gz: a8c22b599aa60e8376efc1a690f64f4b6bd9b45d1df0511e5d92a620798e49f41c1524e71a8bfab6422626fecbdf6b328ff92fd9002a13bd6ad9f1e5ad2bd9aa
7
- data.tar.gz: 873bac085a21edf62a52c8174f5208b86bc6852b922ce0c2a0d67f7d1d0ee3a1e242713a4f8a121f399afb5b1686a569ca1c8e1c861cf1350cba22629c0d0cd2
6
+ metadata.gz: 47aa3d974735472e21adc083cd66237582241d71e12e6801615915277de1bb221e3f97080e2166da32ec6a91276f0f1070e0c0f73678c866e73400de2e2fa8a7
7
+ data.tar.gz: e7709324ea411f35eddfeed0fa0c4070cb902a1a87761a76d27d21d0f0aa7bcb7e6f30588dc6d0d65a351990c8bbcf570965b0adfae760aa2b52d0fe7ca937ad
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.3] - 2026-05-18
11
+
12
+ ### Fixed
13
+ - Removed the canned "Focus on these improvement areas" block from the recommendations report. It was a static fortune-cookie message printed on every run regardless of the actual findings, making reports look templated. The "Most Common Issues (by frequency)" section above it already provides evidence-based, data-driven recommendations derived from real per-file findings.
14
+ - The "🎯 Priority Actions:" header is now only emitted when there are actually critical files to act on (no more orphaned header).
15
+
10
16
  ## [0.3.2] - 2026-05-18
11
17
 
12
18
  ### Added
@@ -94,7 +100,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
94
100
  - **Reporting**: Detailed console output with health categories and JSON export
95
101
  - **CLI**: `rails-health` command with options for format, output file, and custom configuration
96
102
 
97
- [Unreleased]: https://github.com/gkosmo/rails_code_health/compare/v0.3.2...HEAD
103
+ [Unreleased]: https://github.com/gkosmo/rails_code_health/compare/v0.3.3...HEAD
104
+ [0.3.3]: https://github.com/gkosmo/rails_code_health/compare/v0.3.2...v0.3.3
98
105
  [0.3.2]: https://github.com/gkosmo/rails_code_health/compare/v0.3.1...v0.3.2
99
106
  [0.3.1]: https://github.com/gkosmo/rails_code_health/compare/v0.3.0...v0.3.1
100
107
  [0.3.0]: https://github.com/gkosmo/rails_code_health/compare/v0.2.0...v0.3.0
@@ -226,14 +226,13 @@ module RailsCodeHealth
226
226
  recommendations << "#{index + 1}. #{rec} (#{count} occurrence#{'s' if count > 1})"
227
227
  end
228
228
 
229
- recommendations << ""
230
- recommendations << "🎯 Priority Actions:"
231
- recommendations << ""
232
-
233
229
  # Find files with lowest scores and their recommendations
234
230
  critical_files = @results.select { |r| r[:health_score] && r[:health_score] < 4.0 }
235
231
  if critical_files.any?
236
- recommendations << "1. 🚨 Address critical files immediately:"
232
+ recommendations << ""
233
+ recommendations << "🎯 Priority Actions:"
234
+ recommendations << ""
235
+ recommendations << "🚨 Address critical files immediately:"
237
236
  critical_files.first(3).each do |file|
238
237
  recommendations << " - #{file[:relative_path]} (score: #{file[:health_score]})"
239
238
  if file[:recommendations] && file[:recommendations].any?
@@ -242,15 +241,8 @@ module RailsCodeHealth
242
241
  end
243
242
  end
244
243
  end
245
- recommendations << ""
246
244
  end
247
-
248
- recommendations << "2. 🔧 Focus on these improvement areas:"
249
- recommendations << " - Reduce method and class lengths"
250
- recommendations << " - Lower cyclomatic complexity"
251
- recommendations << " - Follow Rails conventions"
252
- recommendations << " - Extract business logic from controllers and views"
253
-
245
+
254
246
  recommendations.join("\n")
255
247
  end
256
248
 
@@ -1,3 +1,3 @@
1
1
  module RailsCodeHealth
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_code_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Kosmopoulos