Skip to content

Commit

Permalink
Sort linter rules on the all linter rules page (#5126)
Browse files Browse the repository at this point in the history
Fixes #5124
  • Loading branch information
parlough authored Aug 21, 2023
1 parent 916f63c commit ead3989
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/linter-rules/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ Add them to your
[`analysis_options.yaml`](/tools/analysis) file
and adjust as you see fit.

{% assign sorted_lints = site.data.linter_rules | sort: "name" %}

<?code-excerpt ?>
```yaml
linter:
rules:
{% for lint in site.data.linter_rules %}
{% for lint in sorted_lints %}
{%- if lint.sinceDartSdk != "Unreleased" and lint.state != "removed" -%}
- {{lint.name}}
{% endif -%}
Expand Down

0 comments on commit ead3989

Please sign in to comment.