dclint
Version:
A command-line tool for validating and enforcing best practices in Docker Compose files.
19 lines (18 loc) • 691 B
TypeScript
import type { Rule, RuleCategory, RuleMessage, RuleMeta, RuleSeverity, RuleType } from './rules.types';
import type { LintContext } from '../linter/linter.types';
declare class ServiceContainerNameRegexRule implements Rule {
static readonly name = "service-container-name-regex";
get name(): string;
type: RuleType;
category: RuleCategory;
severity: RuleSeverity;
private static readonly containerNameRegex;
meta: RuleMeta;
fixable: boolean;
getMessage({ serviceName, containerName }: {
serviceName: string;
containerName: string;
}): string;
check(context: LintContext): RuleMessage[];
}
export { ServiceContainerNameRegexRule };