Skip to content

Commit 6258ba0

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # coverage/bench-baseline.txt
2 parents 47bdbee + c8d943a commit 6258ba0

6 files changed

Lines changed: 140 additions & 69 deletions

File tree

.githooks/checks/03-describe-datasource-arch.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ for f in $staged_files; do
3131

3232
# Detect raw BSON field access: map indexed by a capitalized string literal.
3333
# Pattern: ["AnyCapitalizedName"] — e.g. ds["DataSource"], w["MicroflowSettings"]
34-
bad=$(echo "$new_lines" | grep -oE '\["[A-Z][a-zA-Z]*"\]' | sort -u)
34+
# Lines marked with //nolint:describe-raw-bson are opt-outs for existing/migrating code.
35+
bad=$(echo "$new_lines" | grep -v 'nolint:describe-raw-bson' | grep -oE '\["[A-Z][a-zA-Z]*"\]' | sort -u)
3536

3637
if [ -n "$bad" ]; then
3738
echo "COMMIT BLOCKED: $f (mdl/executor/) adds raw BSON field access by string literal." >&2

0 commit comments

Comments
 (0)