Files
sdk/analysis_options.yaml
zeekay 25ba222c99 count the void returns, and say which routes the hand-written client still owns
834 of the 2479 operations return void, not 716: 716 declare no response at all
and another 118 declare a 2xx carrying no content, and both project to the same
void method. A reader sizing the WithHttpInfo path was told the smaller half.

hanzo-dart/hanzoai's agent and session routes are all in the document, but its
five /v1/cloud/*-machine calls are not — the document declares no path
containing "machine" — so "covers those routes and every other one" would send
someone migrating off that client to a method that does not exist.

strict-casts, strict-raw-types and strict-inference report 4947 issues over this
tree, and strict-casts alone accounts for all 4944 errors; the other two add
none. Also: 2460 models, not 2461.
2026-08-14 20:44:13 -07:00

24 lines
1.4 KiB
YAML

# The gate. `dart analyze` is what hanzo.yml runs and what a contributor runs,
# and it treats warnings as fatal, so this file is what 2662 generated files and
# the handful of hand-written ones are both held to.
#
# `recommended`, and not the strict-* analyzer options the two hand-written
# hanzo-dart packages carry: the three together report 4947 issues here, and
# strict-casts alone reports all 4944 errors among them — strict-raw-types and
# strict-inference each add none. Every one is the generator's own
# `json[r'key'] as List` idiom, which nothing in a row or a template can
# restate. A standard a generated tree cannot meet is a standard nobody runs.
include: package:lints/recommended.yaml
linter:
rules:
# Four style rules the generator's Dart trips wholesale — 28408 of the
# 28411 findings, none of them in a file written by hand. The output has to
# stay byte-identical to what the generator emits or the client lane's
# `--check` fails, so these can only ever be noise here, and noise at this
# volume hides the three findings that are not.
unnecessary_this: false # 23123: `this.x` in every toJson
use_string_in_part_of_directives: false # 2660: `part of hanzoai.cloud;`, one per model
avoid_function_literals_in_foreach_calls: false # 2460: the required-key assert
unintended_html_in_doc_comment: false # 165: `<name>` inside a doc comment carried from the API document