...

Text file src/gonum.org/v1/plot/.ci/check-formatting.sh

Documentation: gonum.org/v1/plot/.ci

     1#!/bin/bash
     2
     3set -e
     4
     5test -z "$(goimports -d .)"
     6if [[ -n "$(gofmt -s -l .)" ]]; then
     7	echo -e '\e[31mCode not gofmt simplified in:\n\n'
     8	gofmt -s -l .
     9	echo -e "\e[0"
    10fi

View as plain text