forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.arclint
103 lines (103 loc) · 3.02 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
{
"exclude": [
"(\\.l$)",
"(Makefile$)",
"(src/yb/common/ql_type.cc$)",
"(src/yb/gutil/valgrind.h$)",
"(\\.ipynb$)",
"(\\.sql$)",
"(\\.txt$)",
"(^src/postgres/.*$)",
"(^[.]gitmodules$)",
"(^managed/src/main/resources/v1.routes$)",
"(^managed/src/main/public/swagger-ui/)",
"(^managed/src/main/resources/swagger.json$)",
"(^managed/build.sbt$)",
"(^managed/src/main/resources/aws_pricing/.*$)",
"(^python/yb/test_data/.*[.](log|out)$)"
],
"linters": {
"go-files": {
"type": "golint",
"include": "(^managed/.*\\.go$)",
"exclude": [
"(^managed/.*/third-party$)",
"(^managed/.*/generated$)"
]
},
"go-files-length": {
"type": "text",
"text.max-line-length": 100,
"include": "(^managed/.*\\.go$)",
"severity": {
"2": "disabled"
}
},
"script-and-regex.script": {
"type": "script-and-regex",
"include": "(^managed/.*\\.java$)",
"script-and-regex.script":
"cd managed; sbt javafmtCheckAll; echo ",
"script-and-regex.regex":
"/^.*(?P<error>javafmtCheck).*(?P<message>Unformatted.*javafmt)\\:\\ (?P<file>.*)$/m"
},
"text": {
"type": "text",
"text.max-line-length": 100,
"exclude": [
"(^managed/.*\\.go$)",
"(^managed/.*/go.mod)",
"(^managed/.*/go.sum)",
"(^managed/ui/)",
"(^thirdparty/thirdparty_src_checksums[.]txt$)",
"(^java/yb-client/src/test/java/org/yb/client/TestYBClient[.]java$)",
"(^cmake_modules/cotire[.]cmake$)",
"(^cmake_modules/FindBoost[.]cmake$)",
"(^README[.]md$)",
"(^java/pom[.]xml$)",
"(^.*[.]patch$)",
"(java/yb-cdc/pom.xml)",
"(java/yb-cdc/README.md)",
"(^docs/.*[.]md$)",
"(^[.]fossa[.]yml$)"
]
},
"pycodestyle": {
"type": "pep8",
"include": "(\\.py$)",
"exclude": "(^thirdparty/|^[.]ycm_extra_conf[.]py$)",
"bin": "pycodestyle",
"flags": ["--max-line-length=100"]
},
"googlecpplint": {
"type": "googlecpplint",
"exclude": [
"(^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"
}
}
}
}