> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# large-module

> A file has more than 600 lines of code.

## 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:

```json theme={null}
{
  "rules": { "large-module": "off" }
}
```

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.

```json theme={null}
{
  "rules": {
    "large-module": { "level": "warn", "options": { "maxLines": 800 } }
  }
}
```

`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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.