forked from bloomberg/bde_verify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bde_verify.cfg
80 lines (62 loc) · 2.5 KB
/
bde_verify.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This is the default configuration file for bde_verify used at Bloomberg LP.
namespace BloombergLP
# This string in a file indicates that the file is part of the enterprise.
set enterprise Bloomberg
# Maximum number of lines and statements in an inline function.
set max_inline_lines 20
# Don't warn about scope of global definitions in main file.
set main_namespace_check off
# Don't warn about scope of global definitions in these packages.
set global_packages bslmf bslstl
# Don't warn about global definitions in these namespaces.
set standard_namespaces bsl std BloombergLP::bslstl native_std
# Don't warn about these global names at all.
set global_names hashAppend
# Allow imperfect banner centering.
set banner_slack 5
# Allowed number of non-noise words between 'specified' and parameter in
# function contract.
set word_slack 3
# Allowed number of available positions at end of comment line which will not
# draw a "can wrap" warning from the next line.
set wrap_slack 1
# If a word appears at least this many times, assume it's spelled correctly.
set spelled_ok_count 3
# These words are to be considered spelled correctly
# set dictionary
# These are recognized abbreviations for use in variable names.
# set variable_abbreviations
# Redundant include guards are no longer required.
suppress SEG03 *
# Don't warn about likely correct uses of managed pointer.
suppress MPOK1 *
suppress MPOK2 *
suppress MPOK3 *
# These are specialized checks that are not problems for general code.
suppress AU01 *
check array-initialization off
check boolcomparison off
check constant-return off
check dump-ast off
check move-contract off
check refactor off
check refactor-config off
check bsl-overrides-std off
set bslovrstd_extcpp off
set bslovrstd_guard off
check comparison-order off
## ----------------------------------------------------------------------------
## Copyright (C) 2014 Bloomberg Finance L.P.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ----------------------------- END-OF-FILE ----------------------------------