From 5d44073b94901a63a55e21bed27cffd82e59254e Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Tue, 4 Mar 2025 08:08:59 +0100 Subject: [PATCH] Bump pre-commit hooks --- .pre-commit-config.yaml | 8 ++++---- .typos.toml | 1 + .../policy/frameworks/cluster/backend/zeromq/main.zeek | 2 +- src/spicy/protocol-analyzer.h | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a37ae55a2..ae59a17db9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: exclude: '^(testing/btest/(Baseline|plugins|spicy|scripts)/.*|testing/builtin-plugins/.*)$' - repo: https://github.com/pre-commit/mirrors-clang-format - rev: 'v19.1.4' + rev: v19.1.7 hooks: - id: clang-format types_or: @@ -28,7 +28,7 @@ repos: args: ["-w", "-i", "4", "-ci"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.1 + rev: v0.9.9 hooks: - id: ruff args: [--fix] @@ -40,13 +40,13 @@ repos: - id: cmake-format - repo: https://github.com/crate-ci/typos - rev: v1.28.2 + rev: v1.30.1 hooks: - id: typos exclude: '^(.typos.toml|src/SmithWaterman.cc|testing/.*|auxil/.*|scripts/base/frameworks/files/magic/.*|CHANGES|scripts/base/protocols/ssl/mozilla-ca-list.zeek)$' - repo: https://github.com/bbannier/spicy-format - rev: v0.23.0 + rev: v0.24.2 hooks: - id: spicy-format # TODO: Reformat existing large analyzers just before 8.0. diff --git a/.typos.toml b/.typos.toml index 16ce49b93e..ab4d9769e4 100644 --- a/.typos.toml +++ b/.typos.toml @@ -55,6 +55,7 @@ extend-ignore-identifiers-re = [ "iin", # In DNP3. "(ScValidatePnPService|ScSendPnPMessage)", # In DCE-RPC. "snet", # Used as shorthand for subnet in base scripts. + "typ", "(e|i)it", # Used as name for some iterators. ] diff --git a/scripts/policy/frameworks/cluster/backend/zeromq/main.zeek b/scripts/policy/frameworks/cluster/backend/zeromq/main.zeek index 466d778840..a86d150983 100644 --- a/scripts/policy/frameworks/cluster/backend/zeromq/main.zeek +++ b/scripts/policy/frameworks/cluster/backend/zeromq/main.zeek @@ -86,7 +86,7 @@ export { ## for more details. const linger_ms: int = 500 &redef; - ## Configure ZeroMQ's immedidate setting on PUSH sockets + ## Configure ZeroMQ's immediate setting on PUSH sockets ## ## Setting this to ``T`` will queue log writes only to completed ## connections. By default, log writes are queued to all potential diff --git a/src/spicy/protocol-analyzer.h b/src/spicy/protocol-analyzer.h index 257e92145d..df4115b587 100644 --- a/src/spicy/protocol-analyzer.h +++ b/src/spicy/protocol-analyzer.h @@ -53,7 +53,7 @@ private: Cookie _cookie; }; -/** Base clase for Spicy protocol analyzers. */ +/** Base class for Spicy protocol analyzers. */ class ProtocolAnalyzer { public: ProtocolAnalyzer(analyzer::Analyzer* analyzer, ::spicy::rt::driver::ParsingType type);