Skip to content

fix(ego-lint): suppress fix text for multi-version extensions#8

Merged
ZviBaratz merged 1 commit intomainfrom
fix/fix-min-version-gating
Mar 3, 2026
Merged

fix(ego-lint): suppress fix text for multi-version extensions#8
ZviBaratz merged 1 commit intomainfrom
fix/fix-min-version-gating

Conversation

@ZviBaratz
Copy link
Copy Markdown
Owner

Summary

Fixes #7 — R-VER48-04/04b incorrectly suggest replacing vertical: true with orientation: Clutter.Orientation.VERTICAL for extensions targeting GNOME 46, where orientation is unavailable.

  • Add fix-min-version field to apply-patterns.py that suppresses the fix: text when the extension's minimum shell-version is below the threshold
  • Update R-VER48-04/04b with fix-min-version: 47 and inline backward-compat note in messages
  • Add multiversion-vertical@test fixture and assertions (5 new tests, 500 total passing)

Behavior

Extension target Warning Fix suggestion
["48"] only WARN with compat note Shown (min_shell=48 >= 47)
["46", "47", "48"] WARN with compat note Suppressed (min_shell=46 < 47)
["47", "48"] WARN with compat note Shown (min_shell=47 >= 47)

Test plan

  • bash tests/run-tests.sh — 500 passed, 0 failed
  • Manual: multiversion fixture gets WARN without fix text
  • Manual: single-version-48 fixture gets WARN with fix text
  • apply-patterns.py --validate passes with new fix-min-version fields

🤖 Generated with Claude Code

Add fix-min-version field to pattern rules that gates the fix suggestion
based on the extension's minimum declared shell-version. R-VER48-04/04b
still warn about the deprecated vertical property, but omit the
"use orientation" fix when the extension targets GNOME <=46 where
orientation is unavailable.

Closes #7

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ZviBaratz ZviBaratz self-assigned this Mar 3, 2026
@ZviBaratz ZviBaratz merged commit 7203293 into main Mar 3, 2026
2 checks passed
@ZviBaratz ZviBaratz deleted the fix/fix-min-version-gating branch March 3, 2026 08:54
@ZviBaratz ZviBaratz added bug Something isn't working ego-lint Related to ego-lint skill labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ego-lint Related to ego-lint skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lint rule incorrectly flags St.BoxLayout vertical:true as deprecated (breaks GNOME 46)

1 participant