Skip to content

Commit

Permalink
Lint (#4)
Browse files Browse the repository at this point in the history
* adding more linters
* remove pagoda specific links
* change github action to trigger on master
  • Loading branch information
Arash-Afshar authored Oct 27, 2024
1 parent 6c26159 commit 3c357ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Test

on:
push:
branches: [ main ]
branches: [ master ]
pull_request:
branches: [ main ]
branches: [ master ]

jobs:

Expand Down
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ linters:
- gofumpt
- goimports
- gosec
- govet
- gocyclo
- ineffassign
- misspell
- gosimple
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Go Reference](https://pkg.go.dev/badge/github.com/Arash-Afshar/pagoda-tailwindcss.svg)](https://pkg.go.dev/github.com/Arash-Afshar/pagoda-tailwindcss)
[![GoT](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](https://go.dev)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)
[![Slack Widget](https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=red)](https://gophers.slack.com/messages/pagoda)

<p align="center"><img alt="Logo" src="https://user-images.githubusercontent.com/552328/147838644-0efac538-a97e-4a46-86a0-41e3abdf9f20.png" height="200px"/></p>

Expand Down
3 changes: 1 addition & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ func TestGetConfig(t *testing.T) {
_, err := GetConfig()
require.NoError(t, err)

var env environment
env = "abc"
env := environment("abc")
SwitchEnvironment(env)
cfg, err := GetConfig()
require.NoError(t, err)
Expand Down

0 comments on commit 3c357ad

Please sign in to comment.