mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 20:55:44 +00:00
19 lines
602 B
Bash
Executable File
19 lines
602 B
Bash
Executable File
#!/bin/bash
|
|
# Runs the curated Shardok clang-tidy gate used by CI.
|
|
#
|
|
# This intentionally checks representative files instead of the whole C++ tree.
|
|
# Keep this list low-noise; expand it as cleanup PRs make more areas tidy-clean.
|
|
|
|
set -euo pipefail
|
|
|
|
repo_root="$(git rev-parse --show-toplevel)"
|
|
|
|
files=(
|
|
"src/main/cpp/net/eagle0/shardok/library/ActionCost.hpp"
|
|
"src/main/cpp/net/eagle0/shardok/library/CombatDamage.hpp"
|
|
)
|
|
|
|
"$repo_root/scripts/run-clang-tidy.sh" --verify-config
|
|
|
|
"$repo_root/scripts/run-clang-tidy.sh" --quiet --warnings-as-errors="*" "${files[@]}" -- -I"$repo_root" -std=c++23
|