forked from Unity-Technologies/Graphics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.repoconfig
49 lines (47 loc) · 1.92 KB
/
.repoconfig
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
[version]
repoconfig=7
minimum-unity-meta=47
[format]
path-ignore=<<EOT
# specially named folders that will be matched anywhere in a path (e.g. all files under any 'imgs' will be ignored)
(^|/)(
.github
|.yamato
|artifacts
|imgs
|com\.unity\.testing\.graphics-performance
|com\.unity\.testing\.visualeffectgraph
)(/|$)
|
# rooted folder paths
^(
Tools
|com\.unity\.template-hd # Todo: Exclude the Library folder of the checks only (keep checks for C# code files)
|com\.unity\.template-universal
|LocalTestProjects
|TestProjects\/.*\/Library
|TestProjects\/HDRP_DXR_Tests # Ideally all test projects would be included, but doing it wone by one is less overwhelming for teams
|TestProjects\/HDRP_PerformanceTests # New test projects folder will automatically be included in the formatting checks since they aren't in that list
|TestProjects\/HDRP_RuntimeTests
|TestProjects\/Shadergraph
|TestProjects\/ShadergraphUniversalStereo
|TestProjects\/SRP_SmokeTest
|TestProjects\/UniversalGfxTestStereo
|TestProjects\/VisualEffectGraph_HDRP
|TestProjects\/VisualEffectGraph_URP
)/|
# rooted file paths
^(
)$
EOT
[verify]
path=<<EOT
# general rule
^[:a-z0-9./_-]+$ # technically ':' not allowed, but let the global rule in format.ini do the more thorough test for c: style abs paths
# exceptions
|^com\.unity\.[^\/]*\/\w+~\/[^&]+$ # allows editor excluded folders, like Documentation~, for core package
|^com\.unity\.[^\/]*\/Packages\/com\.unity\.[^\/]*\/\w+~\/ # as above but for embedded packages
|^com\.unity\.[^\/]*\/[^@]+@\d+x\. # industry standard for icons with differnet resolution
|^TestProjects\/ # allow all names for test files
|^com\.unity\.testing\.hdrp # as above but for testing packages
EOT