Graphics/.repoconfig

52 строки
2.5 KiB
Plaintext

[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