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 sh from "./sh.mjs";
|
2026-02-15 16:00:00 -05:00
|
|
|
// import { execSync } from "child_process";
|
2023-06-25 14:58:11 -04:00
|
|
|
|
|
|
|
|
function lint(dir) {
|
2026-02-15 16:00:00 -05:00
|
|
|
// execSync(`clang-format -i -style=file ${dir}`, { stdio: "inherit" });
|
2023-06-25 14:58:11 -04:00
|
|
|
}
|
|
|
|
|
|
2025-07-20 18:26:25 -04:00
|
|
|
lint(sh.path`./rust/perspective-server/cpp/perspective/src/cpp/*.cpp`);
|
|
|
|
|
lint(
|
2025-09-28 13:56:29 -04:00
|
|
|
sh.path`./rust/perspective-server/cpp/perspective/src/include/perspective/*.h`,
|
2025-07-20 18:26:25 -04:00
|
|
|
);
|
2023-06-25 14:58:11 -04:00
|
|
|
lint(sh.path`./python/perspective/perspective/src/*.cpp`);
|
|
|
|
|
lint(sh.path`./python/perspective/perspective/include/perspective/*.h`);
|
|
|
|
|
lint(sh.path`./python/perspective/perspective/include/perspective/python/*.h`);
|