forked from Unity-Technologies/Graphics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.repoconfig
51 lines (49 loc) · 2.51 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=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
|Tests\/SRPTests\/Projects\/.*\/Library
|Tests\/SRPTests\/Projects\/HDRP_DXR_Tests # Ideally all test projects would be included, but doing it wone by one is less overwhelming for teams
|Tests\/SRPTests\/Projects\/HDRP_PerformanceTests # New test projects folder will automatically be included in the formatting checks since they aren't in that list
|Tests\/SRPTests\/Projects\/HDRP_RuntimeTests
|Tests\/SRPTests\/Projects\/Shadergraph
|Tests\/SRPTests\/Projects\/ShadergraphUniversalStereo
|Tests\/SRPTests\/Projects\/SRP_SmokeTest
|Tests\/SRPTests\/Projects\/UniversalGfxTestStereo
|Tests\/SRPTests\/Projects\/VisualEffectGraph_HDRP
|Tests\/SRPTests\/Projects\/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 different resolution
|^(Packages)\/com\.unity\.[^\/]*\/\w+~\/ # allows editor excluded folders, like Documentation~, for core package
|^(Packages)\/com\.unity\.[^\/]*\/Packages\/com\.unity\.[^\/]*\/\w+~\/ # as above but for embedded packages
|^(Packages)\/com\.unity\.[^\/]*\/Third\sParty\sNotices\..* # allows Spaces in names for Third Party Notices.md
|^(Packages)\/com\.unity\.[^\/]*\/[^@]+@\d+x\. # industry standard for icons with different resolutions
|^Tests\/SRPTests\/ # allow all names for test files
EOT