Skip to main content

What it flags

A JS/TS file has more than 600 lines of code, not counting comments and blank lines. Generated and test files are skipped.

How to review or fix

Override with limits.largeModuleLines.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings:
This rule checks JavaScript and TypeScript files only; other languages are not checked. An object with a level and options sets the rule’s threshold. It takes a maxLines option, a positive integer. The rule then reports a file with more than maxLines lines of code, not counting comments and blank lines. Without the option, the limit comes from the maintainability policy’s limits.largeModuleLines, or 600 when the policy does not set it.
level is required: "warn" reports findings without changing the exit code. An overrides entry can set different options for the files it matches, and its options win over the top-level ones.