Skip to content

Commit 7017f4b

Browse files
committed
FIX: Sort collected files before checking to have repeatable output
1 parent 4348afd commit 7017f4b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

cpplint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6769,6 +6769,7 @@ def ParseArguments(args):
67696769
_SetFilters(filters)
67706770
_SetCountingStyle(counting_style)
67716771

6772+
filenames.sort()
67726773
return filenames
67736774

67746775
def _ExpandDirectories(filenames):

cpplint_clitest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def testSillySample(self):
167167
self.checkAllInFolder('./samples/silly-sample', 3)
168168

169169
def testBoostSample(self):
170-
self.checkAllInFolder('./samples/boost-sample', 3)
170+
self.checkAllInFolder('./samples/boost-sample', 4)
171171

172172
def testProtobufSample(self):
173173
self.checkAllInFolder('./samples/protobuf-sample', 1)

0 commit comments

Comments
 (0)