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