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 e7cc802 commit 0cb9866Copy full SHA for 0cb9866
1 file changed
scripts/checks/check-filename-style.ps1
@@ -132,6 +132,12 @@ foreach ($file in $files) {
132
}
133
134
135
+ if ($baseName -notmatch '^[A-Z0-9]') {
136
+ Write-Host "[STYLE][ERROR] $relativePath : file name must start with a capital letter or digit."
137
+ Add-Count -Map $ruleCounts -Key "start_upper_or_digit"
138
+ $strictErrors++
139
+ }
140
+
141
if ($WarnOnUnderscore -and $baseName.Contains("_")) {
142
Write-Host "[STYLE][WARN] $relativePath : underscore in file name."
143
Add-Count -Map $ruleCounts -Key "underscore_warning"
@@ -143,6 +149,7 @@ foreach ($file in $files) {
149
Add-Count -Map $ruleCounts -Key "squashed_warning"
144
150
$warningCount++
145
151
152
146
153
147
154
148
155
Write-Host ""
0 commit comments