Skip to content

Commit 4e6d94b

Browse files
committed
Kotlin: reinstante trailing whitespace
1 parent c2e1ae3 commit 4e6d94b

File tree

3 files changed

+156
-156
lines changed

3 files changed

+156
-156
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ repos:
77
rev: v3.2.0
88
hooks:
99
- id: trailing-whitespace
10-
exclude: /test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
10+
exclude: /test([^/]*)/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
1111
- id: end-of-file-fixer
12-
exclude: Cargo.lock$|/test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
12+
exclude: Cargo.lock$|/test([^/]*)/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
1313

1414
- repo: https://github.com/pre-commit/mirrors-clang-format
1515
rev: v17.0.6

java/ql/test-kotlin2/library-tests/classes/PrintAst.expected

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classes.kt:
2424
# 162| 0: [BlockStmt] { ... }
2525
# 162| 0: [LocalTypeDeclStmt] class ...
2626
# 162| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
27-
# 162| 1: [Constructor]
27+
# 162| 1: [Constructor]
2828
# 162| 5: [BlockStmt] { ... }
2929
# 162| 0: [SuperConstructorInvocationStmt] super(...)
3030
# 162| 1: [BlockStmt] { ... }
@@ -272,7 +272,7 @@ classes.kt:
272272
# 66| 0: [BlockStmt] { ... }
273273
# 66| 0: [LocalTypeDeclStmt] class ...
274274
# 66| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
275-
# 66| 1: [Constructor]
275+
# 66| 1: [Constructor]
276276
# 66| 5: [BlockStmt] { ... }
277277
# 66| 0: [SuperConstructorInvocationStmt] super(...)
278278
# 66| 1: [BlockStmt] { ... }
@@ -286,7 +286,7 @@ classes.kt:
286286
# 68| 0: [BlockStmt] { ... }
287287
# 68| 0: [LocalTypeDeclStmt] class ...
288288
# 68| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
289-
# 68| 1: [Constructor]
289+
# 68| 1: [Constructor]
290290
# 68| 5: [BlockStmt] { ... }
291291
# 68| 0: [SuperConstructorInvocationStmt] super(...)
292292
# 68| 1: [BlockStmt] { ... }
@@ -301,7 +301,7 @@ classes.kt:
301301
# 72| 0: [BlockStmt] { ... }
302302
# 72| 0: [LocalTypeDeclStmt] class ...
303303
# 72| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
304-
# 72| 1: [Constructor]
304+
# 72| 1: [Constructor]
305305
# 72| 5: [BlockStmt] { ... }
306306
# 72| 0: [SuperConstructorInvocationStmt] super(...)
307307
# 72| 1: [BlockStmt] { ... }
@@ -325,7 +325,7 @@ classes.kt:
325325
# 75| 0: [BlockStmt] { ... }
326326
# 75| 0: [LocalTypeDeclStmt] class ...
327327
# 75| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
328-
# 75| 1: [Constructor]
328+
# 75| 1: [Constructor]
329329
# 75| 5: [BlockStmt] { ... }
330330
# 75| 0: [SuperConstructorInvocationStmt] super(...)
331331
# 75| 1: [BlockStmt] { ... }
@@ -343,7 +343,7 @@ classes.kt:
343343
# 81| 0: [BlockStmt] { ... }
344344
# 81| 0: [LocalTypeDeclStmt] class ...
345345
# 81| 0: [AnonymousClass,LocalClass] new Interface1(...) { ... }
346-
# 81| 1: [Constructor]
346+
# 81| 1: [Constructor]
347347
# 81| 5: [BlockStmt] { ... }
348348
# 81| 0: [SuperConstructorInvocationStmt] super(...)
349349
# 81| 1: [BlockStmt] { ... }
@@ -358,7 +358,7 @@ classes.kt:
358358
# 85| 0: [BlockStmt] { ... }
359359
# 85| 0: [LocalTypeDeclStmt] class ...
360360
# 85| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
361-
# 85| 1: [Constructor]
361+
# 85| 1: [Constructor]
362362
# 85| 5: [BlockStmt] { ... }
363363
# 85| 0: [SuperConstructorInvocationStmt] super(...)
364364
# 85| 1: [BlockStmt] { ... }
@@ -373,7 +373,7 @@ classes.kt:
373373
# 89| 0: [BlockStmt] { ... }
374374
# 89| 0: [LocalTypeDeclStmt] class ...
375375
# 89| 0: [AnonymousClass,LocalClass] new Interface3<Integer>(...) { ... }
376-
# 89| 1: [Constructor]
376+
# 89| 1: [Constructor]
377377
# 89| 5: [BlockStmt] { ... }
378378
# 89| 0: [SuperConstructorInvocationStmt] super(...)
379379
# 89| 1: [BlockStmt] { ... }
@@ -478,8 +478,8 @@ classes.kt:
478478
# 117| 0: [TypeAccess] int
479479
# 117| 5: [BlockStmt] { ... }
480480
# 118| 0: [LocalTypeDeclStmt] class ...
481-
# 118| 0: [LocalClass]
482-
# 118| 1: [Constructor]
481+
# 118| 0: [LocalClass]
482+
# 118| 1: [Constructor]
483483
# 118| 5: [BlockStmt] { ... }
484484
# 118| 0: [SuperConstructorInvocationStmt] super(...)
485485
# 118| 2: [Method] localFn
@@ -516,7 +516,7 @@ classes.kt:
516516
# 127| 0: [BlockStmt] { ... }
517517
# 127| 0: [LocalTypeDeclStmt] class ...
518518
# 127| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
519-
# 127| 1: [Constructor]
519+
# 127| 1: [Constructor]
520520
# 127| 5: [BlockStmt] { ... }
521521
# 127| 0: [SuperConstructorInvocationStmt] super(...)
522522
# 127| 1: [BlockStmt] { ... }
@@ -559,8 +559,8 @@ classes.kt:
559559
# 139| 3: [TypeAccess] Unit
560560
# 139| 5: [BlockStmt] { ... }
561561
# 140| 0: [LocalTypeDeclStmt] class ...
562-
# 140| 0: [LocalClass]
563-
# 140| 1: [Constructor]
562+
# 140| 0: [LocalClass]
563+
# 140| 1: [Constructor]
564564
# 140| 5: [BlockStmt] { ... }
565565
# 140| 0: [SuperConstructorInvocationStmt] super(...)
566566
# 140| 2: [Method] func2
@@ -665,7 +665,7 @@ generic_anonymous.kt:
665665
# 3| 0: [BlockStmt] { ... }
666666
# 3| 0: [LocalTypeDeclStmt] class ...
667667
# 3| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
668-
# 3| 1: [Constructor]
668+
# 3| 1: [Constructor]
669669
# 3| 5: [BlockStmt] { ... }
670670
# 3| 0: [SuperConstructorInvocationStmt] super(...)
671671
# 3| 1: [BlockStmt] { ... }
@@ -729,8 +729,8 @@ generic_anonymous.kt:
729729
# 24| 3: [TypeAccess] Unit
730730
# 24| 5: [BlockStmt] { ... }
731731
# 25| 0: [LocalTypeDeclStmt] class ...
732-
# 25| 0: [LocalClass]
733-
# 25| 1: [Constructor]
732+
# 25| 0: [LocalClass]
733+
# 25| 1: [Constructor]
734734
# 25| 5: [BlockStmt] { ... }
735735
# 25| 0: [SuperConstructorInvocationStmt] super(...)
736736
# 25| 2: [Method] func2
@@ -745,7 +745,7 @@ generic_anonymous.kt:
745745
# 26| 0: [BlockStmt] { ... }
746746
# 26| 0: [LocalTypeDeclStmt] class ...
747747
# 26| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
748-
# 26| 1: [Constructor]
748+
# 26| 1: [Constructor]
749749
# 26| 5: [BlockStmt] { ... }
750750
# 26| 0: [SuperConstructorInvocationStmt] super(...)
751751
# 26| 1: [BlockStmt] { ... }
@@ -773,7 +773,7 @@ generic_anonymous.kt:
773773
# 27| 0: [BlockStmt] { ... }
774774
# 27| 0: [LocalTypeDeclStmt] class ...
775775
# 27| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
776-
# 27| 1: [Constructor]
776+
# 27| 1: [Constructor]
777777
# 27| 5: [BlockStmt] { ... }
778778
# 27| 0: [SuperConstructorInvocationStmt] super(...)
779779
# 27| 1: [BlockStmt] { ... }
@@ -801,7 +801,7 @@ generic_anonymous.kt:
801801
# 28| 0: [BlockStmt] { ... }
802802
# 28| 0: [LocalTypeDeclStmt] class ...
803803
# 28| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
804-
# 28| 1: [Constructor]
804+
# 28| 1: [Constructor]
805805
# 28| 5: [BlockStmt] { ... }
806806
# 28| 0: [SuperConstructorInvocationStmt] super(...)
807807
# 28| 1: [BlockStmt] { ... }
@@ -829,7 +829,7 @@ generic_anonymous.kt:
829829
# 29| 0: [BlockStmt] { ... }
830830
# 29| 0: [LocalTypeDeclStmt] class ...
831831
# 29| 0: [AnonymousClass,LocalClass] new C0<U2>(...) { ... }
832-
# 29| 1: [Constructor]
832+
# 29| 1: [Constructor]
833833
# 29| 5: [BlockStmt] { ... }
834834
# 29| 0: [SuperConstructorInvocationStmt] super(...)
835835
# 29| 1: [BlockStmt] { ... }
@@ -850,7 +850,7 @@ generic_anonymous.kt:
850850
# 30| 0: [BlockStmt] { ... }
851851
# 30| 0: [LocalTypeDeclStmt] class ...
852852
# 30| 0: [AnonymousClass,LocalClass] new C0<String>(...) { ... }
853-
# 30| 1: [Constructor]
853+
# 30| 1: [Constructor]
854854
# 30| 5: [BlockStmt] { ... }
855855
# 30| 0: [SuperConstructorInvocationStmt] super(...)
856856
# 30| 1: [BlockStmt] { ... }
@@ -940,7 +940,7 @@ local_anonymous.kt:
940940
# 5| 0: [BlockStmt] { ... }
941941
# 5| 0: [LocalTypeDeclStmt] class ...
942942
# 5| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
943-
# 5| 1: [Constructor]
943+
# 5| 1: [Constructor]
944944
# 5| 5: [BlockStmt] { ... }
945945
# 5| 0: [SuperConstructorInvocationStmt] super(...)
946946
# 5| 1: [BlockStmt] { ... }
@@ -954,8 +954,8 @@ local_anonymous.kt:
954954
# 10| 3: [TypeAccess] Unit
955955
# 10| 5: [BlockStmt] { ... }
956956
# 11| 0: [LocalTypeDeclStmt] class ...
957-
# 11| 0: [LocalClass]
958-
# 11| 1: [Constructor]
957+
# 11| 0: [LocalClass]
958+
# 11| 1: [Constructor]
959959
# 11| 5: [BlockStmt] { ... }
960960
# 11| 0: [SuperConstructorInvocationStmt] super(...)
961961
# 11| 2: [Method] fnLocal
@@ -972,7 +972,7 @@ local_anonymous.kt:
972972
# 16| 1: [LocalVariableDeclExpr] lambda1
973973
# 16| 0: [LambdaExpr] ...->...
974974
# 16| -4: [AnonymousClass] new Function2<Integer,Integer,Integer>(...) { ... }
975-
# 16| 1: [Constructor]
975+
# 16| 1: [Constructor]
976976
# 16| 5: [BlockStmt] { ... }
977977
# 16| 0: [SuperConstructorInvocationStmt] super(...)
978978
# 16| 2: [Method] invoke
@@ -995,7 +995,7 @@ local_anonymous.kt:
995995
# 17| 1: [LocalVariableDeclExpr] lambda2
996996
# 17| 0: [LambdaExpr] ...->...
997997
# 17| -4: [AnonymousClass] new Function2<Integer,Integer,Integer>(...) { ... }
998-
# 17| 1: [Constructor]
998+
# 17| 1: [Constructor]
999999
# 17| 5: [BlockStmt] { ... }
10001000
# 17| 0: [SuperConstructorInvocationStmt] super(...)
10011001
# 17| 2: [Method] invoke
@@ -1021,7 +1021,7 @@ local_anonymous.kt:
10211021
# 21| 1: [LocalVariableDeclExpr] fnRef
10221022
# 21| 0: [MemberRefExpr] ...::...
10231023
# 21| -4: [AnonymousClass] new Function1<Class1,Unit>(...) { ... }
1024-
# 21| 1: [Constructor]
1024+
# 21| 1: [Constructor]
10251025
# 21| 5: [BlockStmt] { ... }
10261026
# 21| 0: [SuperConstructorInvocationStmt] super(...)
10271027
# 21| 0: [IntegerLiteral] 1
@@ -1057,7 +1057,7 @@ local_anonymous.kt:
10571057
# 29| 0: [BlockStmt] { ... }
10581058
# 29| 0: [LocalTypeDeclStmt] class ...
10591059
# 29| 0: [AnonymousClass,LocalClass] new Object(...) { ... }
1060-
# 29| 1: [Constructor]
1060+
# 29| 1: [Constructor]
10611061
# 29| 5: [BlockStmt] { ... }
10621062
# 29| 0: [SuperConstructorInvocationStmt] super(...)
10631063
# 29| 1: [BlockStmt] { ... }
@@ -1119,7 +1119,7 @@ local_anonymous.kt:
11191119
# 40| 0: [BlockStmt] { ... }
11201120
# 40| 0: [LocalTypeDeclStmt] class ...
11211121
# 40| 0: [AnonymousClass,LocalClass] new Interface2(...) { ... }
1122-
# 40| 1: [Constructor]
1122+
# 40| 1: [Constructor]
11231123
# 40| 5: [BlockStmt] { ... }
11241124
# 40| 0: [SuperConstructorInvocationStmt] super(...)
11251125
# 40| 1: [BlockStmt] { ... }

0 commit comments

Comments
 (0)