String usage is detecting strings used inside list of dictionaries as being overused. For example in a django project, the following configuration will trigger the rule violation on NAME:
Additionally, there is a documentation mismatch. The docs for max-string-usageshere says the default is 5, but the documentation for the rule says it is 3 (which is also what I saw)
How it should be
Dictionary keys should not count towards string overuse
What's wrong
String usage is detecting strings used inside list of dictionaries as being overused. For example in a django project, the following configuration will trigger the rule violation on
NAME
:Additionally, there is a documentation mismatch. The docs for
max-string-usages
here says the default is5
, but the documentation for the rule says it is3
(which is also what I saw)How it should be
Dictionary keys should not count towards string overuse
Flake8 version and plugins
pip information
Hope you don't mind
pipenv graph
, as I don't use pip directly.OS information