oxc/crates
camchenry 1f2a6c666f feat(linter)!: report unmatched rules with error exit code (#7027)
- closes https://github.com/oxc-project/oxc/issues/6988

we now return an error exit code when there are unmatched rules. previously, we would print an error to stderr and continue running. however, this masked errors in some tests that actually had unmatched rules in them. these test cases now trigger a panic (in tests only, not at runtime), and help ensure that we are reporting an error message to the user for unknown rules, which we did not have any tests cases for before.

- fixes https://github.com/oxc-project/oxc/issues/7025

this also fixes https://github.com/oxc-project/oxc/issues/7025, where we were reporting rules as unmatched simply because they had been disabled prior to being configured. similar to https://github.com/oxc-project/oxc/issues/7009.
2024-11-01 03:27:25 +00:00
..
oxc feat(transformer): add TransformerOptions::env with EnvOptions (#7037) 2024-10-31 12:30:32 +00:00
oxc_allocator release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_ast fix(parser): fix incorrect parsed TSIndexSignature (#7016) 2024-10-30 07:34:22 +00:00
oxc_ast_macros feat(ast): Label AST fields with #[ts] (#6987) 2024-10-30 03:44:05 +00:00
oxc_cfg release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_codegen release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_data_structures refactor(data_structures): make all methods of NonNull shim #[inline(always)] (#7024) 2024-10-30 13:00:24 +00:00
oxc_diagnostics feat(rust): use oxc-miette (#6938) 2024-10-27 13:30:20 +00:00
oxc_ecmascript fix(ecmascript): allow getting PropName for object methods (#6967) 2024-10-28 09:34:27 +00:00
oxc_estree release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_index release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_isolated_declarations feat(rust): use oxc-miette (#6938) 2024-10-27 13:30:20 +00:00
oxc_language_server feat(linter)!: report unmatched rules with error exit code (#7027) 2024-11-01 03:27:25 +00:00
oxc_linter feat(linter)!: report unmatched rules with error exit code (#7027) 2024-11-01 03:27:25 +00:00
oxc_macros feat(linter): support user-configurable secrets for oxc-security/api-keys (#5938) 2024-10-28 18:55:19 +00:00
oxc_mangler release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_minifier refactor(minifier): remove Tri, use Option<bool> instead (#6912) 2024-10-26 04:28:34 +00:00
oxc_module_lexer release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_parser refactor(parser): use function parse_type_member_semicolon (#7018) 2024-10-30 17:20:03 +08:00
oxc_prettier refactor(rust): remove the annoying clippy::wildcard_imports (#6860) 2024-10-24 13:57:19 +00:00
oxc_regular_expression feat(ast_tools): Add #[estree(always_flatten)] to Span (#6935) 2024-10-28 02:13:24 +00:00
oxc_semantic fix(ecmascript): allow getting PropName for object methods (#6967) 2024-10-28 09:34:27 +00:00
oxc_sourcemap release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_span feat(ast_tools): Add #[estree(always_flatten)] to Span (#6935) 2024-10-28 02:13:24 +00:00
oxc_syntax feat(ast_tools): Default enums to rename_all = "camelCase" (#6933) 2024-10-28 01:39:25 +00:00
oxc_transformer style(transformer/common): Split up StatementInjectorStore methods into blocks (#7042) 2024-10-31 19:23:28 +00:00
oxc_traverse fix(parser): fix incorrect parsed TSIndexSignature (#7016) 2024-10-30 07:34:22 +00:00
oxc_wasm feat(transformer): add TransformerOptions::env with EnvOptions (#7037) 2024-10-31 12:30:32 +00:00