@apistudio/apim-cli
Version:
CLI for API Management Products
17 lines (16 loc) • 537 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoChannelTrailingSlash = void 0;
const NoChannelTrailingSlash = () => {
return {
Channel(_channel, { report, key, location }) {
if (key.endsWith('/') && key !== '/') {
report({
message: `\`${key}\` should not have a trailing slash.`,
location: location.key(),
});
}
},
};
};
exports.NoChannelTrailingSlash = NoChannelTrailingSlash;