Skip to content

Commit

Permalink
Fix bug introduced by bin/lint rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
krader1961 committed Jul 6, 2018
1 parent 8452f98 commit 5bc0225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .oclint
@@ -1,30 +1,18 @@
rules: rules:
rule-configurations: rule-configurations:
#
# This is the default value (as of the time I wrote this) but I'm making # This is the default value (as of the time I wrote this) but I'm making
# it explicit since it needs to agree with the value used by clang-format. # it explicit since it needs to agree with the value used by clang-format.
# Thus, if we ever change the style guide to allow longer or shorter lines # Thus, if we ever change the style guide to allow longer or shorter lines
# this should be changed (as well as the corresponding .clang-format file). # this should be changed (as well as the corresponding .clang-format file).
#
- key: LONG_LINE - key: LONG_LINE
value: 100 value: 100
#
# The default limit for the length of variable names is 20. Long names are # The default limit for the length of variable names is 20. Long names are
# problematic but twenty chars results in way too many errors. So increase # problematic but twenty chars results in way too many errors. So increase
# the limit to something more reasonable. # the limit to something more reasonable.
# #
- key: LONG_VARIABLE_NAME - key: LONG_VARIABLE_NAME
value: 30 value: 30
#
# This allows us to avoid peppering our code with inline comments such as
#
# scoped_lock locker(m_lock); //!OCLINT(side-effect)
#
# Specifically, this config key tells oclint that the named classes have
# RAII behavior so the local vars are actually used.
#
- 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 # We're slightly more persmissive regarding the total number of lines in a
# function. Default is 50. # function. Default is 50.
Expand Down
2 changes: 1 addition & 1 deletion bin/lint
Expand Up @@ -199,7 +199,7 @@ then
echo Running oclint echo Running oclint
echo ======================================== echo ========================================
# A copy of this config file has to be in the CWD (the Meson build dir). # A copy of this config file has to be in the CWD (the Meson build dir).
if [[ -f .oclint ]] if [[ -f ../.oclint ]]
then then
cp ../.oclint . cp ../.oclint .
fi fi
Expand Down

0 comments on commit 5bc0225

Please sign in to comment.