-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.arclint
163 lines (163 loc) · 5.48 KB
/
.arclint
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"exclude": [
"([.]l$)",
"(Makefile$)",
"(src/yb/common/ql_type[.]cc$)",
"(src/yb/gutil/valgrind[.]h$)",
"([.]ipynb$)",
"([.]sql$)",
"([.]txt$)",
"(^src/odyssey/.*$)",
"(^src/yb/integration-tests/upgrade-tests/builds.xml$)",
"(^[.]gitmodules$)",
"(^managed/src/main/resources/alert/alert_templates[.]yml$)",
"(^managed/src/main/resources/alert/.*[.]template$)",
"(^managed/src/main/resources/v1[.]routes$)",
"(^managed/src/main/public/swagger-ui/)",
"(^managed/src/main/resources/swagger[.]json$)",
"(^managed/src/main/resources/swagger-strict[.]json$)",
"(^managed/src/main/resources/logback.*[.]xml$)",
"(^managed/src/test/resources/alert/test_alert_definition[.]yml$)",
"(^managed/src/test/resources/audit/.*[.]yml$)",
"(^managed/src/test/resources/metric/targets_.*[.]json$)",
"(^managed/src/test/resources/backup/ybc_success_file_with_index_tables.json$)",
"(^managed/src/test/resources/logback.*[.]xml$)",
"(^managed/build[.]sbt$)",
"(^managed/src/main/resources/aws_pricing/.*$)",
"(^python/yugabyte/test_data/.*[.](log|out|json)$)",
"(^managed/src/main/resources/metric/Dashboard[.]json$)",
"(^managed/src/main/resources/metric/recording_rules[.]yml$)",
"(^managed/devops/replicated[.]yml$)",
"(^managed/devops/roles/.*$)",
"(^python/yb/py[.]typed$)",
"(^managed/RUNTIME-FLAGS[.]md$)",
"(^managed/yba-cli/docs/.*)",
"(^managed/yba-cli/.*/LICENSE$)",
"(^managed/yba-cli/NOTICE$)",
"(^managed/yba-cli/internal/formatter/tabwriter/*)",
"(^managed/yba-cli/internal/formatter/templates/*)",
"(^managed/yba-cli/templates/*)",
"(^[.]clang-tidy)",
"(.*/py.typed)",
"(^troubleshoot/backend/gradlew)",
"(^troubleshoot/backend/gradlew[.]bat)",
"(^troubleshoot/backend/build.gradle.kts)",
"(^troubleshoot/backend/.*/application[.]properties)",
"(^troubleshoot/backend/src/main/resources/.*)",
"(^troubleshoot/backend/src/test/resources/.*)",
"(^managed/src/main/resources/gflag_groups/)",
"(^managed/src/main/resources/openapi/)",
"(^managed/src/main/resources/openapi_templates/)",
"(^yb_release_manifest.json$)",
"(^managed/client/java/.*/pom.xml)"
],
"linters": {
"go-files": {
"type": "golint",
"include": "(^managed/yba-cli/.*[.]go$)"
},
"go-files-length": {
"type": "text",
"text.max-line-length": 100,
"include": "(^managed/yba-cli/.*[.]go$)",
"severity": {
"2": "disabled"
}
},
"script-and-regex.script": {
"type": "script-and-regex",
"include": "(^managed/.*[.]java$)",
"script-and-regex.script":
"managed/lint/lint-java.sh",
"script-and-regex.regex":
"/(?P<message>.*)/is"
},
"text": {
"type": "text",
"text.max-line-length": 100,
"exclude": [
"(^pg15_tests/.*[.](sh|tsv)$)",
"(^managed/.*[.]go$)",
"(^managed/.*/go[.]mod)",
"(^managed/.*/go[.]sum)",
"(^managed/yba-cli/GNUmakefile)",
"(^managed/ui/)",
"(^troubleshoot/troubleshooting-framework-ui/)",
"(^yugabyted-ui/.*/go[.]mod)",
"(^yugabyted-ui/.*/go[.]sum)",
"(^yugabyted-ui/ui/src/api/)",
"(^yugabyted-ui/ui/src/assets/)",
"(^yugabyted-ui/ui/src/translations/)",
"(^thirdparty/thirdparty_src_checksums[.]txt$)",
"(^java/yb-client/src/test/java/org/yb/client/TestYBClient[.]java$)",
"(^cmake_modules/cotire[.]cmake$)",
"(^cmake_modules/FindBoost[.]cmake$)",
"(^java/pom[.]xml$)",
"(^.*[.]patch$)",
"(java/yb-cdc/pom.xml)",
"(^[.]fossa[.]yml$)",
"(^managed/.*[.]conf)",
"(^src/postgres/)",
"(^[.]gitignore$)",
"(^.*[.]svg$)",
"(^.*[.]md$)",
"(^java/yb-pgsql/src/test/resources/expected/)"
]
},
"pycodestyle": {
"type": "pep8",
"include": "([.]py$)",
"exclude": [
"(^[.]ycm_extra_conf[.]py$)",
"(^src/postgres/)",
"(^thirdparty/)"
],
"bin": "pycodestyle",
"flags": ["--max-line-length=100"]
},
"googlecpplint": {
"type": "googlecpplint",
"exclude": [
"(^src/postgres/)",
"(^src/yb/yql/cql/ql/kwlist[.]h$)",
"(^src/yb/gutil/linux_syscall_support[.]h$)",
"(^src/yb/gutil/cycleclock-inl[.]h$)",
"(^src/yb/gutil/spinlock_linux-inl[.]h$)",
"(^src/yb/gutil/port[.]h$)",
"(^src/yb/rocksdb/util/murmurhash[.]cc$)"
],
"include": [
"([.]cpp$)",
"([.]cc$)",
"([.]c$)",
"([.]hpp$)",
"([.]h$)"
],
"cpplint.header_guard_root_dir": "src",
"cpplint.max_line_length": 100,
"severity.rules": {
"(^readability/inheritance$)": "disabled",
"(^readability/todo$)": "disabled",
"(^runtime/string$)": "disabled",
"(^whitespace/parens$)": "disabled",
"(^whitespace/blank_line$)": "disabled",
"(^build/include_what_you_use$)": "disabled",
"(^build/c[+][+]11$)": "disabled",
"(.*)": "error"
}
},
"postgres": {
"type": "script-and-regex",
"exclude": [
"(^src/yb/)"
],
"include": [
"([.]c$)",
"([.]h$)"
],
"script-and-regex.script": "src/postgres/ybsimplelint.sh",
"script-and-regex.regex":
"/^(?P<severity>\\w+):(?P<message>\\w+):(?P<line>\\d+):(?P<original>.*)/m"
}
}
}