standardlint
Version:
Extensible standards linter and auditor.
25 lines (22 loc) • 522 B
JavaScript
import {
exists
} from "./chunk-DRBJPZVI.mjs";
import {
calculatePass
} from "./chunk-I4KWICZI.mjs";
// src/checks/checkForPresenceCodeowners.ts
function checkForPresenceCodeowners(severity, basePath, filetreePaths) {
const path = "CODEOWNERS";
const name = "Code owners";
const message = "Check for CODEOWNERS file";
const result = exists(basePath, path, filetreePaths);
return {
name,
status: calculatePass(result, severity),
message,
path
};
}
export {
checkForPresenceCodeowners
};