{"record":{"id":"e5efa1ec8a28d566","repo":"swc-project/swc","slug":"lint-command-is-not-yet-implemented","errorCode":null,"errorMessage":"Lint command is not yet implemented","messagePattern":"Lint command is not yet implemented","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/swc_cli_impl/src/commands/lint.rs","lineNumber":8,"sourceCode":"use clap::Parser;\n\n#[derive(Parser)]\npub struct LintOptions {}\n\nimpl super::CommandRunner for LintOptions {\n    fn execute(&self) -> anyhow::Result<()> {\n        unimplemented!(\"Lint command is not yet implemented\")\n    }\n}\n","sourceCodeStart":1,"sourceCodeEnd":11,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_cli_impl/src/commands/lint.rs#L1-L11","documentation":"An unimplemented!() in `execute` of the lint CLI command (swc_cli_impl commands/lint.rs:8). The `swc lint` subcommand is registered in the clap parser with an empty options struct, but its CommandRunner implementation is a placeholder that unconditionally aborts, marking the lint feature as not yet built into the CLI.","triggerScenarios":"Thrown at crates/swc_cli_impl/src/commands/lint.rs:8 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an external linter (eslint/oxlint) until `swc lint` is implemented","Contribute the lint subcommand implementation in swc_cli_impl","Return a user-friendly 'command not yet implemented' error instead of a panic"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}