-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67055/
-----------------------------------------------------------
(Updated May 14, 2018, 10:22 a.m.)
Review request for mesos, Andrew Schwartzmeyer, Benjamin Bannier, Eric Chung,
and Kevin Klues.
Changes
-------
Updated to most recent official version of cpplint + small patch for Python 3
while keeping Python 2 compatibility.
Summary (updated)
-----------------
Updated cpplint to be compatible with Python 3.
Bugs: MESOS-8770
https://issues.apache.org/jira/browse/MESOS-8770
Repository: mesos
Description (updated)
-------
Uses the version distributed by Google on Apr 15, 2018.
The diff includes the same patches as before.
Works with Python 2 and 3.
Diffs (updated)
-----
support/cpplint.patch 1b4d4ee62ccd40523fe9e8d6d476e1ee82e415bf
support/cpplint.py 1e5d96ff2be4b9e80848e11eb0a8f4b20b31c340
support/mesos-style.py 07074daa245ab503cf551201ccadeac8cc10206d
Diff: https://reviews.apache.org/r/67055/diff/3/
Changes: https://reviews.apache.org/r/67055/diff/2-3/
Testing (updated)
-------
Used `mesos-style.py`:
```
apache-mesos (cpplint) $ ./support/mesos-style.py
Checking 1289 C++ files
Total errors found: 0
Checking 4 JavaScript files
Total errors found: 0
Checking 47 Python files
py27-lint: commands succeeded
congratulations :)
py27-lint: commands succeeded
congratulations :)
Total errors found: 0
```
Updated `mesos-style.py` to use the new version of cpplint:
```
process = subprocess.Popen(
['python3', 'support/cpplint.py', '--quiet',
rules_filter] + source_paths,
stderr=subprocess.PIPE,
close_fds=True)
```
Run `mesos-style.py` again:
```
apache-mesos (cpplint) $ ./support/mesos-style.py
Checking 1289 C++ files
Total errors found: 0
Checking 4 JavaScript files
Total errors found: 0
Checking 47 Python files
py27-lint: commands succeeded
congratulations :)
py27-lint: commands succeeded
congratulations :)
Total errors found: 0
```
As we can see, the number of errors found by cpplint is the same as before.
I have also used cpplint separately by running `python3 support/cpplint` on a
few C++ files to see that it was running as expected.
Thanks,
Armand Grillet