mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 14:44:40 +00:00
A common pattern in the previous code was goto/return/throw if a condition is true, else goto/return/throw something different. The new pattern uses the fact that the second goto/return/throw is only reachable when the first goto/return/throw is not called. Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
19 lines
803 B
YAML
19 lines
803 B
YAML
Checks:
|
|
-*,
|
|
clang-analyzer-*,
|
|
cppcoreguidelines-special-member-functions,
|
|
readability-*,
|
|
-readability-function-cognitive-complexity,
|
|
|
|
CheckOptions:
|
|
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
|
|
- { key: readability-identifier-naming.ConstexprVariableCase, value: lower_case }
|
|
- { key: readability-identifier-naming.FunctionCase, value: lower_case }
|
|
- { key: readability-identifier-naming.LocalVariableIgnoredRegexp, value: "^[a-z][a-z_]+" }
|
|
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
|
|
- { key: readability-identifier-naming.PrivateMemberPrefix, value: m }
|
|
- { key: readability-identifier-naming.StructCase, value: lower_case }
|
|
- { key: readability-identifier-naming.VariableCase, value: camelBack }
|
|
|
|
HeaderFilterRegex: '.*'
|