Skip to content

Commit 605aaf2

Browse files
committed
chore: add pre-commit and fix whitespacesgo
1 parent cac7e09 commit 605aaf2

41 files changed

Lines changed: 580 additions & 548 deletions

Some content is hidden

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

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.git
1+
.git

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
plexams.yaml
1818
*.pdf
1919

20-
plan*.json
20+
plan*.json

.pre-commit-config.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
minimum_pre_commit_version: "3.5.0"
2+
default_stages: [pre-commit]
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: trailing-whitespace
9+
- id: end-of-file-fixer
10+
- id: detect-private-key
11+
12+
- repo: local
13+
hooks:
14+
- id: gofmt
15+
name: gofmt
16+
entry: gofmt
17+
args: [-w]
18+
language: system
19+
types: [go]
20+
21+
- id: go-vet
22+
name: go vet
23+
entry: go vet ./...
24+
language: system
25+
pass_filenames: false
26+
types: [go]
27+
28+
- id: golangci-lint-v2
29+
name: golangci-lint-v2
30+
entry: golangci-lint-v2 run
31+
language: system
32+
pass_filenames: false
33+
types: [go]

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
]
1919
}
2020
]
21-
}
21+
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ WORKDIR /root/
3535

3636
COPY --from=builder /app/plexams.go .
3737

38-
CMD ["./plexams.go"]
38+
CMD ["./plexams.go"]

cal.ics

Lines changed: 489 additions & 489 deletions
Large diffs are not rendered by default.

graph/generated/generated.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graph/zpa.graphqls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ type ZPAStudent {
9595
email: String!
9696
gender: String!
9797
group: String!
98-
}
98+
}

plexams/tmpl/constraintsEmail.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Zu den Besonderheiten/Constraints gehören beispielsweise:
2424
* Raum-Constraints:
2525
* Labor
2626
* Steckdosen
27-
27+
2828
aber auch alles andere was aus Ihrer Sicht zu beachten ist.
2929

3030
Besonderheit zu Prüfungen mit EXaHM oder SEB werden unabhängig davon über die KDP-Tickets abgefragt
@@ -38,5 +38,5 @@ Mit freundlichen Grüßen
3838
{{ .PlanerName }}
3939
Prüfungsplaner der FK07
4040

41-
--
41+
--
4242
Diese E-Mail wurde generiert und gesendet von https://github.com/obcode/plexams.go

plexams/tmpl/constraintsEmailHTML.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ Prüfungsplaner der FK07
4141
</p>
4242

4343
<pre>
44-
--
44+
--
4545
Diese E-Mail wurde generiert und gesendet von https://github.com/obcode/plexams.go
46-
</pre>
46+
</pre>

0 commit comments

Comments
 (0)