mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
Updated diagnostic rule table so it groups basic and strict diagnostics.
This commit is contained in:
parent
ca72a6796a
commit
fadeea36b4
@ -283,19 +283,20 @@ The following table lists the default severity levels for each diagnostic rule w
|
||||
| strictSetInference | false | false | true |
|
||||
| strictParameterNoneValue | true | true | true |
|
||||
| enableTypeIgnoreComments | true | true | true |
|
||||
| reportGeneralTypeIssues | "none" | "error" | "error" |
|
||||
| reportPropertyTypeMismatch | "none" | "none" | "none" |
|
||||
| reportFunctionMemberAccess | "none" | "none" | "error" |
|
||||
| reportMissingImports | "warning" | "error" | "error" |
|
||||
| :---------------------------------------- | :--------- | :--------- | :--------- |
|
||||
| reportMissingModuleSource | "warning" | "warning" | "warning" |
|
||||
| reportMissingImports | "warning" | "error" | "error" |
|
||||
| reportUndefinedVariable | "warning" | "error" | "error" |
|
||||
| :---------------------------------------- | :--------- | :--------- | :--------- |
|
||||
| reportAssertAlwaysTrue | "none" | "warning" | "error" |
|
||||
| reportInvalidStringEscapeSequence | "none" | "warning" | "error" |
|
||||
| reportInvalidTypeVarUse | "none" | "warning" | "error" |
|
||||
| reportMissingTypeStubs | "none" | "warning" | "error" |
|
||||
| reportImportCycles | "none" | "none" | "error" |
|
||||
| reportUnusedImport | "none" | "none" | "error" |
|
||||
| reportUnusedClass | "none" | "none" | "error" |
|
||||
| reportUnusedFunction | "none" | "none" | "error" |
|
||||
| reportUnusedVariable | "none" | "none" | "error" |
|
||||
| reportDuplicateImport | "none" | "none" | "error" |
|
||||
| reportSelfClsParameterName | "none" | "warning" | "error" |
|
||||
| reportUnsupportedDunderAll | "none" | "warning" | "error" |
|
||||
| reportUnusedExpression | "none" | "warning" | "error" |
|
||||
| reportWildcardImportFromLibrary | "none" | "warning" | "error" |
|
||||
| reportGeneralTypeIssues | "none" | "error" | "error" |
|
||||
| reportOptionalSubscript | "none" | "error" | "error" |
|
||||
| reportOptionalMemberAccess | "none" | "error" | "error" |
|
||||
| reportOptionalCall | "none" | "error" | "error" |
|
||||
@ -303,44 +304,44 @@ The following table lists the default severity levels for each diagnostic rule w
|
||||
| reportOptionalContextManager | "none" | "error" | "error" |
|
||||
| reportOptionalOperand | "none" | "error" | "error" |
|
||||
| reportTypedDictNotRequiredAccess | "none" | "error" | "error" |
|
||||
| reportUntypedFunctionDecorator | "none" | "none" | "error" |
|
||||
| reportUntypedClassDecorator | "none" | "none" | "error" |
|
||||
| reportUntypedBaseClass | "none" | "none" | "error" |
|
||||
| reportUntypedNamedTuple | "none" | "none" | "error" |
|
||||
| reportPrivateUsage | "none" | "none" | "error" |
|
||||
| reportPrivateImportUsage | "none" | "error" | "error" |
|
||||
| reportUnboundVariable | "none" | "error" | "error" |
|
||||
| reportUnusedCoroutine | "none" | "error" | "error" |
|
||||
| :---------------------------------------- | :--------- | :--------- | :--------- |
|
||||
| reportConstantRedefinition | "none" | "none" | "error" |
|
||||
| reportDuplicateImport | "none" | "none" | "error" |
|
||||
| reportFunctionMemberAccess | "none" | "none" | "error" |
|
||||
| reportImportCycles | "none" | "none" | "error" |
|
||||
| reportIncompatibleMethodOverride | "none" | "none" | "error" |
|
||||
| reportIncompatibleVariableOverride | "none" | "none" | "error" |
|
||||
| reportIncompleteStub | "none" | "none" | "error" |
|
||||
| reportInconsistentConstructor | "none" | "none" | "error" |
|
||||
| reportOverlappingOverload | "none" | "none" | "error" |
|
||||
| reportMissingSuperCall | "none" | "none" | "none" |
|
||||
| reportUninitializedInstanceVariable | "none" | "none" | "none" |
|
||||
| reportInvalidStringEscapeSequence | "none" | "warning" | "error" |
|
||||
| reportUnknownParameterType | "none" | "none" | "error" |
|
||||
| reportUnknownArgumentType | "none" | "none" | "error" |
|
||||
| reportUnknownLambdaType | "none" | "none" | "error" |
|
||||
| reportUnknownVariableType | "none" | "none" | "error" |
|
||||
| reportUnknownMemberType | "none" | "none" | "error" |
|
||||
| reportInvalidStubStatement | "none" | "none" | "error" |
|
||||
| reportMatchNotExhaustive | "none" | "none" | "error" |
|
||||
| reportMissingParameterType | "none" | "none" | "error" |
|
||||
| reportMissingTypeArgument | "none" | "none" | "error" |
|
||||
| reportInvalidTypeVarUse | "none" | "warning" | "error" |
|
||||
| reportCallInDefaultInitializer | "none" | "none" | "none" |
|
||||
| reportUnnecessaryIsInstance | "none" | "none" | "error" |
|
||||
| reportOverlappingOverload | "none" | "none" | "error" |
|
||||
| reportPrivateUsage | "none" | "none" | "error" |
|
||||
| reportUnknownArgumentType | "none" | "none" | "error" |
|
||||
| reportUnknownLambdaType | "none" | "none" | "error" |
|
||||
| reportUnknownMemberType | "none" | "none" | "error" |
|
||||
| reportUnknownParameterType | "none" | "none" | "error" |
|
||||
| reportUnknownVariableType | "none" | "none" | "error" |
|
||||
| reportUnnecessaryCast | "none" | "none" | "error" |
|
||||
| reportUnnecessaryComparison | "none" | "none" | "error" |
|
||||
| reportAssertAlwaysTrue | "none" | "warning" | "error" |
|
||||
| reportSelfClsParameterName | "none" | "warning" | "error" |
|
||||
| reportUnnecessaryIsInstance | "none" | "none" | "error" |
|
||||
| reportUnusedClass | "none" | "none" | "error" |
|
||||
| reportUnusedImport | "none" | "none" | "error" |
|
||||
| reportUnusedFunction | "none" | "none" | "error" |
|
||||
| reportUnusedVariable | "none" | "none" | "error" |
|
||||
| reportUntypedBaseClass | "none" | "none" | "error" |
|
||||
| reportUntypedClassDecorator | "none" | "none" | "error" |
|
||||
| reportUntypedFunctionDecorator | "none" | "none" | "error" |
|
||||
| reportUntypedNamedTuple | "none" | "none" | "error" |
|
||||
| reportCallInDefaultInitializer | "none" | "none" | "none" |
|
||||
| reportImplicitStringConcatenation | "none" | "none" | "none" |
|
||||
| reportUndefinedVariable | "warning" | "error" | "error" |
|
||||
| reportUnboundVariable | "none" | "error" | "error" |
|
||||
| reportInvalidStubStatement | "none" | "none" | "error" |
|
||||
| reportIncompleteStub | "none" | "none" | "error" |
|
||||
| reportUnsupportedDunderAll | "none" | "warning" | "error" |
|
||||
| reportUnusedCallResult | "none" | "none" | "none" |
|
||||
| reportUnusedCoroutine | "none" | "error" | "error" |
|
||||
| reportUnusedExpression | "none" | "warning" | "error" |
|
||||
| reportMissingSuperCall | "none" | "none" | "none" |
|
||||
| reportPropertyTypeMismatch | "none" | "none" | "none" |
|
||||
| reportUninitializedInstanceVariable | "none" | "none" | "none" |
|
||||
| reportUnnecessaryTypeIgnoreComment | "none" | "none" | "none" |
|
||||
| reportMatchNotExhaustive | "none" | "none" | "error" |
|
||||
|
||||
|
||||
| reportUnusedCallResult | "none" | "none" | "none" |
|
||||
|
Loading…
Reference in New Issue
Block a user