Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update go.mod #82

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
118 changes: 59 additions & 59 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Google API Linter

[![ci](https://github.com/googleapis/api-linter/actions/workflows/ci.yaml/badge.svg)](https://github.com/googleapis/api-linter/actions/workflows/ci.yaml)
[![ci](https://github.com/aep-dev/api-linter/actions/workflows/ci.yaml/badge.svg)](https://github.com/aep-dev/api-linter/actions/workflows/ci.yaml)
![latest release](https://img.shields.io/github/v/release/googleapis/api-linter)
![go version](https://img.shields.io/github/go-mod/go-version/googleapis/api-linter)

Expand Down
4 changes: 2 additions & 2 deletions cmd/api-linter/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"strings"
"sync"

"github.com/googleapis/api-linter/internal"
"github.com/googleapis/api-linter/lint"
"github.com/aep-dev/api-linter/internal"
"github.com/aep-dev/api-linter/lint"
"github.com/jhump/protoreflect/desc"
"github.com/jhump/protoreflect/desc/protoparse"
"github.com/spf13/pflag"
Expand Down
2 changes: 1 addition & 1 deletion cmd/api-linter/github_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"strings"

"github.com/googleapis/api-linter/lint"
"github.com/aep-dev/api-linter/lint"
)

// formatGitHubActionOutput returns lint errors in GitHub actions format.
Expand Down
2 changes: 1 addition & 1 deletion cmd/api-linter/github_actions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package main
import (
"testing"

"github.com/aep-dev/api-linter/lint"
"github.com/google/go-cmp/cmp"
"github.com/googleapis/api-linter/lint"
"google.golang.org/protobuf/types/descriptorpb"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/api-linter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"log"
"os"

"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/rules"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/rules"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/api-linter/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"sort"

"github.com/googleapis/api-linter/lint"
"github.com/aep-dev/api-linter/lint"
"github.com/olekukonko/tablewriter"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/api-linter/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"sort"

"github.com/googleapis/api-linter/lint"
"github.com/aep-dev/api-linter/lint"
"github.com/olekukonko/tablewriter"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/api-linter/summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package main
import (
"testing"

"github.com/aep-dev/api-linter/lint"
"github.com/google/go-cmp/cmp"
"github.com/googleapis/api-linter/lint"
)

func TestCreateSummary(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
</a>
</li>
<li class="glue-header__cta-li glue-header__cta-li--primary">
<a href="https://github.com/googleapis/api-linter" class="glue-header__cta-li-link
<a href="https://github.com/aep-dev/api-linter" class="glue-header__cta-li-link
glue-header__cta-li-link--primary">
<img src="assets/images/github.png" class="github-logo">
View on GitHub
Expand Down Expand Up @@ -159,13 +159,13 @@
<div class="glue-header__drawer-cta">
<ul class="glue-header__drawer-cta-list">
<li class="glue-header__drawer-cta-li glue-header__drawer-cta-li--secondary">
<a href="https://github.com/googleapis/api-linter/issues" class="glue-header__drawer-cta-li-link
<a href="https://github.com/aep-dev/api-linter/issues" class="glue-header__drawer-cta-li-link
glue-header__drawer-cta-li-link--secondary">
File an Issue
</a>
</li>
<li class="glue-header__drawer-cta-li glue-header__drawer-cta-li--primary">
<a href="https://github.com/googleapis/api-linter" class="glue-header__drawer-cta-li-link
<a href="https://github.com/aep-dev/api-linter" class="glue-header__drawer-cta-li-link
glue-header__drawer-cta-li-link--primary">
<img src="assets/images/github.png" class="github-logo">
View on GitHub
Expand Down Expand Up @@ -193,18 +193,18 @@
<ul>
{%- if page.rule %}
<li>
<a href="https://github.com/googleapis/api-linter/blob/main/rules/aep{{ page.rule.name[1] }}/{{ page.rule.name[2] | replace: '-', '_' }}.go">
<a href="https://github.com/aep-dev/api-linter/blob/main/rules/aep{{ page.rule.name[1] }}/{{ page.rule.name[2] | replace: '-', '_' }}.go">
View implementation
</a>
</li>
{%- endif %}
<li>
<a href="https://github.com/googleapis/api-linter/issues/">
<a href="https://github.com/aep-dev/api-linter/issues/">
File Bug
</a>
</li>
<li>
<a href="https://github.com/googleapis/api-linter/edit/main/docs/{{ page.path }}">
<a href="https://github.com/aep-dev/api-linter/edit/main/docs/{{ page.path }}">
Edit this page
</a>
</li>
Expand Down
10 changes: 5 additions & 5 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Once you have Go installed, you can clone the repository the usual way, and
then follow up by running the tests:

```bash
$ git clone https://github.com/googleapis/api-linter
$ git clone https://github.com/aep-dev/api-linter
$ cd api-linter
$ go test ./...
```
Expand Down Expand Up @@ -166,11 +166,11 @@ When making a conversion PR, the following steps should be taken:
<!-- prettier-ignore-start -->
[aep]: https://aep.dev/
[go]: https://golang.org/
[`go.mod`]: https://github.com/googleapis/api-linter/blob/main/go.mod
[`problem`]: https://godoc.org/github.com/googleapis/api-linter/lint#Problem
[`go.mod`]: https://github.com/aep-dev/api-linter/blob/main/go.mod
[`problem`]: https://godoc.org/github.com/aep-dev/api-linter/lint#Problem
[protoreflect]: https://godoc.org/github.com/jhump/protoreflect
[`rules.go`]: https://github.com/googleapis/api-linter/blob/main/rules/rules.go
[`rules.go`]: https://github.com/aep-dev/api-linter/blob/main/rules/rules.go
[visitor pattern]: https://en.wikipedia.org/wiki/Visitor_pattern
[release-please]: https://github.com/googleapis/release-please
[example release pr]: https://github.com/googleapis/api-linter/pull/1290
[example release pr]: https://github.com/aep-dev/api-linter/pull/1290
<!-- prettier-ignore-end -->
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Google API Linter

![ci](https://github.com/googleapis/api-linter/workflows/ci/badge.svg)
![ci](https://github.com/aep-dev/api-linter/workflows/ci/badge.svg)
![latest release](https://img.shields.io/github/v/release/googleapis/api-linter)
![go version](https://img.shields.io/github/go-mod/go-version/googleapis/api-linter)

Expand Down Expand Up @@ -36,7 +36,7 @@ Each linter rule has its own [rule documentation][], and rules can be
To install `api-linter`, use `go install`:

```sh
go install github.com/googleapis/api-linter/cmd/api-linter@latest
go install github.com/aep-dev/api-linter/cmd/api-linter@latest
```

It will install `api-linter` into your local Go binary directory
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/0140/reserved-words.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ top of the file.
<!-- prettier-ignore-start -->
[aep-140]: https://aep.dev/140
[aep.dev/not-precedent]: https://aep.dev/not-precedent
[the code]: https://github.com/googleapis/api-linter/blob/main/rules/aep0140/reserved_words.go
[the code]: https://github.com/aep-dev/api-linter/blob/main/rules/aep0140/reserved_words.go
<!-- prettier-ignore-end -->
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/googleapis/api-linter
module github.com/aep-dev/api-linter

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions rules/aep0004/aep0004.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"regexp"
"strings"

"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
"github.com/stoewer/go-strcase"
)
Expand Down
2 changes: 1 addition & 1 deletion rules/aep0004/aep0004_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package aep0004
import (
"testing"

"github.com/googleapis/api-linter/lint"
"github.com/aep-dev/api-linter/lint"
)

func TestAddRules(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions rules/aep0004/duplicate_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"sort"
"strings"

"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/locations"
"github.com/aep-dev/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
dpb "google.golang.org/protobuf/types/descriptorpb"
)
Expand Down Expand Up @@ -86,7 +86,7 @@ func allDeps(f *desc.FileDescriptor, deps map[string]*desc.FileDescriptor) map[s
}

var duplicateResource = &lint.FileRule{
Name: lint.NewRuleName(4, "duplicate-resource"),
Name: lint.NewRuleName(4, "duplicate-resource"),
RuleType: lint.NewRuleType(lint.MustRule),
LintFile: func(f *desc.FileDescriptor) []lint.Problem {
defsInFile := resourceDefsInFile(f, map[string][]resourceDef{})
Expand Down
2 changes: 1 addition & 1 deletion rules/aep0004/duplicate_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package aep0004
import (
"testing"

"github.com/googleapis/api-linter/rules/internal/testutils"
"github.com/aep-dev/api-linter/rules/internal/testutils"
)

func TestDuplicateResource(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions rules/aep0004/path_never_optional.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package aep0004

import (
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/locations"
"github.com/aep-dev/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
)

var pathNeverOptional = &lint.MessageRule{
Name: lint.NewRuleName(4, "path-never-optional"),
Name: lint.NewRuleName(4, "path-never-optional"),
RuleType: lint.NewRuleType(lint.MustRule),
OnlyIf: func(m *desc.MessageDescriptor) bool {
f := "path"
Expand Down
2 changes: 1 addition & 1 deletion rules/aep0004/path_never_optional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package aep0004
import (
"testing"

"github.com/googleapis/api-linter/rules/internal/testutils"
"github.com/aep-dev/api-linter/rules/internal/testutils"
)

func TestPathNeverOptional(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions rules/aep0004/resource_annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
package aep0004

import (
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
)

var resourceAnnotation = &lint.MessageRule{
Name: lint.NewRuleName(4, "resource-annotation"),
Name: lint.NewRuleName(4, "resource-annotation"),
RuleType: lint.NewRuleType(lint.MustRule),
OnlyIf: isResourceMessage,
OnlyIf: isResourceMessage,
LintMessage: func(m *desc.MessageDescriptor) []lint.Problem {
if utils.GetResource(m) == nil {
return []lint.Problem{{
Expand Down
2 changes: 1 addition & 1 deletion rules/aep0004/resource_annotation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package aep0004
import (
"testing"

"github.com/googleapis/api-linter/rules/internal/testutils"
"github.com/aep-dev/api-linter/rules/internal/testutils"
)

func TestResourceAnnotation(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions rules/aep0004/resource_definition_pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
package aep0004

import (
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/locations"
"github.com/aep-dev/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
)

var resourceDefinitionPatterns = &lint.FileRule{
Name: lint.NewRuleName(4, "resource-definition-pattern"),
Name: lint.NewRuleName(4, "resource-definition-pattern"),
RuleType: lint.NewRuleType(lint.MustRule),
OnlyIf: hasResourceDefinitionAnnotation,
OnlyIf: hasResourceDefinitionAnnotation,
LintFile: func(f *desc.FileDescriptor) []lint.Problem {
var problems []lint.Problem
resources := utils.GetResourceDefinitions(f)
Expand Down
2 changes: 1 addition & 1 deletion rules/aep0004/resource_definition_pattern_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package aep0004
import (
"testing"

"github.com/googleapis/api-linter/rules/internal/testutils"
"github.com/aep-dev/api-linter/rules/internal/testutils"
)

func TestResourceDefinitionPattern(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions rules/aep0004/resource_definition_type_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ package aep0004
import (
"strings"

"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/locations"
"github.com/aep-dev/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
)

var resourceDefinitionTypeName = &lint.FileRule{
Name: lint.NewRuleName(4, "resource-definition-type-name"),
Name: lint.NewRuleName(4, "resource-definition-type-name"),
RuleType: lint.NewRuleType(lint.MustRule),
OnlyIf: hasResourceDefinitionAnnotation,
OnlyIf: hasResourceDefinitionAnnotation,
LintFile: func(f *desc.FileDescriptor) []lint.Problem {
var problems []lint.Problem
resources := utils.GetResourceDefinitions(f)
Expand Down
2 changes: 1 addition & 1 deletion rules/aep0004/resource_definition_type_name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package aep0004
import (
"testing"

"github.com/googleapis/api-linter/rules/internal/testutils"
"github.com/aep-dev/api-linter/rules/internal/testutils"
)

func TestResourceDefinitionTypeName(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions rules/aep0004/resource_definition_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
package aep0004

import (
"github.com/googleapis/api-linter/lint"
"github.com/googleapis/api-linter/locations"
"github.com/googleapis/api-linter/rules/internal/utils"
"github.com/aep-dev/api-linter/lint"
"github.com/aep-dev/api-linter/locations"
"github.com/aep-dev/api-linter/rules/internal/utils"
"github.com/jhump/protoreflect/desc"
)

var resourceDefinitionVariables = &lint.FileRule{
Name: lint.NewRuleName(4, "resource-definition-variables"),
Name: lint.NewRuleName(4, "resource-definition-variables"),
RuleType: lint.NewRuleType(lint.MustRule),
OnlyIf: hasResourceDefinitionAnnotation,
OnlyIf: hasResourceDefinitionAnnotation,
LintFile: func(f *desc.FileDescriptor) []lint.Problem {
var problems []lint.Problem
resources := utils.GetResourceDefinitions(f)
Expand Down
2 changes: 1 addition & 1 deletion rules/aep0004/resource_definition_variables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package aep0004
import (
"testing"

"github.com/googleapis/api-linter/rules/internal/testutils"
"github.com/aep-dev/api-linter/rules/internal/testutils"
)

func TestResourceDefinitionVariables(t *testing.T) {
Expand Down
Loading
Loading