We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cb9866 commit 07a0c70Copy full SHA for 07a0c70
scripts/checks/check-filename-style.ps1
@@ -103,6 +103,12 @@ foreach ($file in $files) {
103
$relativePath = Get-RepoRelativePath -Path $file
104
$baseName = [System.IO.Path]::GetFileNameWithoutExtension($file)
105
106
+ if ($relativePath.Length -ge 180) {
107
+ Write-Host "[STYLE][ERROR] $relativePath : path is too long ($($relativePath.Length) chars). Keep under 180 to avoid Windows unzip errors."
108
+ Add-Count -Map $ruleCounts -Key "path_too_long"
109
+ $strictErrors++
110
+ }
111
+
112
if ($relativePath -match '[^\x00-\x7F]') {
113
Write-Host "[STYLE][ERROR] $relativePath : non-ASCII character in path."
114
Add-Count -Map $ruleCounts -Key "non_ascii_path"
0 commit comments