Skip to content

Commit a7e8493

Browse files
committed
fix lint (again)
1 parent ec8ef66 commit a7e8493

8 files changed

Lines changed: 9 additions & 10 deletions

File tree

vulnfeeds/cmd/combine-to-osv/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package main
22

33
import (
4-
"github.com/google/osv/vulnfeeds/models"
54
"path/filepath"
65
"sort"
76
"testing"
87
"time"
98

109
"github.com/google/go-cmp/cmp"
1110
"github.com/google/go-cmp/cmp/cmpopts"
11+
"github.com/google/osv/vulnfeeds/models"
1212
"github.com/ossf/osv-schema/bindings/go/osvschema"
1313
"google.golang.org/protobuf/testing/protocmp"
1414
"google.golang.org/protobuf/types/known/timestamppb"

vulnfeeds/cmd/converters/cve/nvd-cve-osv/main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ var ErrNoRanges = errors.New("no ranges")
2424

2525
var ErrUnresolvedFix = errors.New("fixes not resolved to commits")
2626

27-
const (
28-
extension = ".json"
29-
)
30-
3127
var (
3228
jsonPath = flag.String("nvd-json", "", "Path to NVD CVE JSON to examine.")
3329
parsedCPEDictionary = flag.String("cpe-repos", "", "Path to JSON mapping of CPEs to repos generated by cpe-repo-gen")

vulnfeeds/cmd/converters/debian/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package main
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/google/osv/vulnfeeds/models"
76
"os"
87
"sort"
98
"testing"
109
"time"
1110

1211
"github.com/google/go-cmp/cmp"
12+
"github.com/google/osv/vulnfeeds/models"
1313
"github.com/google/osv/vulnfeeds/vulns"
1414
"github.com/ossf/osv-schema/bindings/go/osvschema"
1515
"google.golang.org/protobuf/testing/protocmp"

vulnfeeds/conversion/common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Package conversion implements common utilities for converting vulnerability data
2+
// from various sources into the OSV schema.
13
package conversion
24

35
import (

vulnfeeds/conversion/nvd/converter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package nvd converts NVD CVEs to OSV format.
12
package nvd
23

34
import (

vulnfeeds/cves/versions.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// https://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// Package cves provides utilities for working with CVEs and version information.
1516
package cves
1617

1718
import (

vulnfeeds/models/cve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Package cves contains CVE-specific data structures.
15+
// Package models contains CVE-specific data structures.
1616
package models
1717

1818
import (

vulnfeeds/pypi/pypi.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package pypi
1717

1818
import (
1919
"encoding/json"
20-
"github.com/google/osv/vulnfeeds/models"
2120
"log"
2221
"log/slog"
2322
"net/http"
@@ -28,8 +27,8 @@ import (
2827
"strings"
2928

3029
version "github.com/aquasecurity/go-pep440-version"
31-
3230
"github.com/google/osv/vulnfeeds/cves"
31+
"github.com/google/osv/vulnfeeds/models"
3332
"github.com/google/osv/vulnfeeds/triage"
3433
"github.com/google/osv/vulnfeeds/utility/logger"
3534
)

0 commit comments

Comments
 (0)