Skip to content

Commit 46ba575

Browse files
authored
Don't include lint rules with a since version after the current SDK version (#6505)
Fixes #6502
1 parent dcddf5f commit 46ba575

File tree

1 file changed

+1
-1
lines changed
  • src/content/tools/linter-rules

1 file changed

+1
-1
lines changed

src/content/tools/linter-rules/all.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and adjust as you see fit.
1717
linter:
1818
rules:
1919
{% for lint in sorted_lints %}
20-
{%- if lint.sinceDartSdk != "Unreleased" and lint.sinceDartSdk not contains "-wip" and lint.state != "removed" and lint.state != "internal" -%}
20+
{%- if lint.sinceDartSdk != "Unreleased" and lint.sinceDartSdk not contains "-wip" and site.sdkVersion >= lint.sinceDartSdk and lint.state != "removed" and lint.state != "internal" -%}
2121
- {{lint.name}}
2222
{% endif -%}
2323
{%- endfor %}

0 commit comments

Comments
 (0)