UNPKG

dclint

Version:

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

17 lines (16 loc) 586 B
import type { LintContext } from '../linter/linter.types'; import type { Rule, RuleCategory, RuleSeverity, RuleType, RuleMeta, RuleMessage } from './rules.types'; export default class NoUnboundPortInterfacesRule implements Rule { static readonly name = "no-unbound-port-interfaces"; get name(): string; type: RuleType; category: RuleCategory; severity: RuleSeverity; meta: RuleMeta; fixable: boolean; getMessage({ serviceName, port }: { serviceName: string; port: string; }): string; check(context: LintContext): RuleMessage[]; }