CI: rename ci folder to consistent naming (MR 10)
part of https://gitlab.com/postmarketOS/postmarketos/-/issues/26
This commit is contained in:
13
.ci/check_linting.sh
Executable file
13
.ci/check_linting.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "### Running gofmt..."
|
||||
files="$(gofmt -l .)"
|
||||
|
||||
if [ ! -z "$files" ]; then
|
||||
# run gofmt to print out the diff of what needs to be changed
|
||||
gofmt -d -e .
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "### Running staticcheck..."
|
||||
staticcheck ./...
|
Reference in New Issue
Block a user