⚓ A collection of high-performance JavaScript tools.
This report presents the forensic synthetic code analysis of oxc-project/oxc, a Rust project with 21,946 GitHub stars. SynthScan v2.0 examined 1,107,533 lines of code across 3340 source files, recording 4253 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 4.0 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 4253 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deny.toml | 1 | # This template contains all of the possible sections and their default values | COMMENT |
| LOW | deny.toml | 21 | yanked = "warn" | COMMENT |
| LOW | deny.toml | 61 | "CDLA-Permissive-2.0", | COMMENT |
| LOW | deny.toml | 81 | # The name of the crate the clarification applies to | COMMENT |
| LOW | deny.toml | 101 | # visit https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field. | COMMENT |
| LOW | deny.toml | 121 | # * lowest-version - The path to the lowest versioned duplicate is highlighted | COMMENT |
| LOW | deny.toml | 141 | # not specified, all versions will be matched. | COMMENT |
| LOW | deny.toml | 161 | # "hyper-rustls", | COMMENT |
| LOW | deny.toml | 181 | skip-tree = [ | COMMENT |
| LOW | deny.toml | 201 | COMMENT | |
| LOW | deny.toml | 221 | # The triple can be any string, but only the target triples built in to | COMMENT |
| LOW | deny.toml | 241 | # If true, metadata will be collected with `--no-default-features`. The same | COMMENT |
| LOW | .rustfmt.toml | 1 | style_edition = "2024" | COMMENT |
| LOW | tasks/benchmark/benches/lexer.rs | 81 | while lexer.next_token_for_benchmarks().kind() != Kind::Eof {} | COMMENT |
| LOW | tasks/benchmark/src/lib.rs | 1 | use std::alloc::{GlobalAlloc, Layout, System}; | COMMENT |
| LOW | tasks/transform_checker/src/lib.rs | 1 | //! Utility to check correctness of `ScopeTree` and `SymbolTable` after transformer has run. | COMMENT |
| LOW | tasks/transform_checker/src/lib.rs | 21 | //! | COMMENT |
| LOW | tasks/transform_checker/src/lib.rs | 41 | //! The scope IDs are: | COMMENT |
| LOW | tasks/transform_checker/src/lib.rs | 61 | //! function f() { /* Scope ID 2 */ } | COMMENT |
| LOW | tasks/transform_conformance/update_fixtures.ts | 1 | // Script to amend test fixtures for transforms. | COMMENT |
| LOW | tasks/transform_conformance/src/constants.rs | 21 | // [Syntax] "babel-plugin-transform-syntax-bigint", | COMMENT |
| LOW | tasks/transform_conformance/src/constants.rs | 41 | // "babel-plugin-transform-sticky-regex", | COMMENT |
| LOW | tasks/prettier_conformance/src/lib.rs | 341 | /// Extract single output section from snapshot file which contains multiple test cases. | COMMENT |
| LOW | tasks/prettier_conformance/src/lib.rs | 361 | /// ``` | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 1 | //! Generator of code related to AST. | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 21 | //! # When code generation happens, and where it goes | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 41 | //! All `.rs` source files in crates which depend on `oxc_ast_macros` crate are read and parsed with [`syn`]. | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 61 | //! * [`StructDef`] contains info about the name and type of every field in the struct. | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 81 | //! The end result of this phase is the [`Schema`], which is the single source of truth about the AST. | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 101 | //! | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 121 | //! | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 141 | //! | COMMENT |
| LOW | tasks/ast_tools/src/main.rs | 161 | //! custom attributes, and are much simpler than `syn`'s types. | COMMENT |
| LOW | tasks/ast_tools/src/parse/attr.rs | 141 | #[derive(Debug)] | COMMENT |
| LOW | tasks/ast_tools/src/parse/mod.rs | 1 | //! Create schema of types from Rust source files. | COMMENT |
| LOW | tasks/ast_tools/src/parse/mod.rs | 21 | //! by [`TypeId`] - same order of entries as the `FxIndexSet` of type names from phase 1. | COMMENT |
| LOW | tasks/ast_tools/src/parse/mod.rs | 121 | /// (when the `proc-macro` feature is enabled on `proc-macro2`). | COMMENT |
| LOW | tasks/ast_tools/src/parse/parse.rs | 41 | COMMENT | |
| LOW | tasks/ast_tools/src/output/rust.rs | 61 | /// Original comment can be either `///@` or `//!@`. | COMMENT |
| LOW | tasks/ast_tools/src/output/javascript.rs | 81 | /// `const` statements will be inserted at the top of the file for the flags listed in `FLAG_NAMES`. | COMMENT |
| LOW | tasks/ast_tools/src/output/javascript.rs | 101 | /// | COMMENT |
| LOW | tasks/ast_tools/src/output/javascript.rs | 121 | /// | COMMENT |
| LOW | tasks/ast_tools/src/output/javascript.rs | 141 | /// impl VariantGenerator<2> for Gen { | COMMENT |
| LOW | tasks/ast_tools/src/output/yaml.rs | 21 | /// * Glob patterns for watched crates (`{crate}/src/**/*.rs`) | COMMENT |
| LOW | tasks/ast_tools/src/schema/mod.rs | 121 | /// Get reference to [`StructDef`] for a [`TypeId`]. | COMMENT |
| LOW | tasks/ast_tools/src/schema/mod.rs | 161 | /// Get mutable reference to [`PrimitiveDef`] for a [`TypeId`]. | COMMENT |
| LOW | tasks/ast_tools/src/schema/mod.rs | 201 | /// Get reference to [`VecDef`] for a [`TypeId`]. | COMMENT |
| LOW | tasks/ast_tools/src/schema/extensions/estree.rs | 1 | /// Configuration for ESTree generator on a struct. | COMMENT |
| LOW | tasks/ast_tools/src/schema/extensions/estree.rs | 21 | /// * Actual struct field: index of the field. | COMMENT |
| LOW | tasks/ast_tools/src/schema/extensions/estree.rs | 41 | /// Name of custom converter `#[ast_meta]` type to use to serialize this enum. | COMMENT |
| LOW | tasks/ast_tools/src/schema/extensions/estree.rs | 61 | COMMENT | |
| LOW | tasks/ast_tools/src/schema/extensions/estree.rs | 81 | pub no_flatten: bool, | COMMENT |
| LOW | tasks/ast_tools/src/schema/defs/mod.rs | 121 | /// e.g. If `Option<Expression>` exists in AST, `Containers::option_id` for `Expression` type def | COMMENT |
| LOW | tasks/ast_tools/src/schema/defs/enum.rs | 121 | /// [`all_inherits`]: Self::all_inherits | COMMENT |
| LOW | tasks/ast_tools/src/derives/dummy.rs | 141 | alloc.count += field_alloc.count; | COMMENT |
| LOW | tasks/ast_tools/src/derives/mod.rs | 61 | COMMENT | |
| LOW | tasks/ast_tools/src/derives/mod.rs | 81 | /// ("scope", attr_positions!(Struct | Enum | StructField)), | COMMENT |
| LOW | tasks/ast_tools/src/derives/mod.rs | 101 | /// | COMMENT |
| LOW | tasks/ast_tools/src/derives/estree.rs | 381 | let stmts = g.stmts; | COMMENT |
| LOW | tasks/ast_tools/src/generators/scopes_collector.rs | 41 | /// | COMMENT |
| 3951 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | crates/oxc_linter/src/config/config_store.rs | 368 | self.base.base.config.options.type_aware.unwrap_or(false) | CODE |
| CRITICAL⚡ | crates/oxc_linter/src/config/config_store.rs | 373 | self.base.base.config.options.type_check.unwrap_or(false) | CODE |
| CRITICAL⚡ | crates/oxc_linter/src/config/config_store.rs | 378 | self.base.base.config.options.deny_warnings.unwrap_or(false) | CODE |
| CRITICAL | crates/oxc_linter/src/config/config_store.rs | 393 | self.base.base.config.options.respect_eslint_disable_directives.unwrap_or(true) | CODE |
| CRITICAL | crates/oxc_linter/src/config/config_store.rs | 853 | assert!(!store.base.base.config.env.contains("React")); | CODE |
| CRITICAL | crates/oxc_linter/src/config/config_store.rs | 877 | assert!(store.base.base.config.env.contains("es2024")); | CODE |
| CRITICAL | crates/oxc_linter/src/config/config_store.rs | 901 | assert!(!store.base.base.config.globals.is_enabled("React")); | CODE |
| CRITICAL | crates/oxc_linter/src/config/config_store.rs | 902 | assert!(!store.base.base.config.globals.is_enabled("Secret")); | CODE |
| CRITICAL | crates/oxc_linter/src/config/config_store.rs | 978 | assert!(store.base.base.config.globals.is_enabled("React")); | CODE |
| CRITICAL | crates/oxc_linter/src/config/config_store.rs | 979 | assert!(store.base.base.config.globals.is_enabled("Secret")); | CODE |
| CRITICAL | …/oxc_transformer_plugins/src/replace_global_defines.rs | 509 | if let Some(value) = self.config.0.identifier.identifier_defines.get("this") { | CODE |
| CRITICAL | …/oxc_transformer_plugins/src/replace_global_defines.rs | 604 | let value = self.config.0.identifier.identifier_defines.get(ident.name.as_str())?.clone(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks/transform_conformance/update_fixtures.ts | 167 | function migrateDeprecatedLooseOptions(options: Options): boolean { | CODE |
| LOW | tasks/transform_conformance/update_fixtures.ts | 214 | function ensureAllClassPluginsEnabled(options: Options): boolean { | CODE |
| LOW | tasks/ast_tools/src/generators/estree_visit.rs | 207 | function debugCheckAncestorsOnExit(lenBefore, node) { | CODE |
| LOW | tasks/compat_data/chromium-to-electron.js | 16 | function addElectronSupportFromChromium(supportData) { | CODE |
| LOW | …xc_linter/src/rules/typescript/no_invalid_void_type.rs | 575 | function returnsVoidPromiseDirectly(): Promise<void> { | CODE |
| LOW | crates/oxc_linter/src/rules/eslint/no_magic_numbers.rs | 750 | ("function getNegativeSecondsInMinute() {return -60;}", None), | CODE |
| LOW | …s/oxc_linter/src/rules/eslint/no_unused_expressions.rs | 440 | function namedFunctionInExpressionContext() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1207 | function UnstableNestedFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1223 | function UnstableNestedFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1271 | function UnstableNestedFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1287 | function UnstableNestedFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1303 | function UnstableNestedFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1319 | function UnstableNestedFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1444 | function UnstableNestedFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1462 | function UnstableNestedClassComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1516 | function NestedUnstableFunctionComponent() { | CODE |
| LOW | …inter/src/rules/react/no_unstable_nested_components.rs | 1536 | function NestedUnstableFunctionComponent() { | CODE |
| LOW⚡ | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1085 | function ComponentWithNormalFunction() { | CODE |
| LOW⚡ | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1091 | function normalFunctionWithNormalFunction() { | CODE |
| LOW⚡ | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1097 | function normalFunctionWithConditionalFunction() { | CODE |
| LOW⚡ | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1105 | function functionThatStartsWithUseButIsntAHook() { | CODE |
| LOW⚡ | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1963 | function ComponentWithHookInsideLoop() { | CODE |
| LOW⚡ | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1970 | function ComponentWithHookInsideLoop() { | CODE |
| LOW⚡ | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1979 | function ComponentWithHookInsideLoop() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 993 | function ComponentWithConditionalHook() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1748 | function ComponentWithConditionalHook() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1845 | function ComponentWithConditionalHook() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1856 | return function ComponentWithConditionalHook() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1867 | function useHookWithConditionalHook() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1878 | return function useHookWithConditionalHook() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1897 | function ComponentWithHookInsideCallback() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1908 | return function ComponentWithHookInsideCallback() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1941 | function ComponentWithHookInsideCallback() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 1952 | return function ComponentWithHookInsideCallback() { | CODE |
| LOW | crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 2029 | function normalFunctionWithConditionalHook() { | CODE |
| LOW | .github/scripts/generate-benchmark-matrix.js | 131 | async function determineAffectedComponents() { | CODE |
| LOW | apps/oxfmt/test/lsp/utils.ts | 228 | export async function formatFixtureAfterConfigChange( | CODE |
| LOW | apps/oxlint/test/lsp/utils.ts | 215 | export async function lintMultiWorkspaceFixture( | CODE |
| LOW | apps/oxlint/test/lsp/utils.ts | 253 | export async function lintFixtureWithFileContentChange( | CODE |
| LOW | apps/oxlint/test/lsp/utils.ts | 270 | export async function lintMultiWorkspaceFixtureWithFileContentChange( | CODE |
| LOW | apps/oxlint/src-js/plugins/comments.ts | 330 | function deserializeCommentIfNeeded(index: number): Comment | null { | CODE |
| LOW | apps/oxlint/src-js/plugins/comments.ts | 389 | function debugCheckDeserializedComments(): void { | CODE |
| LOW | apps/oxlint/src-js/plugins/comments.ts | 470 | function debugAssertAllCommentsCleared(): void { | CODE |
| LOW | apps/oxlint/src-js/plugins/report.ts | 285 | function resolveMessageFromMessageId(messageId: string, ruleDetails: RuleDetails): string { | CODE |
| LOW | apps/oxlint/src-js/plugins/fix.ts | 227 | function validateAndConvertFix(fix: Fix): FixReport { | CODE |
| LOW | apps/oxlint/src-js/plugins/location.ts | 116 | export function debugAssertLinesIsInitialized(): void { | CODE |
| LOW | apps/oxlint/src-js/plugins/tokens.ts | 526 | function debugCheckDeserializedTokens(): void { | CODE |
| LOW | apps/oxlint/src-js/plugins/tokens.ts | 620 | function debugAssertAllTokensCleared(): void { | CODE |
| LOW | apps/oxlint/src-js/plugins/selector.ts | 360 | export function wrapVisitFnWithSelectorMatch( | CODE |
| LOW | apps/oxlint/src-js/plugins/tokens_and_comments.ts | 112 | export function initTokensAndCommentsBuffer(): void { | CODE |
| LOW | apps/oxlint/src-js/plugins/cfg.ts | 290 | export function debugAssertIsEnterExitObject(enterExit: unknown): asserts enterExit is EnterExit { | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 584 | function assertValidTestCasePasses(test: ValidTestCase, plugin: Plugin, config: Config): void { | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 622 | function assertInvalidTestCasePasses(test: InvalidTestCase, plugin: Plugin, config: Config): void { | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 739 | function assertInvalidTestCaseMessageIsCorrect( | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 846 | function assertInvalidTestCaseLocationIsCorrect( | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 920 | function assertSuggestionsAreCorrect( | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 972 | function assertSuggestionMessageIsCorrect( | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 1020 | function assertErrorCountIsCorrect(diagnostics: Diagnostic[], expectedErrorCount: number): void { | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 1059 | function getUnsubstitutedMessagePlaceholders( | CODE |
| LOW | apps/oxlint/src-js/package/rule_tester.ts | 1509 | function setEcmaVersionAndFeatures(test: TestCase) { | CODE |
| 31 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …c_transformer/src/plugins/tagged_template_transform.rs | 260 | // NOTE: This function is copied from `oxc_codegen/src/str.rs`. | COMMENT |
| LOW | …ansformer/src/es2022/class_properties/private_field.rs | 1470 | /// NOTE: This method will mutate the passed-in `object` to a second copy of | COMMENT |
| LOW | crates/oxc_linter/src/config/config_store.rs | 406 | // NOTE: This function is not crate visible because it is used in `oxlint` as well to resolve configs | COMMENT |
| LOW⚡ | crates/oxc_linter/src/rules/eslint/prefer_template.rs | 277 | // Step 1: Escape ${ and ` that aren't already properly escaped | COMMENT |
| LOW⚡ | crates/oxc_linter/src/rules/eslint/prefer_template.rs | 279 | // Step 2: Unescape the quote character (\' → ' or \" → ") | COMMENT |
| LOW | …react_compiler_inference/align_object_method_scopes.rs | 100 | // Step 1: Merge affected scopes to their canonical root. | COMMENT |
| LOW | …react_compiler_inference/align_object_method_scopes.rs | 146 | // Step 2: Repoint identifiers whose scopes were merged | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 247 | // Step 1: Collect rewrites | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 250 | // Step 2: Apply rewrites by splitting blocks | COMMENT |
| LOW | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 312 | // Step 3: Repoint phis when they refer to a rewritten block | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 330 | // Step 4: Fixup HIR to restore RPO, correct predecessors, renumber instructions | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 335 | // Step 5: Fix scope and identifier ranges to account for renumbered instructions | COMMENT |
| LOW⚡ | …compiler_inference/propagate_scope_dependencies_hir.rs | 83 | // Step 2: Calculate hoistable dependencies using the tree. | COMMENT |
| LOW⚡ | …compiler_inference/propagate_scope_dependencies_hir.rs | 89 | // Step 3: Reduce dependencies to a minimal set. | COMMENT |
| LOW | …compiler_inference/propagate_scope_dependencies_hir.rs | 938 | // Step 1: Collect identifier to function expression mappings | COMMENT |
| LOW | …compiler_inference/propagate_scope_dependencies_hir.rs | 962 | // Step 2: Forward pass to analyze assumed function calls | COMMENT |
| LOW | …compiler_inference/propagate_scope_dependencies_hir.rs | 1032 | // Step 3: Propagate assumed-invoked status through mayInvoke chains | COMMENT |
| LOW | crates/oxc_allocator/src/arena/fixed_size/windows.rs | 760 | // Step 1: A large allocation that pushes committed region just past `CONTAINER_SIZE / 2`. | COMMENT |
| LOW | crates/oxc_allocator/src/arena/fixed_size/windows.rs | 774 | // Step 2: A small allocation that triggers a further grow. | COMMENT |
| LOW⚡ | …r_plugins/tests/integrations/replace_global_defines.rs | 651 | // Step 1: Run define plugin first (like the playground does) | COMMENT |
| LOW⚡ | …r_plugins/tests/integrations/replace_global_defines.rs | 656 | // Step 2: Rebuild semantic for transformer | COMMENT |
| LOW⚡ | …r_plugins/tests/integrations/replace_global_defines.rs | 660 | // Step 3: Run transformer with ES2019 target (lowers optional chaining) | COMMENT |
| LOW | …oxc_transformer_plugins/src/inject_global_variables.rs | 168 | // Step 1: slow path where visiting the AST is required to replace dot defines. | COMMENT |
| LOW | …oxc_transformer_plugins/src/inject_global_variables.rs | 182 | // Step 2: find all the injects that are referenced. | COMMENT |
| LOW | crates/oxc/README.md | 78 | // Step 1: Parsing | COMMENT |
| LOW | crates/oxc/README.md | 95 | // Step 2: Semantic analysis. | COMMENT |
| LOW | .agents/skills/migrate-oxfmt/SKILL.md | 14 | ## Step 1: Run Automated Migration | COMMENT |
| LOW | .agents/skills/migrate-oxfmt/SKILL.md | 78 | ## Step 2: Review Generated Config | COMMENT |
| LOW | .agents/skills/migrate-oxfmt/SKILL.md | 139 | ## Step 3: Configure Oxfmt Extensions | COMMENT |
| LOW | .agents/skills/migrate-oxfmt/SKILL.md | 180 | ## Step 4: Update CI and Scripts | COMMENT |
| LOW | .agents/skills/migrate-oxlint/SKILL.md | 14 | ## Step 1: Run Automated Migration | COMMENT |
| LOW | .agents/skills/migrate-oxlint/SKILL.md | 43 | ## Step 2: Review Generated Config | COMMENT |
| LOW | .agents/skills/migrate-oxlint/SKILL.md | 101 | ## Step 3: Install Oxlint | COMMENT |
| LOW | .agents/skills/migrate-oxlint/SKILL.md | 117 | ## Step 4: Handle Unsupported Features | COMMENT |
| LOW | .agents/skills/migrate-oxlint/SKILL.md | 152 | ## Step 5: Update CI and Scripts | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/oxc_mangler/src/lib.rs | 482 | // ─────────────────────────── Pipeline stages ─────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_language_server/src/tests.rs | 1825 | // ── Single-file mode (no workspace folders / root URI on initialize) ────── | COMMENT |
| MEDIUM | crates/oxc_language_server/src/worker_manager.rs | 98 | // ── Starting / Stopping ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_language_server/src/worker_manager.rs | 154 | // ── State accessors ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_language_server/src/worker_manager.rs | 187 | // ── Worker creation ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_language_server/src/worker_manager.rs | 200 | // ── Lookup helpers (associated functions) ───────────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_language_server/src/worker_manager.rs | 298 | // ── Workspace-folder change handling ────────────────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_language_server/src/worker_manager.rs | 344 | // ── Single-file mode operations ─────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_linter/examples/linter.rs | 88 | // · ───────── | COMMENT |
| MEDIUM | crates/oxc_linter/src/disable_directives.rs | 861 | /// ────┬──────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/oxc_jsdoc/src/parser/jsdoc_parts.rs | 61 | // ─────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 280 | // ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 282 | // ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 545 | // ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 547 | // ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 683 | // ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 685 | // ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 788 | // ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …formatter/src/formatter/jsdoc/mdast_serialize/nodes.rs | 790 | // ────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/oxc_transformer/src/es2020/optional_chaining.rs | 502 | // so we need to check if we need to specify the context. | COMMENT |
| LOW | crates/oxc_transformer/src/typescript/annotations.rs | 118 | // it is not a type import, otherwise we need to check if the identifier is referenced | COMMENT |
| LOW⚡ | crates/oxc_linter/src/rules/eslint/prefer_template.rs | 277 | // Step 1: Escape ${ and ` that aren't already properly escaped | COMMENT |
| LOW⚡ | crates/oxc_linter/src/rules/eslint/prefer_template.rs | 279 | // Step 2: Unescape the quote character (\' → ' or \" → ") | COMMENT |
| LOW | crates/oxc_linter/src/rules/eslint/no_loop_func.rs | 271 | // as a write reference. We need to check if the function is nested inside such a loop. | COMMENT |
| LOW | …es/oxc_linter/src/rules/eslint/no_unused_vars/usage.rs | 565 | // todo: do we need to check if variable is used as iterator in | COMMENT |
| LOW | …react_compiler_inference/align_object_method_scopes.rs | 100 | // Step 1: Merge affected scopes to their canonical root. | COMMENT |
| LOW | …react_compiler_inference/align_object_method_scopes.rs | 146 | // Step 2: Repoint identifiers whose scopes were merged | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 247 | // Step 1: Collect rewrites | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 250 | // Step 2: Apply rewrites by splitting blocks | COMMENT |
| LOW | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 312 | // Step 3: Repoint phis when they refer to a rewritten block | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 330 | // Step 4: Fixup HIR to restore RPO, correct predecessors, renumber instructions | COMMENT |
| LOW⚡ | …mpiler_inference/build_reactive_scope_terminals_hir.rs | 335 | // Step 5: Fix scope and identifier ranges to account for renumbered instructions | COMMENT |
| LOW⚡ | …compiler_inference/propagate_scope_dependencies_hir.rs | 83 | // Step 2: Calculate hoistable dependencies using the tree. | COMMENT |
| LOW⚡ | …compiler_inference/propagate_scope_dependencies_hir.rs | 89 | // Step 3: Reduce dependencies to a minimal set. | COMMENT |
| LOW | …compiler_inference/propagate_scope_dependencies_hir.rs | 938 | // Step 1: Collect identifier to function expression mappings | COMMENT |
| LOW | …compiler_inference/propagate_scope_dependencies_hir.rs | 962 | // Step 2: Forward pass to analyze assumed function calls | COMMENT |
| LOW | …compiler_inference/propagate_scope_dependencies_hir.rs | 1032 | // Step 3: Propagate assumed-invoked status through mayInvoke chains | COMMENT |
| LOW | crates/oxc_minifier/src/peephole/remove_dead_code.rs | 279 | // We need to check if it is in arrow function with `expression: true`. | COMMENT |
| LOW | crates/oxc_allocator/src/arena/fixed_size/windows.rs | 760 | // Step 1: A large allocation that pushes committed region just past `CONTAINER_SIZE / 2`. | COMMENT |
| LOW | crates/oxc_allocator/src/arena/fixed_size/windows.rs | 774 | // Step 2: A small allocation that triggers a further grow. | COMMENT |
| LOW | …ates/oxc_formatter/src/print/binary_like_expression.rs | 558 | // We can flatten the left hand side, so we need to check if we have a nested binary expression | COMMENT |
| LOW⚡ | …r_plugins/tests/integrations/replace_global_defines.rs | 651 | // Step 1: Run define plugin first (like the playground does) | COMMENT |
| LOW⚡ | …r_plugins/tests/integrations/replace_global_defines.rs | 656 | // Step 2: Rebuild semantic for transformer | COMMENT |
| LOW⚡ | …r_plugins/tests/integrations/replace_global_defines.rs | 660 | // Step 3: Run transformer with ES2019 target (lowers optional chaining) | COMMENT |
| LOW | …oxc_transformer_plugins/src/inject_global_variables.rs | 168 | // Step 1: slow path where visiting the AST is required to replace dot defines. | COMMENT |
| LOW | …oxc_transformer_plugins/src/inject_global_variables.rs | 182 | // Step 2: find all the injects that are referenced. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tasks/ast_tools/src/main.rs | 77 | //! Custom attributes on types (e.g. `#[visit]`) are also parsed at this stage, in conjunction with | COMMENT |
| MEDIUM | tasks/ast_tools/src/main.rs | 406 | /// to include all attrs which generators/derives utilize. | COMMENT |
| MEDIUM | crates/oxc_parser/src/lexer/source.rs | 787 | // Implement `Ord` and `PartialOrd` using `(*const u8)::offset_from` to utilize the invariant | COMMENT |
| MEDIUM | …rmer/src/es2018/async_generator_functions/for_await.rs | 58 | // but we don't have a such method to do it, so we leverage the statement injector. | COMMENT |
| MEDIUM | …tes/oxc_linter/src/rules/vitest/prefer_to_be_truthy.rs | 82 | /// truthy value, which makes the tests more comprehensive and robust. | COMMENT |
| MEDIUM | …oxc_linter/src/rules/typescript/no_inferrable_types.rs | 99 | // Essentially a readonly property without a type | COMMENT |
| MEDIUM | …_linter/src/rules/eslint/prefer_named_capture_group.rs | 44 | /// and allow references by name (e.g. `match.groups.year`), which is more robust. | COMMENT |
| MEDIUM | …/oxc_linter/src/rules/eslint/class_methods_use_this.rs | 85 | /// Enforce that class methods utilize `this`. | COMMENT |
| MEDIUM | crates/oxc_data_structures/src/code_buffer.rs | 24 | /// Essentially same as `String` but with additional methods. | COMMENT |
| LOW | crates/oxc_data_structures/src/non_null.rs | 8 | //! # Why not just use `*const T` / `*mut T`? | COMMENT |
| LOW | crates/oxc_data_structures/src/non_null.rs | 15 | //! # Why not just use `NonNull<T>`? | COMMENT |
| MEDIUM | …c/react_compiler_optimization/dead_code_elimination.rs | 374 | // Definitely safe to prune since they are read-only | COMMENT |
| MEDIUM | crates/oxc_ast/src/builder/mod.rs | 95 | //! `disable_old_builder` Cargo feature is enabled in all Oxc crates which utilize `AstBuilder`. | COMMENT |
| MEDIUM | crates/oxc_ecmascript/src/constant_evaluation/mod.rs | 42 | /// passing `Some(ValueType::Boolean)` will allow us to utilize that information. | COMMENT |
| MEDIUM | crates/oxc_formatter_core/Cargo.toml | 34 | # header points to the consumer, not the shared harness. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tasks/linter_codegen/src/main.rs | 56 | out.push_str("// Auto-generated code, DO NOT EDIT DIRECTLY!\n"); | CODE |
| HIGH | tasks/linter_codegen/src/rules_enum.rs | 47 | "// Auto-generated code, DO NOT EDIT DIRECTLY!\n// To regenerate: `cargo lintgen`\n\n"; | CODE |
| HIGH | tasks/ast_tools/src/output/mod.rs | 25 | "{comment_start} Auto-generated code, DO NOT EDIT DIRECTLY!\n\ | CODE |
| HIGH | …/oxc_minifier/src/traverse_context/scopes_collector.rs | 1 | // Auto-generated code, DO NOT EDIT DIRECTLY! | COMMENT |
| HIGH | npm/oxc-types/types.d.ts | 1 | // Auto-generated code, DO NOT EDIT DIRECTLY! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/oxc_minifier/docs/CLAUDE.md | 20 | ├── compressor.rs # Pipeline orchestration | CODE |
| MEDIUM | crates/oxc_type_checker/Cargo.toml | 5 | # This crate is a deliberately small scaffold: it wires the parser and semantic | COMMENT |
| MEDIUM | crates/oxc_type_checker/Cargo.toml | 20 | # Experimental scaffold — not published to crates.io yet. | COMMENT |
| MEDIUM | crates/oxc_type_checker/src/lib.rs | 5 | //! This crate is intentionally a thin scaffold. It does *not* type check anything yet. | COMMENT |
| MEDIUM | crates/oxc_type_checker/src/lib.rs | 129 | #[expect(dead_code, reason = "scaffold: available to the checks you add")] | COMMENT |
| MEDIUM | crates/oxc_type_checker/src/lib.rs | 132 | #[expect(dead_code, reason = "scaffold: available to the checks you add")] | COMMENT |
| MEDIUM | crates/oxc_allocator/src/address.rs | 215 | /// This method is less error-prone than [`Address::from_ptr`], because it provides a few guardrails: | COMMENT |
| MEDIUM | crates/oxc_allocator/src/address.rs | 223 | /// Even with these guardrails, usage of this method still requires care, for the reasons discussed above. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/oxc_linter/src/globals.rs | 47 | const ARIA_PLACEHOLDER: &str = "placeholder"; | CODE |
| LOW | …s/oxc_linter/src/rules/eslint/preserve_caught_error.rs | 557 | throw new AggregateError([], "Lorem ipsum"); | CODE |
| LOW | …s/oxc_linter/src/rules/eslint/preserve_caught_error.rs | 939 | throw new AggregateError([], "Lorem ipsum"); | CODE |
| LOW | …s/oxc_linter/src/rules/eslint/preserve_caught_error.rs | 946 | throw new AggregateError([], "Lorem ipsum", { cause: err }); | CODE |
| LOW | crates/oxc_linter/src/rules/eslint/no_alert.rs | 37 | /// prompt("What's your name?", "John Doe"); | COMMENT |
| LOW | …s/oxc_linter/src/rules/eslint/prefer_arrow_callback.rs | 484 | ) /* Lorem ipsum | CODE |
| LOW | …s/oxc_linter/src/rules/eslint/prefer_arrow_callback.rs | 485 | dolor sit amet. */ { | CODE |
| LOW⚡ | …s/oxc_linter/src/rules/eslint/prefer_arrow_callback.rs | 616 | ) /* Lorem ipsum | CODE |
| LOW⚡ | …s/oxc_linter/src/rules/eslint/prefer_arrow_callback.rs | 617 | dolor sit amet. */ { | CODE |
| LOW⚡ | …s/oxc_linter/src/rules/eslint/prefer_arrow_callback.rs | 626 | ) => /* Lorem ipsum | CODE |
| LOW⚡ | …s/oxc_linter/src/rules/eslint/prefer_arrow_callback.rs | 627 | dolor sit amet. */ { | CODE |
| LOW | crates/oxc_linter/src/rules/react/jsx_no_literals.rs | 991 | serde_json::json!([{ "elementOverrides": { "Input": { "restrictedAttributes": ["placeholder"] }, "Button | CODE |
| LOW | crates/oxc_linter/src/rules/react/jsx_no_literals.rs | 1553 | serde_json::json!([{ "elementOverrides": { "Input": { "restrictedAttributes": ["placeholder"] }, "Button | CODE |
| LOW | …ates/oxc_linter/src/rules/react/no_unknown_property.rs | 223 | "name", "open", "optimum", "pattern", "ping", "placeholder", "poster", "preload", "profile", | CODE |
| LOW | apps/oxfmt/test/api/js_in_xxx.test.ts | 43 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| LOW | apps/oxfmt/test/api/js_in_xxx.test.ts | 43 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …transformer/src/es2021/logical_assignment_operators.rs | 101 | // TODO: Add tests, cover private identifier | COMMENT |
| LOW | …/es2022/class_properties/static_block_and_prop_init.rs | 43 | /// TODO: Add tests for this if there aren't any already. | COMMENT |
| LOW | …tes/oxc_linter/src/rules/eslint/no_warning_comments.rs | 89 | /// // TODO: implement this feature | COMMENT |
| LOW | crates/oxc_linter/src/rules/eslint/no_var.rs | 215 | // TODO: implement a correct fixer for this case. | COMMENT |
| LOW | crates/oxc_linter/src/rules/eslint/arrow_body_style.rs | 247 | // TODO: implement a fix for empty block bodies | COMMENT |
| LOW | crates/oxc_linter/src/rules/eslint/arrow_body_style.rs | 288 | // TODO: implement a fix for undefined return | COMMENT |
| LOW | apps/oxlint/test/compile_visitor.test.ts | 30 | // TODO: Add tests for CFG events | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/oxlint/src-js/package/config.generated.ts | 2468 | * `function doSomething({ a, b }) { ... }`. Because there is no named | COMMENT |
| LOW⚡ | napi/minify/test/terser.test.ts | 2809 | "function foo(){for(const a of func(value)){console.log(a)}function func(va){return doSomething(va)}}function doSome | CODE |
| LOW⚡ | napi/minify/test/terser.test.ts | 2816 | "function foo(){for(const a of func(value)){console.log(a)}function func(va){return doSomething(va)}}function doSome | CODE |
| LOW⚡ | napi/minify/test/terser.test.ts | 2823 | "function foo(){for(const a of func(value)){console.log(a)}function func(va){return doSomething(va)}}function doSome | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tasks/ast_tools/src/main.rs | 136 | //! # Creating a new Generator or Derive | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/codecov.yml | 62 | # Check if the event is not triggered by a fork by checking whether CODECOV_TOKEN is set | COMMENT |
| LOW | .github/workflows/ci.yml | 99 | # Set profile to minimal and channel to our Minimum Supported Rust Version. | COMMENT |