standardlint
Version:
Extensible standards linter and auditor.
25 lines (22 loc) • 524 B
JavaScript
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
};