Suppress specific findings with inline comments or JSDoc tags. Useful for false positives or intentional exceptions.Documentation Index
Fetch the complete documentation index at: https://docs.fallow.tools/llms.txt
Use this file to discover all available pages before exploring further.
JSDoc visibility tags
Exports annotated with JSDoc visibility tags are never reported as unused. Fallow recognizes@public, @internal, @beta, and @alpha. Use these for library APIs consumed by external projects, or exports intentionally reserved for specific audiences. They have zero internal references but are intentionally part of your API surface.
export { foo, bar }).
Only
/** */ JSDoc block comments are recognized. Line comments (// @public) and regular block comments (/* @public */) have no effect.@expected-unused JSDoc tag
Mark exports as intentionally unused with /** @expected-unused */. Unlike visibility tags (@public, @internal), this tag is tracked for staleness. If the export later becomes imported by another module, fallow reports the tag as a stale suppression.
@expected-unused when you want to:
- Suppress an unused export finding
- Be notified if the export becomes used again (via the
stale-suppressionsrule)
stale-suppressions rule (default: warn) controls the severity of stale @expected-unused tags. See dead code explained for details.
Only
/** */ JSDoc block comments are recognized. The tag works on all export types: named, default, classes, interfaces, enums, and type aliases.Comment syntax
Suppressing complexity findings
Suppress individual functions from the health command’s complexity report. Both cyclomatic and cognitive metrics are suppressed together.Reference
| Comment | Scope |
|---|---|
// fallow-ignore-next-line | All issues on the next line |
// fallow-ignore-next-line <type> | Specific issue on the next line |
// fallow-ignore-file | All issues in the file |
// fallow-ignore-file <type> | Specific issue type for the file |
Issue type tokens
Use these tokens with suppression comments. The Scope column shows whether each type supports line-level (// fallow-ignore-next-line), file-level (// fallow-ignore-file), or both.
| Token | Issue | Scope |
|---|---|---|
unused-file | Unused file | file |
unused-export | Unused export | both |
unused-type | Unused type export | both |
unused-dependency | Unused dependency | file |
unused-dev-dependency | Unused devDependency | file |
unused-enum-member | Unused enum member | both |
unused-class-member | Unused class member | both |
unresolved-import | Unresolved import | both |
unlisted-dependency | Unlisted dependency | both |
duplicate-export | Duplicate export | both |
code-duplication | Code duplication | file |
circular-dependency | Circular dependency | both |
boundary-violation | Boundary violation | both |
type-only-dependency | Type-only dependency | file |
test-only-dependency | Test-only dependency | file |
complexity | Function exceeding complexity threshold | both |
coverage-gaps | File with no test dependency path | file |
feature-flag | Detected feature flag pattern | both |
Tokens grouped by command
Tokens grouped by command
fallow dead-code (dead code analysis):
unused-file, unused-export, unused-type, unused-dependency, unused-dev-dependency, unused-enum-member, unused-class-member, unresolved-import, unlisted-dependency, duplicate-export, circular-dependency, boundary-violation, type-only-dependency, test-only-dependencyfallow health (complexity and coverage):
complexity, coverage-gapsfallow dupes (code duplication):
code-duplicationfallow flags (feature flag detection):
feature-flagThe
circular-dependency and circular-dependencies slugs are interchangeable wherever rule slugs are accepted (inline directives, config rules, overrides[].rules). The singular form is canonical for inline directives, the plural form is canonical for rules config; both are accepted on either surface as aliases.When to use suppression
Prefer config-level solutions (rules, ignoreExports) for broad patterns. Use inline suppression for:- Individual false positives
- Temporary suppression during migration
@public, @internal, @beta, @alpha) instead of suppression comments.
Config-level vs inline suppression
See also
Rules & Severity
Control issue severity at the project level.
Configuration
Full config file reference including ignoreExports and ignorePatterns.