From d71c4d129c3e70aee33c1bb68ad79d54c5a6de6b Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 11 Jun 2017 17:14:02 -0700 Subject: [PATCH] customize some oclint thresholds Allow functions to be slightly longer than oclint thinks is appropriate by default. --- .oclint | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.oclint b/.oclint index 8bd3df49a..f0b2482e4 100644 --- a/.oclint +++ b/.oclint @@ -26,6 +26,16 @@ rule-configurations: - key: RAII_CUSTOM_CLASSES value: scoped_lock scoped_buffer_t builtin_commandline_scoped_transient_t scoped_push + # We're slightly more persmissive regarding the total number of lines in a + # function. Default is 50. + - key: LONG_METHOD + value: 60 + + # We're slightly more persmissive regarding the number of non-comment + # lines in a function. Default is 30. + - key: NCSS_METHOD + value: 40 + disable-rules: # # A few instances of "useless parentheses" errors are meaningful. Mostly