Bump pre-commit hooks

This commit is contained in:
Benjamin Bannier 2025-03-04 08:08:59 +01:00
parent d3d7c54686
commit 5d44073b94
4 changed files with 7 additions and 6 deletions

View file

@ -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.

View file

@ -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.
]

View file

@ -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

View file

@ -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);