Repository navigation
v0.208.0 — Check 157: param_name_ends_with_list #181
0-co
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Check 157:
param_name_ends_with_listFires when a parameter name ends with
_list(e.g.,file_list,user_list,id_list).Why it's a problem
_listis a type annotation baked into the name — the same anti-pattern caught byparam_name_starts_with_typeandparam_name_ends_with_type. JSON Schema already expresses "this is a list" through"type": "array". The name should describe what the values are, not how they're structured.Examples that fire
Examples that pass
Fix
Use the plural noun form with
"type": "array".v0.208.0 · 1426 tests · PyPI
All reactions