UNPKG

standardlint

Version:
29 lines (26 loc) 694 B
import { logDefaultPathMessage } from "./chunk-322CAOWI.mjs"; import { exists } from "./chunk-DRBJPZVI.mjs"; import { calculatePass } from "./chunk-I4KWICZI.mjs"; // src/checks/checkForPresenceIacConfig.ts function checkForPresenceIacConfig(severity, basePath, customPath, filetreePaths) { const path = customPath || "serverless.yml"; const name = "IAC configuration"; const message = "Check for Infrastructure-as-Code configuration"; if (!customPath) logDefaultPathMessage(name, path); const result = exists(basePath, path, filetreePaths); return { name, status: calculatePass(result, severity), message, path }; } export { checkForPresenceIacConfig };