diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000000000..68ddc312106d5 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,11 @@ +{ + "permissions": { + "allow": [ + "Bash(find:*)", + "Bash(cargo check:*)", + "Bash(cargo clippy:*)" + ], + "deny": [], + "ask": [] + } +} diff --git a/Cargo.toml b/Cargo.toml index d43f95bd0948a..250bbca2d6690 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -96,13 +96,10 @@ unused_peekable = "warn" too_long_first_doc_paragraph = "warn" suspicious_operation_groupings = "warn" redundant_clone = "warn" -zero_sized_map_values = "allow" # FIXME https://github.com/rust-lang/rust-clippy/issues/15429 +zero_sized_map_values = "allow" # FIXME https://github.com/rust-lang/rust-clippy/issues/15429 - False positive with serde skip_serializing # cargo cargo = { level = "warn", priority = -1 } multiple_crate_versions = "allow" -cargo_common_metadata = "allow" # FIXME -doc_lazy_continuation = "allow" # FIXME -ignore_without_reason = "allow" # FIXME [workspace.dependencies] # publish = true diff --git a/crates/oxc_codegen/tests/integration/esbuild.rs b/crates/oxc_codegen/tests/integration/esbuild.rs index 343ec57609d46..68442b099ee32 100644 --- a/crates/oxc_codegen/tests/integration/esbuild.rs +++ b/crates/oxc_codegen/tests/integration/esbuild.rs @@ -522,7 +522,7 @@ fn test_function() { } #[test] -#[ignore] +#[ignore = "TODO: Comments and parentheses handling not yet implemented"] fn test_comments_and_parentheses() { test("(/* foo */ { x() { foo() } }.x());", "/* foo */\n({ x() {\n foo();\n} }).x();\n"); test( @@ -829,7 +829,7 @@ fn test_whitespace() { } #[test] -#[ignore] +#[ignore = "TODO: Minification functionality not yet implemented"] fn minify() { test_minify("0.1", ".1;"); test_minify("1.2", "1.2;"); diff --git a/crates/oxc_data_structures/src/code_buffer.rs b/crates/oxc_data_structures/src/code_buffer.rs index 41b9d7667d4c0..d57691574aff6 100644 --- a/crates/oxc_data_structures/src/code_buffer.rs +++ b/crates/oxc_data_structures/src/code_buffer.rs @@ -490,8 +490,9 @@ impl CodeBuffer { /// but only advance `len` by the actual number of bytes. This avoids a `memset` function call. /// /// Take alternative slow path if either: - /// 1. Total characters to print > 32. - /// 2. Less than 32 bytes spare capacity in buffer (needs to grow). + /// 1. Total characters to print > 32. + /// 2. Less than 32 bytes spare capacity in buffer (needs to grow). + /// /// Both of these cases should be rare. /// /// We write 32 bytes because both tabs and spaces are supported. diff --git a/crates/oxc_linter/src/loader/partial_loader/svelte.rs b/crates/oxc_linter/src/loader/partial_loader/svelte.rs index a821a46099ea6..ea5cc53851327 100644 --- a/crates/oxc_linter/src/loader/partial_loader/svelte.rs +++ b/crates/oxc_linter/src/loader/partial_loader/svelte.rs @@ -22,7 +22,7 @@ impl<'a> SveltePartialLoader<'a> { /// Each *.svelte file can contain at most /// * one `