Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JSON output format option to rails stats
Enhance the rails stats command to support JSON formatted output, enabling easier consumption of architecture metrics by automated systems. This modification improves the utility of the stats command for continuous monitoring of application maturity and health. Example usage: ``` $ bin/rails stats[json] | jq . { "code_statistics": [ { "name": "Controllers", "statistic": { "lines": 12345, "code_lines": 12345, "classes": 123, "methods": 1234 } }, ... ], "total": { "lines": 12345, "code_lines": 12345, "classes": 123, "methods": 1234 } } ```
- Loading branch information
1 parent
0a9e39d
commit a3ddbe2
Showing
6 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters