UNPKG

standardlint

Version:
29 lines (26 loc) 687 B
import { logDefaultPathMessage } from "./chunk-322CAOWI.mjs"; import { exists } from "./chunk-DRBJPZVI.mjs"; import { calculatePass } from "./chunk-I4KWICZI.mjs"; // src/checks/checkForPresenceCiConfig.ts function checkForPresenceCiConfig(severity, basePath, customPath, filetreePaths) { const path = customPath || ".github/workflows/main.yml"; const name = "CI configuration"; const message = "Check for CI configuration file"; if (!customPath) logDefaultPathMessage(name, path); const result = exists(basePath, path, filetreePaths); return { name, status: calculatePass(result, severity), message, path }; } export { checkForPresenceCiConfig };