| { |
| "comment": [ |
| "Generated from Preset::apply() and ErrorKind::default_severity().", |
| "Do not edit by hand; run `UPDATE_EXPECT=1 cargo test -p pyrefly_config test_error_presets_json`.", |
| "Lists, for each error kind, the presets that report it." |
| ], |
| "enabled_by": { |
| "abstract-method-call": ["legacy", "default", "strict", "all"], |
| "assert-type": ["legacy", "default", "strict", "all"], |
| "bad-argument-count": ["legacy", "default", "strict", "all"], |
| "bad-argument-type": ["legacy", "default", "strict", "all"], |
| "bad-assignment": ["legacy", "default", "strict", "all"], |
| "bad-class-definition": ["basic", "legacy", "default", "strict", "all"], |
| "bad-context-manager": ["legacy", "default", "strict", "all"], |
| "bad-dataclass-descriptor": ["legacy", "default", "strict", "all"], |
| "bad-dunder-all": ["legacy", "default", "strict", "all"], |
| "bad-function-definition": ["legacy", "default", "strict", "all"], |
| "bad-index": ["legacy", "default", "strict", "all"], |
| "bad-instantiation": ["basic", "legacy", "default", "strict", "all"], |
| "bad-keyword-argument": ["basic", "legacy", "default", "strict", "all"], |
| "bad-match": ["legacy", "default", "strict", "all"], |
| "bad-override": ["legacy", "default", "strict", "all"], |
| "bad-override-mutable-attribute": ["default", "strict", "all"], |
| "bad-override-param-name": ["default", "strict", "all"], |
| "bad-param-name-override": ["legacy", "default", "strict", "all"], |
| "bad-raise": ["basic", "legacy", "default", "strict", "all"], |
| "bad-return": ["legacy", "default", "strict", "all"], |
| "bad-singledispatch-register": ["legacy", "default", "strict", "all"], |
| "bad-specialization": ["legacy", "default", "strict", "all"], |
| "bad-typed-dict": ["legacy", "default", "strict", "all"], |
| "bad-typed-dict-key": ["legacy", "default", "strict", "all"], |
| "bad-unpacking": ["basic", "legacy", "default", "strict", "all"], |
| "column-schema-mismatch": ["legacy", "default", "strict", "all"], |
| "column-type-mismatch": ["legacy", "default", "strict", "all"], |
| "coverage-missing": ["legacy", "default", "strict", "all"], |
| "coverage-partial": ["legacy", "default", "strict", "all"], |
| "deprecated": ["legacy", "default", "strict", "all"], |
| "direct-abstract-base-instantiation": ["legacy", "default", "strict", "all"], |
| "division-by-zero": ["basic", "legacy", "default", "strict", "all"], |
| "duplicate-column": ["legacy", "default", "strict", "all"], |
| "empty-body": ["all"], |
| "explicit-any": ["all"], |
| "implicit-abstract-class": ["all"], |
| "implicit-any": ["strict", "all"], |
| "implicit-any-attribute": ["strict", "all"], |
| "implicit-any-empty-container": ["strict", "all"], |
| "implicit-any-lambda": ["strict", "all"], |
| "implicit-any-parameter": ["strict", "all"], |
| "implicit-any-type-argument": ["strict", "all"], |
| "implicit-bool": ["all"], |
| "implicit-import": ["legacy", "default", "strict", "all"], |
| "implicit-reexport": ["all"], |
| "implicitly-defined-attribute": ["all"], |
| "incompatible-comparison": ["all"], |
| "incompatible-overload-residual": ["legacy", "default", "strict", "all"], |
| "inconsistent-inheritance": ["legacy", "default", "strict", "all"], |
| "inconsistent-overload": ["legacy", "default", "strict", "all"], |
| "inconsistent-overload-default": ["legacy", "default", "strict", "all"], |
| "internal-error": ["legacy", "default", "strict", "all"], |
| "invalid-abstract-method": ["all"], |
| "invalid-annotation": ["basic", "legacy", "default", "strict", "all"], |
| "invalid-argument": ["legacy", "default", "strict", "all"], |
| "invalid-cast": ["all"], |
| "invalid-decorator": ["legacy", "default", "strict", "all"], |
| "invalid-inheritance": ["legacy", "default", "strict", "all"], |
| "invalid-literal": ["basic", "legacy", "default", "strict", "all"], |
| "invalid-overload": ["legacy", "default", "strict", "all"], |
| "invalid-param-spec": ["legacy", "default", "strict", "all"], |
| "invalid-pattern": ["legacy", "default", "strict", "all"], |
| "invalid-self-type": ["legacy", "default", "strict", "all"], |
| "invalid-sentinel": ["legacy", "default", "strict", "all"], |
| "invalid-super-call": ["basic", "legacy", "default", "strict", "all"], |
| "invalid-syntax": ["basic", "legacy", "default", "strict", "all"], |
| "invalid-type-alias": ["legacy", "default", "strict", "all"], |
| "invalid-type-checking-constant": ["legacy", "default", "strict", "all"], |
| "invalid-type-var": ["legacy", "default", "strict", "all"], |
| "invalid-type-var-tuple": ["legacy", "default", "strict", "all"], |
| "invalid-variance": ["legacy", "default", "strict", "all"], |
| "invalid-yield": ["legacy", "default", "strict", "all"], |
| "misplaced-ignore": ["legacy", "default", "strict", "all"], |
| "missing-argument": ["legacy", "default", "strict", "all"], |
| "missing-attribute": ["legacy", "default", "strict", "all"], |
| "missing-attribute-patch-target": ["legacy", "default", "strict", "all"], |
| "missing-import": ["basic", "legacy", "default", "strict", "all"], |
| "missing-module-attribute": ["legacy", "default", "strict", "all"], |
| "missing-override-decorator": ["strict", "all"], |
| "missing-source": ["all"], |
| "missing-source-for-stubs": ["legacy", "default", "strict", "all"], |
| "missing-super-call": ["all"], |
| "name-mismatch": ["legacy", "default", "strict", "all"], |
| "no-access": ["legacy", "default", "strict", "all"], |
| "no-any-return": ["all"], |
| "no-any-return-explicit": ["all"], |
| "no-any-return-implicit": ["all"], |
| "no-matching-overload": ["legacy", "default", "strict", "all"], |
| "non-convergent-recursion": ["legacy", "default", "strict", "all"], |
| "non-exhaustive-match": ["legacy", "default", "strict", "all"], |
| "not-a-type": ["legacy", "default", "strict", "all"], |
| "not-async": ["basic", "legacy", "default", "strict", "all"], |
| "not-callable": ["legacy", "default", "strict", "all"], |
| "not-iterable": ["legacy", "default", "strict", "all"], |
| "not-required-key-access": ["all"], |
| "open-unpacking": ["strict", "all"], |
| "parse-error": ["basic", "legacy", "default", "strict", "all"], |
| "potential-bad-keyword-argument": ["legacy", "default", "strict", "all"], |
| "protocol-implicitly-defined-attribute": ["legacy", "default", "strict", "all"], |
| "pytorch-efficiency-lint-cuda-call": ["all"], |
| "pytorch-efficiency-lint-item-call": ["all"], |
| "pytorch-efficiency-lint-print-tensor": ["all"], |
| "pytorch-efficiency-lint-redundant-to-call": ["all"], |
| "pytorch-efficiency-lints": ["all"], |
| "read-only": ["legacy", "default", "strict", "all"], |
| "redefinition": ["legacy", "default", "strict", "all"], |
| "redundant-cast": ["legacy", "default", "strict", "all"], |
| "redundant-condition": ["legacy", "default", "strict", "all"], |
| "regex": ["legacy", "default", "strict", "all"], |
| "reveal-type": ["legacy", "default", "strict", "all"], |
| "string-as-iterable": ["all"], |
| "unannotated-attribute": ["all"], |
| "unannotated-parameter": ["all"], |
| "unannotated-protocol-member": ["legacy", "default", "strict", "all"], |
| "unannotated-return": ["all"], |
| "unbound-name": ["default", "strict", "all"], |
| "unexpected-keyword": ["basic", "legacy", "default", "strict", "all"], |
| "unexpected-positional-argument": ["basic", "legacy", "default", "strict", "all"], |
| "unimported-directive": ["legacy", "default", "strict", "all"], |
| "unknown-argument-type": ["all"], |
| "unknown-attribute-type": ["all"], |
| "unknown-column": ["legacy", "default", "strict", "all"], |
| "unknown-name": ["basic", "legacy", "default", "strict", "all"], |
| "unknown-variable-type": ["all"], |
| "unnecessary-comparison": ["legacy", "default", "strict", "all"], |
| "unnecessary-type-conversion": ["legacy", "default", "strict", "all"], |
| "unreachable": ["legacy", "default", "strict", "all"], |
| "unreachable-match-case": ["legacy", "default", "strict", "all"], |
| "unresolvable-dunder-all": ["legacy", "default", "strict", "all"], |
| "unsafe-overlap": ["legacy", "default", "strict", "all"], |
| "unsupported": ["legacy", "default", "strict", "all"], |
| "unsupported-delete": ["legacy", "default", "strict", "all"], |
| "unsupported-dynamic-base": ["all"], |
| "unsupported-operation": ["legacy", "default", "strict", "all"], |
| "untyped-class-decorator": ["all"], |
| "untyped-function-decorator": ["all"], |
| "untyped-import": ["legacy", "default", "strict", "all"], |
| "unused-call-result": ["all"], |
| "unused-coroutine": ["basic", "legacy", "default", "strict", "all"], |
| "unused-ignore": ["strict", "all"], |
| "unused-type-ignore": ["all"], |
| "useless-overload-body": ["legacy", "default", "strict", "all"], |
| "variance-mismatch": ["legacy", "default", "strict", "all"] |
| } |
| } |