From 8754f776d8e6c3a1716be8ba5e1da80cdf47bcfa Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Tue, 11 Jul 2017 17:53:43 -0700 Subject: [PATCH] fix oclint NPATH_COMPLEXITY custom threshold --- .oclint | 4 ++-- src/builtin_argparse.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.oclint b/.oclint index 7b4784e42..36d74b3c9 100644 --- a/.oclint +++ b/.oclint @@ -44,8 +44,8 @@ rule-configurations: value: 14 # We're willing to allow slighly more execution paths through a function. - # Default is 300. - - key: HighNPathComplexity + # Default is 200. + - key: NPATH_COMPLEXITY value: 300 disable-rules: diff --git a/src/builtin_argparse.cpp b/src/builtin_argparse.cpp index 0cd1098fd..5bb5a14e6 100644 --- a/src/builtin_argparse.cpp +++ b/src/builtin_argparse.cpp @@ -441,6 +441,7 @@ static int argparse_parse_args(argparse_cmd_opts_t &opts, const wcstring_list_t streams.err.append_format(BUILTIN_ERR_MAX_ARG_COUNT1, cmd, opts.max_args, opts.argv.size()); return STATUS_CMD_ERROR; } + return STATUS_CMD_OK; }