Page MenuHomeDevCentral

Don't shadow variables
ClosedPublic

Authored by dereckson on Mar 7 2022, 20:14.
Tags
None
Referenced Files
F21141398: D2577.diff
Sun, Jan 18, 01:25
F21141365: D2577.id6510.diff
Sun, Jan 18, 01:23
Unknown Object (File)
Fri, Jan 16, 13:00
Unknown Object (File)
Thu, Jan 15, 18:51
Unknown Object (File)
Thu, Jan 15, 11:43
Unknown Object (File)
Wed, Jan 14, 15:50
Unknown Object (File)
Wed, Jan 14, 05:35
Unknown Object (File)
Wed, Jan 14, 01:25
Subscribers
None

Details

Summary

Variables like id and list are built-ins.

A method argument can't share the same name with the procedural code.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Errorutils/dump-py-state.py:66E501flake8 E501
Advice_modules/opensearch.py:24F821flake8 F821
Advice_modules/opensearch.py:66F821flake8 F821
Advice_modules/opensearch.py:86F821flake8 F821
Unit
No Test Coverage
Branch
main
Build Status
Buildable 4038
Build 4290: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Mar 7 2022, 20:16
This revision was landed with ongoing or failed builds.Mar 7 2022, 20:16
This revision was automatically updated to reflect the committed changes.