Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON output format option to rails stats command #51675

Closed
wants to merge 1 commit into from

Commits on Apr 27, 2024

  1. 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
      }
    }
    ```
    euglena1215 committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    a3ddbe2 View commit details
    Browse the repository at this point in the history