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 +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/rails_code_health/report_generator.rb +5 -13
- data/lib/rails_code_health/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b357d8913c61f87fa0edb2c9f672963c90a56a1b9679e0ee41a80c17d69883f
|
|
4
|
+
data.tar.gz: 55f62937933e657fe285dfddf64238ab39ef19114118c265f849773023ee56b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 << "
|
|
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
|
|