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