Fix linting errors (#198)

This commit is contained in:
Jesus Vazquez 2022-04-12 12:15:22 +02:00 committed by GitHub
parent 23ce9ad9f0
commit 5db6963dea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View file

@ -23,9 +23,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.0
version: v1.45.2

View file

@ -19,8 +19,8 @@ jobs:
- name: Upgrade golang
run: |
cd /tmp
wget https://dl.google.com/go/go1.16.8.linux-amd64.tar.gz
tar -zxvf go1.16.8.linux-amd64.tar.gz
wget https://dl.google.com/go/go1.17.7.linux-amd64.tar.gz
tar -zxvf go1.17.7.linux-amd64.tar.gz
sudo rm -fr /usr/local/go
sudo mv /tmp/go /usr/local/go
cd -

View file

@ -31,7 +31,7 @@ import (
)
var (
kumaConf KumaSDConfig = sdConf
kumaConf = sdConf
testKumaMadsV1Resources = []*MonitoringAssignment{
{

View file

@ -175,7 +175,7 @@ func NewTemplateExpander(
return html_template.HTML(text)
},
"match": regexp.MatchString,
"title": strings.Title,
"title": strings.Title, //nolint:staticcheck
"toUpper": strings.ToUpper,
"toLower": strings.ToLower,
"graphLink": strutil.GraphLinkForExpression,