Skip to content

Commit e64fb67

Browse files
committed
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
1 parent f5e33ae commit e64fb67

File tree

536 files changed

+6307
-5596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

536 files changed

+6307
-5596
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ repos:
44
rev: v4.1.0
55
hooks:
66
- id: check-ast
7-
- id: check-byte-order-marker
87
- id: check-case-conflict
98
- id: check-docstring-first
109
- id: check-executables-have-shebangs

00_Utilities/DotnetUtils/.editorconfig

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ dotnet_naming_rule.private_members_should_be_pascal_case.style = camel_case
6565

6666
dotnet_naming_symbols.interface.applicable_kinds = interface
6767
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
68-
dotnet_naming_symbols.interface.required_modifiers =
68+
dotnet_naming_symbols.interface.required_modifiers =
6969

7070
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum, delegate
7171
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
72-
dotnet_naming_symbols.types.required_modifiers =
72+
dotnet_naming_symbols.types.required_modifiers =
7373

7474
dotnet_naming_symbols.non_private_members.applicable_kinds = property, method, field, event
7575
dotnet_naming_symbols.non_private_members.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
@@ -80,19 +80,19 @@ dotnet_naming_symbols.private_members.applicable_accessibilities = private
8080

8181
# Naming styles
8282

83-
dotnet_naming_style.pascal_case.required_prefix =
84-
dotnet_naming_style.pascal_case.required_suffix =
85-
dotnet_naming_style.pascal_case.word_separator =
83+
dotnet_naming_style.pascal_case.required_prefix =
84+
dotnet_naming_style.pascal_case.required_suffix =
85+
dotnet_naming_style.pascal_case.word_separator =
8686
dotnet_naming_style.pascal_case.capitalization = pascal_case
8787

8888
dotnet_naming_style.begins_with_i.required_prefix = I
89-
dotnet_naming_style.begins_with_i.required_suffix =
90-
dotnet_naming_style.begins_with_i.word_separator =
89+
dotnet_naming_style.begins_with_i.required_suffix =
90+
dotnet_naming_style.begins_with_i.word_separator =
9191
dotnet_naming_style.begins_with_i.capitalization = pascal_case
9292

93-
dotnet_naming_style.camel_case.required_prefix =
94-
dotnet_naming_style.camel_case.required_suffix =
95-
dotnet_naming_style.camel_case.word_separator =
93+
dotnet_naming_style.camel_case.required_prefix =
94+
dotnet_naming_style.camel_case.required_suffix =
95+
dotnet_naming_style.camel_case.word_separator =
9696
dotnet_naming_style.camel_case.capitalization = camel_case
9797

9898

00_Utilities/DotnetUtils/DotnetUtils/PortInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public record PortInfo(
99
string LangPath, string Lang, string Ext, string ProjExt,
1010
string[] CodeFiles, string[] Slns, string[] Projs
1111
) {
12-
12+
1313
private static readonly EnumerationOptions enumerationOptions = new() {
1414
RecurseSubdirectories = true,
1515
MatchType = MatchType.Simple,
@@ -34,7 +34,7 @@ public record PortInfo(
3434
int.TryParse(parts[0], out var n) && n > 0 ? // ignore utilities folder
3535
n :
3636
(int?)null,
37-
specialGameNames.TryGetValue(parts[1], out var specialName) ?
37+
specialGameNames.TryGetValue(parts[1], out var specialName) ?
3838
specialName :
3939
parts[1].Replace("_", "").Replace("-", "")
4040
);

00_Utilities/DotnetUtils/DotnetUtils/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void generateMissingSlns() {
180180
void generateMissingProjs() {
181181
foreach (var item in infos.Where(x => x.Projs.None())) {
182182
// We can't use the dotnet command to create a new project using the built-in console template, because part of that template
183-
// is a Program.cs / Program.vb file. If there already are code files, there's no need to add a new empty one; and
183+
// is a Program.cs / Program.vb file. If there already are code files, there's no need to add a new empty one; and
184184
// if there's already such a file, it might try to overwrite it.
185185

186186
var projText = item.Lang switch {

00_Utilities/bas2perl.pl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
my $Pedantic= 0;
99
my $Indent= 0;
1010

11-
my %Vars; # num | str | anm | ast
11+
my %Vars; # num | str | anm | ast
1212
my @Data;
1313
my %Code;
1414
open(FH, $File);
@@ -278,7 +278,7 @@ sub PRINT {
278278
push @Out, $Par;
279279
}
280280

281-
my $Out= join(". ", @Out);
281+
my $Out= join(". ", @Out);
282282
if ($Enter) { $Out.= qq|. "\\n"|; }
283283
return "print ".$Out;
284284
}
@@ -347,7 +347,7 @@ sub FORMULA {
347347
if ($Vars{$Key}!~ /^a/) { next; }
348348
$Str=~ s/\$$Key\((.*?)\)/\$$Key\[$1\]/g;
349349
}
350-
350+
351351
if ($Cond==1) {
352352
$Str=~ s/<>/ ne /g;
353353
$Str=~ s/=/ eq /g;
@@ -357,7 +357,7 @@ sub FORMULA {
357357

358358

359359
sub SMARPLIT {
360-
my ($Str, $Sep, $Nin)= @_;
360+
my ($Str, $Sep, $Nin)= @_;
361361
my @Parts;
362362
my $Text= "";
363363
my $Flag= 0;
@@ -373,8 +373,5 @@ sub SMARPLIT {
373373
$Text.= $Char;
374374
}
375375
if ($Text) { push @Parts, &TRIM($Text); }
376-
return @Parts;
376+
return @Parts;
377377
}
378-
379-
380-

00_Utilities/find-unimplemented.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* Program to show unimplemented games by language, optionally filtered by
2+
* Program to show unimplemented games by language, optionally filtered by
33
* language
4-
*
4+
*
55
* Usage: node find-unimplemented.js [[[lang1] lang2] ...]
6-
*
6+
*
77
* Adapted from find-missing-implementtion.js
88
*/
99

00_Utilities/jvmTestUtils/kotlin/test/ConsoleTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ abstract class ConsoleTest {
3434

3535
private fun String.trimWhiteSpace() =
3636
replace("[\\s]+".toRegex(), " ")
37-
}
37+
}

00_Utilities/yatol.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
foreach my $Dir (@Langs) {
2121
printf("%$Tab\s", $Dir);
22-
}
22+
}
2323
print "\n";
2424

2525
my $Count;
@@ -39,7 +39,7 @@
3939
if ($Ret>1) { printf("%$Tab\s", "YES"); $Sum{$Dir}++; }
4040
else { printf("%$Tab\s", " ");}
4141
}
42-
print "\n";
42+
print "\n";
4343
}
4444

4545

@@ -57,4 +57,3 @@
5757
printf("%$Tab\s", "$Per");
5858
}
5959
print "\n";
60-

01_Acey_Ducey/csharp/GameState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace AceyDucey
99
/// </summary>
1010
internal class GameState
1111
{
12-
12+
1313
/// <summary>
1414
/// How much money does the player have at the moment?
1515
/// </summary>

01_Acey_Ducey/d/aceyducey.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void main()
5555
{
5656
writeln("YOU WIN!!!");
5757
cash += bet;
58-
}
58+
}
5959
else
6060
{
6161
writeln("Sorry, you lose.");

0 commit comments

Comments
 (0)