From 3593b72880ee665bc9f1b40fccddf0e286387bc1 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 10 Sep 2024 22:23:37 -0700 Subject: [PATCH] Disallow checking SIM_CACHE_MISSES=1 --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 46686bb..943b5d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,6 +24,14 @@ repos: entry: "^#define SHOW_MEMORY 1$" language: pygrep types: [c++] + - repo: local + hooks: + - id: sim cache misses check + name: disallow checking in SIM_CACHE_MISSES=1 + description: disallow checking in SIM_CACHE_MISSES=1 + entry: "^#define SIM_CACHE_MISSES 1$" + language: pygrep + types: [c++] - repo: https://github.com/shellcheck-py/shellcheck-py rev: a23f6b85d0fdd5bb9d564e2579e678033debbdff # frozen: v0.10.0.1 hooks: