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

# Inline diagnostics: squiggles and Problems panel entries

> Put selected Iris Code findings in the editor as squiggles and in the Problems panel. Off by default, on purpose.

Inline diagnostics show findings beside the code, using editor underlines and the Problems panel. They help you see an issue while you are editing rather than waiting for a full project report. Each finding has a message and a location you can open.

## What is enabled by default

Inline diagnostics are off until you enable them. Once enabled, the default categories are secrets, security smells, `@ts-ignore`, unused functions and `any` usage, which usually need attention while you edit.

Structural warnings such as file length stay off. A long file is a property of your project rather than an error, and it should not appear beside a type failure with the same urgency.

| Category | Default | What it flags |
| - | - | - |
| `hardcodedSecrets` | `true` | Credentials |
| `securitySmells` | `true` | All nine patterns: eval, SQL concatenation, insecure RNG, ReDoS regex, disabled TLS, weak hashing, open redirects, debug flags, localhost URLs |
| `tsIgnore` | `true` | `@ts-ignore` |
| `unusedFunctions` | `true` | Functions nothing calls |
| `anyUsage` | `true` | Explicit `any` |
| `errorWarnings` | `false` | Error-level structural warnings |
| `warningLevelWarnings` | `false` | Warning and info structural warnings |
| `consoleLogs` | `false` | `console.log` |
| `magicNumbers` | `false` | Raw numeric literals |
| `longParamLists` | `false` | Long parameter lists |
| `unusedVars` | `false` | Unused variables |
| `todos` | `false` | TODO / FIXME / HACK |

## Turning it on

Enable it globally, then pick what you want:

```json theme={null}
{
  "enableInlineDiagnostics": true,
  "inlineDiagnostics": {
    "consoleLogs": true,
    "magicNumbers": false,
    "todos": false
  }
}
```

<Note>
  `"enableInlineDiagnostics": false` removes every squiggle and Problems panel entry while leaving all findings visible in the Iris Code sidebar. Nothing stops being detected; it stops being surfaced in the editor.
</Note>


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