code-buster 0.11.0

Repository-aware static analysis for AI-assisted development
Documentation
{
  "id": "rust-panic-macro",
  "language": "rust",
  "group": "reliability",
  "listingTitle": "Avoid unexpected Rust panics",
  "title": "Avoid unexpected Rust panics",
  "mvvm": false,
  "defaultSeverity": "warn",
  "legacyGroup": "core",
  "why": "A panic can abort useful work and cross an API boundary that should return an error.",
  "suggestion": "Return a Result or constrain the panic to a documented unreachable invariant.",
  "version": 6,
  "semanticMaturity": "token",
  "securityKind": "none",
  "taxonomy": [
    "reliability"
  ],
  "requirements": [
    "sourceText"
  ],
  "packs": [
    "rust",
    "cargo"
  ],
  "implementation": "src/languages/rust/rules.rs",
  "languages": [
    "rust"
  ],
  "frameworks": [],
  "languageVersions": [],
  "limitations": [
    "The rule uses masked source tokens and does not perform Rust type resolution."
  ]
}