Guarantee a deterministic order when processing files for directory arguments. #9943
Labels
Enhancement ✨
Improvement to a component
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
While trying to investigate the primer indeterminacy issues we are seeing in PR, one thing I observed is that we don't impose any order in which we process files or directories when we call
os.walk
to discover files to process here. AFAIK the order of directories for files is not guaranteed inos.walk
. This may cause inconsistent no-name-in-module orimport-error
due to name shadowing issues during different runs. I think we need to guarantee the order of filenames and directories that are processed. This is not the source of the primer issue as far as I can see but we should fix this anyway. Thoughts on this?Configuration
No response
Command used
Pylint output
None
Expected behavior
Provide guaranteed order of processing files when a directory is passed.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: