Skip to content

Commit 4b855d8

Browse files
authored
Update linter rules on help page. (#1983)
1 parent 3c03eb7 commit 4b855d8

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

app/lib/frontend/templates/views/help.mustache

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,20 @@
7373
Use <a href="https://www.dartlang.org/guides/language/analysis-options"><code>analysis_options.yaml</code></a>
7474
to specify further linter rules, and make sure you fix all warnings and errors before publishing.
7575
Here's an example <code>analysis_options.yaml</code>:</p>
76-
<pre><code class="language-yaml"># https://www.dartlang.org/guides/language/analysis-options
77-
# Source of linter options:
78-
# http://dart-lang.github.io/linter/lints/options/options.html
79-
linter:
80-
rules:
81-
- camel_case_types
82-
- hash_and_equals
83-
- iterable_contains_unrelated_type
84-
- list_remove_unrelated_type
85-
- unrelated_type_equality_checks
86-
- valid_regexps
76+
<pre><code class="language-yaml"># Defines a default set of lint rules enforced for
77+
# projects at Google. For details and rationale,
78+
# see https://github.com/dart-lang/pedantic#enabled-lints.
79+
include: package:pedantic/analysis_options.yaml
80+
81+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
82+
# Uncomment to specify additional rules.
83+
# linter:
84+
# rules:
85+
# - camel_case_types
86+
87+
# analyzer:
88+
# exclude:
89+
# - path/to/excluded/files/**
8790
</code></pre>
8891

8992
<h3 id="maintenance">Maintenance</h3>

0 commit comments

Comments
 (0)