dclint
Version:
A command-line tool for validating and enforcing best practices in Docker Compose files.
18 lines (17 loc) • 619 B
TypeScript
import type { Rule, RuleCategory, RuleMessage, RuleMeta, RuleSeverity, RuleType } from './rules.types';
import type { LintContext } from '../linter/linter.types';
declare 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[];
}
export { NoUnboundPortInterfacesRule };