Skip to main content
VS Code settings (Ctrl+, → search “Iris”) configure Iris on a per-machine basis. These settings apply only to your local setup — to share thresholds across your whole team, use a .irisconfig.json at the project root instead. When both exist, .irisconfig.json takes priority over VS Code settings for any key it defines.

Settings reference

Thresholds

SettingDefaultDescription
iris.functionLengthThreshold40Lines before a function is flagged
iris.fileLengthThreshold300Lines before a file is flagged
iris.maxFunctionsPerFile10Max functions before flagging
iris.maxImportsPerFile8Max third-party imports before flagging
iris.maxParameterCount5Max parameters before flagging a function
iris.complexityThreshold7Complexity score that triggers status bar warning

Detection toggles

SettingDefaultDescription
iris.enableConsoleLogWarningstrueFlag console.log / print() / fmt.Print* statements
iris.enableMagicNumberDetectiontrueFlag raw numeric literals used without a named binding
iris.enableTodoDetectiontrueFlag TODO / FIXME / HACK comments
iris.enableLongParamDetectiontrueFlag functions with too many parameters
iris.enableUnusedDetectiontrueFlag unused variables and functions
iris.enableMissingReturnTypeWarningstrueFlag exported functions missing return types (TS/JS only)

Display

SettingDefaultDescription
iris.enableCodeLenstrueShow inline Code Lens hints
iris.enableStatusBartrueShow the Iris item in the status bar

Ignore and override rules

SettingDefaultDescription
iris.severityOverrides{}Override severity per warning type
iris.ignoreFiles["**/*.test.ts", ...]Glob patterns for files to skip in workspace analysis
iris.ignoreFunctions[]Function names Iris should never flag
For team-wide settings, use .irisconfig.json instead — VS Code settings only apply to your machine. See Configure Iris with .irisconfig.json for the full reference.