-
-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathlinter-config.json
More file actions
70 lines (70 loc) · 1.7 KB
/
linter-config.json
File metadata and controls
70 lines (70 loc) · 1.7 KB
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
{
"toolsDir": ".linter/tools",
"modes": {
"hook": {
"fileSource": {
"export": "StagedFilesSource"
}
},
"gha": {
"fileSource": {
"export": "DiffBaseSource"
}
},
"manual": {
"fileSource": {
"export": "AllFilesSource"
}
}
},
"checks": [
{
"name": "CRLF",
"export": "CrlfCheck",
"modes": ["gha", "manual"],
"options": {
"textOnly": true,
"excludePaths": ["/third_party/", "/skymp5-scripts/", "/overlay_ports/rsm-bsa/", "/overlay_ports/libxml2/"]
}
},
{
"name": "Linelint",
"export": "LinelintCheck",
"modes": ["hook", "gha", "manual"],
"options": {
"textOnly": true,
"excludePaths": ["/third_party/", "/skymp5-scripts/", "/overlay_ports/rsm-bsa/", "/overlay_ports/libxml2/"]
}
},
{
"name": "ClangFormat",
"export": "ClangFormatCheck",
"modes": ["hook", "gha", "manual"],
"options": {
"extensions": [".cpp", ".h", ".hpp", ".cxx", ".cc"],
"excludePaths": ["/overlay_ports/"]
}
},
{
"name": "Server/Client Message Pairs",
"export": "PairedFilesCheck",
"modes": ["hook", "gha", "manual"],
"options": {
"dirs": [
{ "path": "skymp5-server/cpp/messages", "ext": ".h" },
{ "path": "skymp5-client/src/services/messages", "ext": ".ts" }
],
"exclude": [
"anyMessage.ts",
"refrIdMessageBase.ts",
"MessageBase.h",
"MessageSerializerFactory.cpp",
"MessageSerializerFactory.h",
"Messages.h",
"MinPacketId.h",
"MsgType.h"
]
}
}
]
}