<p dir="auto">The code snippets in <a href="https://flutter.io/cookbook/" rel="nofollow">https://flutter.io/cookbook/</a> currently have 754 analyzer errors [1]. We should clean up those errors and then enforce that the code stays clean by including the cookbook in our travis check [2].</p>
<p dir="auto">This will also ensure that the code in the cookbook doesn't go stale with new Flutter/Dart releases.</p>
<p dir="auto">[1] <a href="https://travis-ci.org/flutter/website/builds/361245834#L1064" rel="nofollow">https://travis-ci.org/flutter/website/builds/361245834#L1064</a><br>
[2] <a href="https://github.com/flutter/website/blob/master/tool/extract.dart#L16">https://github.com/flutter/website/blob/master/tool/extract.dart#L16</a></p>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/filiph/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/filiph">@filiph</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mjohnsullivan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mjohnsullivan">@mjohnsullivan</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/devoncarew/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/devoncarew">@devoncarew</a></p>
<p dir="auto">Currently, we have a (small, simple) analysis options file used when analyzing the website code snippets. We should do some work to unify that with the analysis options files used when analyzing flutter code. This could be introducing an inheritance mechanism to analysis options files (a fairly invasive change), duplicate the lint list, or have some code that autogenerates the website options file one on the fly (this last option seems pretty good).</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="256786039" data-permission-text="Title is private" data-url="https://github.com/flutter/website/issues/666" data-hovercard-type="pull_request" data-hovercard-url="/flutter/website/pull/666/hovercard" href="https://github.com/flutter/website/pull/666">flutter/website#666</a> for context.</p>