UNPKG

standardlint

Version:
25 lines (22 loc) 524 B
import { exists } from "./chunk-DRBJPZVI.mjs"; import { calculatePass } from "./chunk-I4KWICZI.mjs"; // src/checks/checkForPresenceSecurity.ts function checkForPresenceSecurity(severity, basePath, filetreePaths) { const path = "SECURITY.md"; const name = "Security information"; const message = "Check for SECURITY file"; const result = exists(basePath, path, filetreePaths); return { name, status: calculatePass(result, severity), message, path }; } export { checkForPresenceSecurity };