UNPKG

dclint

Version:

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

25 lines (24 loc) 809 B
import type { LintContext } from '../linter/linter.types'; import type { Rule, RuleCategory, RuleSeverity, RuleType, RuleMeta, RuleMessage } from './rules.types'; export interface NoBuildAndImageRuleInputOptions { checkPullPolicy?: boolean; } interface NoBuildAndImageRuleOptions { checkPullPolicy: boolean; } export default 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 {};