Summary: After we reached a consensus on code format, which follows exactly Google's coding style, a natural follow-up is to have a style checker that can handle stuffs beyond format. Google already has a powerful style checker "cpplint.py" and, luckily, phabricator already provides the built-in linter for it! Next time with "arc lint" most style inconsistency will be detected (but will not be fixed). Also I copied cpplint.py to linters directory, which is mostly because we may need the flexibility to make some modifications on it for our own need. Test Plan: ran arc lint table/block_based_table_builder.cc to see the amazing results. Reviewers: haobo, sdong, igor, dhruba Reviewed By: haobo CC: leveldb Differential Revision: https://reviews.facebook.net/D15369main
parent
fb01755aa4
commit
d0458469c8
@ -1,10 +1,11 @@ |
||||
{ |
||||
"project_id" : "leveldb", |
||||
"project_id" : "rocksdb", |
||||
"conduit_uri" : "https://reviews.facebook.net/", |
||||
"copyright_holder" : "", |
||||
"copyright_holder" : "Facebook", |
||||
"load" : [ |
||||
"linters/src/" |
||||
"linters" |
||||
], |
||||
"lint.engine" : "FacebookFbcodeLintEngine", |
||||
"lint.engine.single.linter" : "FbcodeCppLinter" |
||||
"lint.engine.single.linter" : "FbcodeCppLinter", |
||||
"lint.cpplint.prefix" : "linters" |
||||
} |
||||
|
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@ |
||||
{"__symbol_cache_version__":8,"b937ad5f80a8bd1156038b730ff56ec5":{"have":{"class":{"FacebookFbcodeLintEngine":71}},"need":{"class":{"ArcanistLintEngine":104,"ArcanistGeneratedLinter":488,"ArcanistNoLintLinter":577,"ArcanistTextLinter":658,"ArcanistPEP8Linter":1227,"FbcodeCppLinter":1715,"PfffCppLinter":1759,"ArcanistSpellingLinter":1875,"ArcanistFilenameLinter":4207,"Filesystem":357,"ArcanistLintSeverity":778}},"xmap":{"FacebookFbcodeLintEngine":["ArcanistLintEngine"]}},"02e2a613e371424b2108d2d6cb849d39":{"have":{"class":{"PfffCppLinter":71}},"need":{"function":{"Futures":875},"class":{"ArcanistLinter":93,"ExecFuture":756,"ArcanistLintMessage":1270,"ArcanistLintSeverity":1607}},"xmap":{"PfffCppLinter":["ArcanistLinter"]}},"4443484928afb005f585843d07b04190":{"have":{"class":{"FbcodeCppLinter":13}},"need":{"function":{"Futures":1265},"class":{"ArcanistLinter":37,"ExecFuture":934,"ArcanistLintSeverity":1729}},"xmap":{"FbcodeCppLinter":["ArcanistLinter"]}}} |
Loading…
Reference in new issue