Skip to content

Commit 0259065

Browse files
ZviBaratzclaude
andcommitted
fix(ego-lint): use guard-window 1 instead of 0 for R-VER49-08/11
guard-window: 0 is silently clamped to 1 at runtime but rejected by apply-patterns.py --validate. Use 1 explicitly for identical behavior that also passes validation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 22b1e9d commit 0259065

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rules/patterns.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@
10581058
fix: "Call window.set_maximize_flags(flags) then window.maximize()"
10591059
min-version: 49
10601060
guard-pattern: "get_maximized\\s*\\?"
1061-
guard-window: 0
1061+
guard-window: 1
10621062

10631063
- id: R-VER49-09
10641064
pattern: "\\bAppMenuButton\\b"
@@ -1087,7 +1087,7 @@
10871087
min-version: 49
10881088
fix: "Call unmaximize() without the MaximizeFlags parameter"
10891089
guard-pattern: "get_maximized\\s*\\?"
1090-
guard-window: 0
1090+
guard-window: 1
10911091

10921092
# --- GNOME 50 migration (version-gated) ---
10931093
# GNOME 50 removed X11 support and associated APIs.

0 commit comments

Comments
 (0)