Show More
@@ -611,7 +611,14 b' def has_pylint():' | |||||
611 | def has_clang_format(): |
|
611 | def has_clang_format(): | |
612 | m = matchoutput('clang-format --version', br'clang-format version (\d+)') |
|
612 | m = matchoutput('clang-format --version', br'clang-format version (\d+)') | |
613 | # style changed somewhere between 10.x and 11.x |
|
613 | # style changed somewhere between 10.x and 11.x | |
614 | return m and int(m.group(1)) >= 11 |
|
614 | if m: | |
|
615 | return int(m.group(1)) >= 11 | |||
|
616 | # Assist Googler contributors, they have a centrally-maintained version of | |||
|
617 | # clang-format that is generally very fresh, but unlike most builds (both | |||
|
618 | # official and unofficial), it does *not* include a version number. | |||
|
619 | return matchoutput( | |||
|
620 | 'clang-format --version', br'clang-format .*google3-trunk \([0-9a-f]+\)' | |||
|
621 | ) | |||
615 |
|
622 | |||
616 |
|
623 | |||
617 | @check("jshint", "JSHint static code analysis tool") |
|
624 | @check("jshint", "JSHint static code analysis tool") |
General Comments 0
You need to be logged in to leave comments.
Login now