Skip to content

Commit

Permalink
Finalize retirement of gh-pages branch (#4626)
Browse files Browse the repository at this point in the history
* Finalize retirement of gh-pages branch

* Add redirecting README
  • Loading branch information
parlough authored Aug 1, 2023
1 parent b0fd4f1 commit bfdac52
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 305 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/.DS_Store
.idea
*.md
/lints/*.md
/lints/machine/.DS_Store
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Linter documentation has moved

You can find up-to-date linter documentation on the Dart website
at https://dart.dev/lints.
25 changes: 4 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,15 @@
<body>
<div class="wrapper">
<header>
<h1>Linter for Dart</h1>
<p>Style linter for Dart</p>
<ul>
<li><a href="https://dart.dev/lints">View all <strong>Lint Rules</strong></a></li>
<li><a href="https://dart.dev/guides/language/analysis-options#enabling-linter-rules">Using the <strong>Linter</strong></a></li>
</ul>
<p><a class="overflow-link" href="https://dart.dev/lints">View all <strong>Lint Rules</strong></a></p>
<p><a class="overflow-link" href="https://dart.dev/guides/language/analysis-options#enabling-linter-rules">Using the <strong>Linter</strong></a></p>
<a href="https://dart.dev/lints"><h1>Linter for Dart</h1></a>
</header>
<section>
<h1>
<a id="linter-for-dart" class="anchor" href="#linter-for-dart" aria-hidden="true"></a>
Linter for Dart
</h1>

<h2>The content on this site has moved</h2>
<h2>Linter documentation has moved!</h2>
<p>
To find up-to-date information about the Dart linter
and its various linter rules,
visit <a href="https://dart.dev/lints">dart.dev</a>.
Find up-to-date linter and lint rule documentation at
<a href="https://dart.dev/lints">https://dart.dev/lints</a>.
</p>
</section>
</div>
<footer>
<p>Maintained by the <a href="https://dart.dev/">Dart Team</a></p>
<p>Visit us on <a href="https://github.com/dart-lang/linter">Github</a></p>
</footer>
</body>
</html>
87 changes: 27 additions & 60 deletions lints/use_super_initializers.html
Original file line number Diff line number Diff line change
@@ -1,63 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="../dart-192.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>use_super_initializers</title>
<link rel="stylesheet" href="../styles.css">
</head>
<body>
<div class="wrapper">
<header>
<h1>use_super_initializers</h1>
<p>Group: style</p>
<p>Maturity: <span style="color:hotpink;font-weight:bold;" >experimental</span></p>
<div class="tooltip">
<p>Linter v1.19</p>
<span class="tooltip-content">Since info is static, may be stale</span>
</div>

<ul>
<li><a href="index.html">View all <strong>Lint Rules</strong></a></li>
<li><a href="https://dart.dev/guides/language/analysis-options#enabling-linter-rules">Using the <strong>Linter</strong></a></li>
</ul>
<p><a class="overflow-link" href="index.html">View all <strong>Lint Rules</strong></a></p>
<p><a class="overflow-link" href="https://dart.dev/guides/language/analysis-options#enabling-linter-rules">Using the <strong>Linter</strong></a></p>
</header>
<section>

<p>"Forwarding constructor"s, that do nothing except forward parameters to their
superclass constructors should take advantage of super-initializer parameters
rather than repeating the names of parameters when passing them to the
superclass constructors. This makes the code more concise and easier to read
and maintain.</p>
<p><strong>DO</strong> use super-initializer parameters where possible.</p>
<p><strong>BAD:</strong></p>
<pre><code class="language-dart">class A {
A({int? x, int? y});
}
class B extends A {
B({int? x, int? y}) : super(x: x, y: y);
}
</code></pre>
<p><strong>GOOD:</strong></p>
<pre><code class="language-dart">class A {
A({int? x, int? y});
}
class B extends A {
B({super.x, super.y});
}
</code></pre>


</section>
</div>
<footer>
<p>Maintained by the <a href="https://dart.dev/">Dart Team</a></p>
<p>Visit us on <a href="https://github.com/dart-lang/linter">GitHub</a></p>
</footer>
</body>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="../dart-192.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="refresh" content="0; url=https://dart.dev/lints/use_super_parameters">
<link rel="canonical" href="https://dart.dev/lints/use_super_parameters">
<title>use_super_initializers</title>
<link rel="stylesheet" href="../styles.css">
</head>
<body>
<div class="wrapper">
<header>
<a href="https://dart.dev/lints/use_super_parameters"><h1>use_super_initializers/use_super_parameters</h1></a>
</header>
<section>
<h2>Lint documentation has moved!</h2>
<p>
Find up-to-date documentation for the
<code>use_super_initializers</code> linter rule
(now named <code>use_super_parameters</code>) at
<a href="https://dart.dev/lints/use_super_parameters">https://dart.dev/lints/use_super_parameters</a>.
</p>
</section>
</div>
</body>
</html>
Loading

0 comments on commit bfdac52

Please sign in to comment.