Skip to content

Commit

Permalink
rename to spanlint
Browse files Browse the repository at this point in the history
  • Loading branch information
jjti committed Dec 26, 2023
1 parent 114b684 commit 94e12b3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- run: cd /tmp && go install github.com/jjti/go-spancheck@${{ env.version }} && spancheck -h
- run: cd /tmp && go install github.com/jjti/go-spanlint@${{ env.version }} && spanlint -h
env:
version: ${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA || env.GITHUB_REF_SLUG }}

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ test:

.PHONY: install
install:
go install ./cmd/spancheck
@echo "Installed in $(shell which spancheck)"
go install ./cmd/spanlint
@echo "Installed in $(shell which spanlint)"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# go-spancheck
# go-spanlint

![Latest release](https://img.shields.io/github/v/release/jjti/go-spancheck)
[![CI](https://github.com/jjti/go-spancheck/actions/workflows/ci.yaml/badge.svg)](https://github.com/jjti/go-spancheck/actions/workflows/ci.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/jjti/go-spancheck)](https://goreportcard.com/report/github.com/jjti/go-spancheck)
![Latest release](https://img.shields.io/github/v/release/jjti/go-spanlint)
[![CI](https://github.com/jjti/go-spanlint/actions/workflows/ci.yaml/badge.svg)](https://github.com/jjti/go-spanlint/actions/workflows/ci.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/jjti/go-spanlint)](https://goreportcard.com/report/github.com/jjti/go-spanlint)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
4 changes: 2 additions & 2 deletions cmd/spancheck/main.go → cmd/spanlint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"golang.org/x/tools/go/analysis/singlechecker"

"github.com/jjti/go-spancheck"
"github.com/jjti/go-spanlint"
)

func main() {
singlechecker.Main(spancheck.Analyzer)
singlechecker.Main(spanlint.Analyzer)
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/jjti/go-spancheck
module github.com/jjti/go-spanlint

go 1.21.3

Expand Down
4 changes: 2 additions & 2 deletions spancheck.go → spanlint.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package spancheck
package spanlint

import (
"go/ast"
Expand Down Expand Up @@ -35,7 +35,7 @@ And forgetting to set an Error status:
This checker helps uncover such issues with spans.`

var Analyzer = &analysis.Analyzer{
Name: "spancheck",
Name: "spanlint",
Doc: doc,
Run: run,
Requires: []*analysis.Analyzer{
Expand Down
6 changes: 3 additions & 3 deletions spancheck_test.go → spanlint_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package spancheck_test
package spanlint_test

import (
"testing"

"golang.org/x/tools/go/analysis/analysistest"

"github.com/jjti/go-spancheck"
"github.com/jjti/go-spanlint"
)

func Test(t *testing.T) {
testdata := analysistest.TestData()

analysistest.Run(t, testdata, spancheck.Analyzer)
analysistest.Run(t, testdata, spanlint.Analyzer)
}
2 changes: 1 addition & 1 deletion testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/jjti/go-spancheck/testdata
module github.com/jjti/go-spanlint/testdata

go 1.21.3

Expand Down

0 comments on commit 94e12b3

Please sign in to comment.