2023-06-27 22:15:36 -04:00
|
|
|
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
|
|
|
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
|
|
|
|
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
|
|
|
|
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
|
|
|
|
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
|
|
|
|
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
|
|
|
|
// ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
|
|
|
|
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
|
|
|
|
// ┃ This file is part of the Perspective library, distributed under the terms ┃
|
|
|
|
|
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
|
|
|
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
2023-06-25 14:58:11 -04:00
|
|
|
|
|
|
|
|
import * as url from "url";
|
2024-02-08 17:43:49 -06:00
|
|
|
import * as dotenv from "dotenv";
|
2024-07-28 21:12:49 -04:00
|
|
|
import { lint_js, lint_python } from "./lint.mjs";
|
2023-06-25 14:58:11 -04:00
|
|
|
|
|
|
|
|
if (import.meta.url.startsWith("file:")) {
|
|
|
|
|
if (process.argv[1] === url.fileURLToPath(import.meta.url)) {
|
|
|
|
|
const { default: run } = await import("./lint_headers.mjs");
|
|
|
|
|
await run(true);
|
2024-02-08 17:43:49 -06:00
|
|
|
|
2025-09-27 22:13:38 -04:00
|
|
|
dotenv.config({ path: "./.perspectiverc", quiet: true });
|
|
|
|
|
await lint_js(true);
|
2024-07-28 21:12:49 -04:00
|
|
|
lint_python(true);
|
2023-06-25 14:58:11 -04:00
|
|
|
}
|
|
|
|
|
}
|