diff --git a/all.bash b/all.bash index b4a6fb3c..92fbf3be 100755 --- a/all.bash +++ b/all.bash @@ -155,7 +155,7 @@ main() { standard_linters runcmd go test -race -count=1 ./... ;; - lint) all_linters ;; + lint) standard_linters ;; headers) check_headers ;; migrations) check_migrations ;; misspell) check_misspell ;; diff --git a/internal/frontend/server_test.go b/internal/frontend/server_test.go index 5c74768d..4c7924d7 100644 --- a/internal/frontend/server_test.go +++ b/internal/frontend/server_test.go @@ -629,7 +629,7 @@ func TestServer(t *testing.T) { }, { name: "stdlib directory subdirectories", - urlPath: fmt.Sprintf("/cmd@go1.13?tab=subdirectories"), + urlPath: "/cmd@go1.13?tab=subdirectories", wantStatusCode: http.StatusOK, want: in("", pagecheck.DirectoryHeader(dirCmd, versioned), @@ -637,7 +637,7 @@ func TestServer(t *testing.T) { }, { name: "stdlib directory overview", - urlPath: fmt.Sprintf("/cmd@go1.13?tab=overview"), + urlPath: "/cmd@go1.13?tab=overview", wantStatusCode: http.StatusOK, want: in("", pagecheck.DirectoryHeader(dirCmd, versioned), @@ -651,7 +651,7 @@ func TestServer(t *testing.T) { }, { name: "stdlib directory licenses", - urlPath: fmt.Sprintf("/cmd@go1.13?tab=licenses"), + urlPath: "/cmd@go1.13?tab=licenses", wantStatusCode: http.StatusOK, want: in("", pagecheck.DirectoryHeader(dirCmd, versioned), diff --git a/internal/licenses/licenses_test.go b/internal/licenses/licenses_test.go index 9248d423..45f6cc65 100644 --- a/internal/licenses/licenses_test.go +++ b/internal/licenses/licenses_test.go @@ -21,7 +21,6 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" - "github.com/google/licensecheck" lc "github.com/google/licensecheck" ) @@ -522,7 +521,7 @@ func TestDetectFiles(t *testing.T) { { Types: []string{"BSD-3-Clause"}, FilePath: "dir/Copying", - Coverage: licensecheck.Coverage{}, + Coverage: lc.Coverage{}, }, }, },