forked from Unity-Technologies/Graphics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.repoconfig
51 lines (49 loc) · 1.9 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
50
51
[version]
repoconfig=5
[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\.hdrp
|com\.unity\.testing\.visualeffectgraph
)(/|$)
|
# rooted folder paths
^(
Tools
|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_HybridTests # So remove the test projects one by one as they are progressively being reformatted
|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\/HDRP_Tests
|TestProjects\/Shadergraph
|TestProjects\/ShadergraphUniversalStereo
|TestProjects\/SRP_SmokeTest
|TestProjects\/UniversalGfxTestStereo
|TestProjects\/UniversalHybridTest
|TestProjects\/UniversalGraphicsTest_2D
|TestProjects\/UniversalGraphicsTest_PostPro
|TestProjects\/UniversalGraphicsTest_Terrain
|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
EOT