UNPKG

dclint

Version:

A command-line tool for validating and enforcing best practices in Docker Compose files.

25 lines (24 loc) 854 B
import type { Rule, RuleCategory, RuleMessage, RuleMeta, RuleSeverity, RuleType } from './rules.types'; import type { LintContext } from '../linter/linter.types'; interface NoBuildAndImageRuleInputOptions { checkPullPolicy?: boolean; } interface NoBuildAndImageRuleOptions { checkPullPolicy: boolean; } declare class NoBuildAndImageRule implements Rule { static readonly name = "no-build-and-image"; get name(): string; type: RuleType; category: RuleCategory; severity: RuleSeverity; meta: RuleMeta; fixable: boolean; options: NoBuildAndImageRuleOptions; constructor(options?: NoBuildAndImageRuleInputOptions); getMessage({ serviceName }: { serviceName: string; }): string; check(context: LintContext): RuleMessage[]; } export { type NoBuildAndImageRuleInputOptions, NoBuildAndImageRule };