{
  "captured": "2026-10-14T18:39:14.309122+00:00",
  "model": "jev-latest",
  "rule": "The profile_params method permits only display_name and timezone. It must not permit admin, role, or all parameters with permit! or an empty-hash allowlist.",
  "results": {
    "broken": {
      "command": [
        "perch",
        "check",
        "app/controllers/profiles_controller.rb",
        "--rules",
        "profile-field-allowlist",
        "--json"
      ],
      "exit_code": 3,
      "stdout": "{\n  \"path\": \"app/controllers/profiles_controller.rb\",\n  \"name\": \"app/controllers/profiles_controller.rb\",\n  \"line\": 1,\n  \"checked\": 1,\n  \"broken\": [\n    {\n      \"rule\": \"profile-field-allowlist\",\n      \"said\": \"The profile_params method permits only display_name and timezone. It must not permit admin, role, or all parameters with permit! or an empty-hash allowlist.\",\n      \"broken\": 0.97,\n      \"floor\": 0.5\n    }\n  ],\n  \"issues\": null,\n  \"note\": null,\n  \"clean\": false\n}\n",
      "stderr": ""
    },
    "fixed": {
      "command": [
        "perch",
        "check",
        "app/controllers/profiles_controller.rb",
        "--rules",
        "profile-field-allowlist",
        "--json"
      ],
      "exit_code": 0,
      "stdout": "{\n  \"path\": \"app/controllers/profiles_controller.rb\",\n  \"name\": \"app/controllers/profiles_controller.rb\",\n  \"line\": 1,\n  \"checked\": 1,\n  \"broken\": [],\n  \"issues\": null,\n  \"note\": null,\n  \"clean\": true\n}\n",
      "stderr": ""
    }
  }
}