CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
RuleContext.d.ts25 linesDownload Raw Back to module
1import { SecretLintCoreIgnoreMessage, SecretLintCoreResultMessage, SecretlintCoreSharedOptions, SecretLintRuleContext, SecretLintRuleCreator, SecretLintRuleLocaleTag, SecretLintRuleSeverityLevel, SecretLintSourceCode } from "@secretlint/types";2type Handler<T> = (descriptor: T) => void;3export type ContextEvents = {4    report(descriptor: SecretLintCoreResultMessage): void;5    onReport(handler: Handler<SecretLintCoreResultMessage>): () => void;6    ignore(descriptor: SecretLintCoreIgnoreMessage): void;7    onIgnore(handler: Handler<SecretLintCoreIgnoreMessage>): () => void;8};9export declare const createContextEvents: () => ContextEvents;10export type CreateRuleContextOptions = {11    ruleId: string;12    /**13     * If the rule is in preset, pass rule preset's id as ruleParentId14     */15    ruleParentId?: string;16    meta: SecretLintRuleCreator["meta"];17    severity?: SecretLintRuleSeverityLevel;18    sourceCode: SecretLintSourceCode;19    contextEvents: ContextEvents;20    sharedOptions: SecretlintCoreSharedOptions;21    locale: SecretLintRuleLocaleTag;22};23export declare const createRuleContext: ({ ruleId, ruleParentId, meta, severity, sourceCode, contextEvents, sharedOptions, locale, }: CreateRuleContextOptions) => SecretLintRuleContext;24export {};25//# sourceMappingURL=RuleContext.d.ts.map
basant307/AI_Governance_Project · CoolFace