eslint-plugin-sonarjs
Version:
19 lines (18 loc) • 912 B
TypeScript
/**
* The upstream patterns this engine could compile. Exported so that tests can check every one of
* them against the corpus shipped alongside the patterns.
*/
export declare const compiledPatterns: readonly RegExp[];
/**
* The upstream patterns this engine could not compile, and which therefore exclude nothing at
* analysis time. Dropping one is never expected: it turns values upstream considers non-sensitive
* back into reported hardcoded secrets. We keep analysis running rather than failing at load time,
* and let the test suite fail on a non-empty list.
*/
export declare const unsupportedPatterns: readonly string[];
/**
* Tells whether a candidate secret value looks like a fake, placeholder, encrypted or
* otherwise non-sensitive value, per the SecretClassifier patterns shared across SonarSource
* analyzers.
*/
export declare function isExcludedSecretValue(value: string): boolean;