justfile

 1# SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 2#
 3# SPDX-License-Identifier: CC0-1.0
 4
 5default: reuse lint test staticcheck
 6
 7reuse:
 8    reuse lint
 9
10lint:
11    # Linting Go code
12    go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
13    golangci-lint run
14
15test:
16    # Running tests
17    go test -v ./...
18
19staticcheck:
20    # Performing static analysis
21    go install honnef.co/go/tools/cmd/staticcheck@latest
22    staticcheck ./...
23
24clean:
25    # Cleaning up
26    rm -rf p2c
27