We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the [W8105] attribute-deprecated verification, there's an error where the field name is mistakenly identified as a deprecated field attribute.
For example, in the following code:
class ExampleModel(models.Model): _name = "example.model" length = fields.Float()
The pre-commit check raises the following warning:
[W8105(attribute-deprecated), ExampleModel] attribute "length" deprecated
The text was updated successfully, but these errors were encountered:
You mustn't use length as a field name, or there will be problems in JS due to the reserved word in that language.
length
Sorry, something went wrong.
No branches or pull requests
In the [W8105] attribute-deprecated verification, there's an error where the field name is mistakenly identified as a deprecated field attribute.
For example, in the following code:
The pre-commit check raises the following warning:
[W8105(attribute-deprecated), ExampleModel] attribute "length" deprecated
The text was updated successfully, but these errors were encountered: