Changeset View
Changeset View
Standalone View
Standalone View
arcanist/linter/CppCheckLinter.php
Show All 19 Lines | final class CppCheckLinter extends ArcanistExternalLinter { | ||||
// phpcs:disable Generic.Files.LineLength.MaxExceeded | // phpcs:disable Generic.Files.LineLength.MaxExceeded | ||||
/* Associative array of <file => [messages]> to whitelist. */ | /* Associative array of <file => [messages]> to whitelist. */ | ||||
const CPPCHECK_IGNORED_WARNINGS = array( | const CPPCHECK_IGNORED_WARNINGS = array( | ||||
"src/arith_uint256.h" => array( | "src/arith_uint256.h" => array( | ||||
"Class 'arith_uint256' has a constructor with 1 argument that is not explicit.", | "Class 'arith_uint256' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'base_uint < 256 >' has a constructor with 1 argument that is not explicit.", | "Class 'base_uint < 256 >' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'base_uint' has a constructor with 1 argument that is not explicit.", | "Class 'base_uint' has a constructor with 1 argument that is not explicit.", | ||||
), | ), | ||||
"src/bench/prevector.cpp" => array( | |||||
// Remove this once this false positive is fixed in cppcheck | |||||
"syntax error", | |||||
), | |||||
"src/coins.h" => array( | "src/coins.h" => array( | ||||
"Class 'CCoinsViewBacked' has a constructor with 1 argument that is not explicit.", | "Class 'CCoinsViewBacked' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'CCoinsViewCache' has a constructor with 1 argument that is not explicit.", | "Class 'CCoinsViewCache' has a constructor with 1 argument that is not explicit.", | ||||
"Class 'CCoinsViewCursor' has a constructor with 1 argument that is not explicit.", | "Class 'CCoinsViewCursor' has a constructor with 1 argument that is not explicit.", | ||||
), | ), | ||||
"src/cuckoocache.h" => array( | "src/cuckoocache.h" => array( | ||||
"Struct 'KeyOnly' has a constructor with 1 argument that is not explicit.", | "Struct 'KeyOnly' has a constructor with 1 argument that is not explicit.", | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | "src/test/checkqueue_tests.cpp" => array( | ||||
"Struct 'FailingCheck' has a constructor with 1 argument that is not explicit.", | "Struct 'FailingCheck' has a constructor with 1 argument that is not explicit.", | ||||
"Struct 'MemoryCheck' has a constructor with 1 argument that is not explicit.", | "Struct 'MemoryCheck' has a constructor with 1 argument that is not explicit.", | ||||
"Struct 'UniqueCheck' has a constructor with 1 argument that is not explicit.", | "Struct 'UniqueCheck' has a constructor with 1 argument that is not explicit.", | ||||
), | ), | ||||
"src/test/cuckoocache_tests.cpp" => array( | "src/test/cuckoocache_tests.cpp" => array( | ||||
"Struct 'KeyType' has a constructor with 1 argument that is not explicit.", | "Struct 'KeyType' has a constructor with 1 argument that is not explicit.", | ||||
"Struct 'TestMapElement' has a constructor with 1 argument that is not explicit." | "Struct 'TestMapElement' has a constructor with 1 argument that is not explicit." | ||||
), | ), | ||||
"src/test/prevector_tests.cpp" => array( | |||||
// Remove this once this false positive is fixed in cppcheck | |||||
"syntax error", | |||||
), | |||||
"src/wallet/db.h" => array( | "src/wallet/db.h" => array( | ||||
"Class 'BerkeleyEnvironment' has a constructor with 1 argument that is not explicit.", | "Class 'BerkeleyEnvironment' has a constructor with 1 argument that is not explicit.", | ||||
), | ), | ||||
); | ); | ||||
// phpcs:enable | // phpcs:enable | ||||
const CPPCHECK_OPTIONS = array( | const CPPCHECK_OPTIONS = array( | ||||
'-j2', | '-j2', | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |