OverExposureFinding
A single over-exposed declaration.
Import:
import type { OverExposureFinding } from 'obsidian-dev-utils/script-utils/linters/over-exposure';Signature:
export interface OverExposureFindingProperties
| Property | Type | Description |
|---|---|---|
| column | number | 1-based column of the declaration's name. |
| currentExposure | CurrentExposure | The current exposure level. |
| filePath | string | Absolute path of the file declaring the symbol. |
| hasNoReferences | boolean | true when the declaration has no references at all (besides itself). |
| isForcedByTestOnly | boolean | true when the declaration would qualify for a tighter exposure if not for references coming exclusively from test files — i.e. it is exposed purely for testability. |
| isMember | boolean | true for a class member, false for a top-level export. |
| line | number | 1-based line of the declaration's name. |
| name | string | The declared name. |
| skipReason | null | OverExposureSkipReason | In a fix run, why this finding was left untouched instead of tightened; null when it was fixed or when the analysis only reported (shouldFix off). |
| suggestedExposure | SuggestedExposure | The exposure the declaration could be tightened to. |
| wasFixed | boolean | true when a fix run tightened this declaration in place. Always false in a report run. |
Links to this page: