chinampa/.milpa/commands/dev/lint.sh
Roberto Hidalgo 725347ec48 error on unexpected arguments, test out logger, add .milpa
courtesy of the department of departamental recursiveness
2023-03-20 22:18:09 -06:00

11 lines
309 B
Bash

#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0
# Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx>
cd "$(dirname "$MILPA_COMMAND_REPO")" || @milpa.fail "could not cd into base dir"
@milpa.log info "Linting go files"
golangci-lint run || exit 2
@milpa.log complete "Go files are up to spec"