Skip to content

Commit

Permalink
Merge pull request #16 from ldez/feat/remove-golancgi-lint-mode
Browse files Browse the repository at this point in the history
feat: remove golangci-lint mode
  • Loading branch information
4meepo authored Dec 23, 2024
2 parents e25313b + efd5eb3 commit e42e5b5
Show file tree
Hide file tree
Showing 23 changed files with 276 additions and 198 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: stable
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v3
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: stable
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v4
- uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
distribution: goreleaser
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*.test

.vscode
.idea/

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
version: 2
project_name: tagalign

release:
Expand Down Expand Up @@ -29,4 +29,4 @@ builds:
goarch: 386
- goos: freebsd
goarch: arm64
main: ./cmd/tagalign/
main: ./cmd/tagalign/
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/4meepo/tagalign

go 1.19
go 1.21.0

require (
github.com/fatih/structtag v1.2.0
Expand Down
7 changes: 0 additions & 7 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ package tagalign

type Option func(*Helper)

// WithMode specify the mode of tagalign.
func WithMode(mode Mode) Option {
return func(h *Helper) {
h.mode = mode
}
}

// WithSort enable tags sort.
// fixedOrder specify the order of tags, the other tags will be sorted by name.
// Sory is disabled by default.
Expand Down
Loading

0 comments on commit e42e5b5

Please sign in to comment.