mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
customize some oclint thresholds
Allow functions to be slightly longer than oclint thinks is appropriate by default.
This commit is contained in:
parent
955ae76cb3
commit
d71c4d129c
1 changed files with 10 additions and 0 deletions
10
.oclint
10
.oclint
|
@ -26,6 +26,16 @@ rule-configurations:
|
||||||
- key: RAII_CUSTOM_CLASSES
|
- key: RAII_CUSTOM_CLASSES
|
||||||
value: scoped_lock scoped_buffer_t builtin_commandline_scoped_transient_t scoped_push
|
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:
|
disable-rules:
|
||||||
#
|
#
|
||||||
# A few instances of "useless parentheses" errors are meaningful. Mostly
|
# A few instances of "useless parentheses" errors are meaningful. Mostly
|
||||||
|
|
Loading…
Reference in a new issue