AI Code Detector Runs in your browser

AI CODE DETECTOR GUIDE

Does indentation change an AI code detector score?

Adding four leading spaces did not change the score or matched rule in two tested examples: a descriptive function name and a boilerplate comment both produced the same result before and after indentation. This is specific to those inputs and the current rules, not a guarantee about every formatting change.

The configured rules run in your browser; submitted code is not uploaded.

What the current examples show

The descriptive-identifier check looks for a pattern within a line. The tested line matched whether it began at the first column or had four spaces before it:

function calculateCustomerTotal() { return 1; }
    function calculateCustomerTotal() { return 1; }

Both versions matched “Highly descriptive multi-word identifier” and returned a score of 7.

The current boilerplate-comment pattern also allows whitespace before the comment marker. In this test, indentation did not change the match:

// Return a clear result
    // Return a clear result

Both versions matched “Boilerplate explanatory comment phrasing” and returned a score of 13. These values come from running the exact lines against the current local analyzer.

Keep the conclusion narrow

The analyzer evaluates configured text patterns line by line. A different edit—such as changing words, adding a comment, or splitting text across lines—can change which patterns match. These examples show only that adding leading spaces did not change these two matches; they do not establish that formatting is irrelevant in general.

A matched rule and its score are heuristic review signals, not proof of who wrote the code. Open the AI code detector, or read what its score means.