-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Platforms 2017-04-17
The clang_format.py and eslint.py scripts share a lot of code. These have large amounts of duplicate code including the Repo class for using git, and the parallel_process function.
This code should be de-duplicated and moved into separate python modules.
Proposed Layout:
buildscripts/linters/
- __init__.py
- git.py - Repo class and related functions
- parallel - Parallel Process function
An example of why code de-duplication is bad is that the Repo class has diverged between these two files, and they now have different features.
- is depended on by
-
SERVER-28308 Integrate python linting for IDL into Evergreen
- Closed