File tree Expand file tree Collapse file tree 11 files changed +30
-7
lines changed Expand file tree Collapse file tree 11 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 5
5
disable-all : true
6
6
# TODO(GODRIVER-2156): Enable all commented-out linters.
7
7
enable :
8
- - deadcode
9
8
- errcheck
10
9
# - errorlint
11
10
- gocritic
@@ -20,12 +19,10 @@ linters:
20
19
- prealloc
21
20
- revive
22
21
- staticcheck
23
- - structcheck
24
22
- typecheck
25
23
- unused
26
24
- unconvert
27
25
- unparam
28
- - varcheck
29
26
30
27
linters-settings :
31
28
errcheck :
@@ -97,7 +94,6 @@ issues:
97
94
- path : x/mongo/driver/auth/internal/awsv4
98
95
linters :
99
96
- unused
100
- - structcheck
101
97
# Disable "unused" linter for code files that depend on the "mongocrypt.MongoCrypt" type because
102
98
# the linter build doesn't work correctly with CGO enabled. As a result, all calls to a
103
99
# "mongocrypt.MongoCrypt" API appear to always panic (see mongocrypt_not_enabled.go), leading
@@ -115,9 +111,12 @@ issues:
115
111
# "benchmark" directories.
116
112
- path : (internal\/|benchmark\/)
117
113
text : exported (.+) should have comment( \(or a comment on this block\))? or be unexported
118
- # Disable deadcode and unused linter for "golang.org/x/exp/rand" package in internal/randutil/rand.
114
+ # Ignore missing package comments for directories that aren't frequently used by external users.
115
+ # TODO(GODRIVER-2517): Remove "mongo/testaws" and "mongo/testatlas" from the ignored paths when
116
+ # TODO we move those packages to the "cmd/" directory.
117
+ - path : (internal\/|benchmark\/|x\/|cmd\/|mongo\/integration\/|mongo\/(testaws\/|testatlas\/))
118
+ text : should have a package comment
119
+ # Disable unused linter for "golang.org/x/exp/rand" package in internal/randutil/rand.
119
120
- path : internal/randutil/rand
120
121
linters :
121
- - deadcode
122
122
- unused
123
- - varcheck
Original file line number Diff line number Diff line change
1
+ // Copyright (C) MongoDB, Inc. 2022-present.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"); you may
4
+ // not use this file except in compliance with the License. You may obtain
5
+ // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ // Package bsonoptions defines the optional configurations for the BSON codecs.
8
+ package bsonoptions
Original file line number Diff line number Diff line change 4
4
// not use this file except in compliance with the License. You may obtain
5
5
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
6
7
+ // Package bsonrwtest provides utilities for testing the "bson/bsonrw" package.
7
8
package bsonrwtest // import "go.mongodb.org/mongo-driver/bson/bsonrw/bsonrwtest"
8
9
9
10
import (
Original file line number Diff line number Diff line change 4
4
// not use this file except in compliance with the License. You may obtain
5
5
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
6
7
+ // Package address provides structured representations of network addresses.
7
8
package address // import "go.mongodb.org/mongo-driver/mongo/address"
8
9
9
10
import (
Original file line number Diff line number Diff line change 4
4
// not use this file except in compliance with the License. You may obtain
5
5
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
6
7
+ // Package description contains types and functions for describing the state of MongoDB clusters.
7
8
package description // import "go.mongodb.org/mongo-driver/mongo/description"
8
9
9
10
// Unknown is an unknown server or topology kind.
Original file line number Diff line number Diff line change
1
+ // Copyright (C) MongoDB, Inc. 2022-present.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"); you may
4
+ // not use this file except in compliance with the License. You may obtain
5
+ // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ // Package options defines the optional configurations for the MongoDB Go Driver.
8
+ package options
Original file line number Diff line number Diff line change 4
4
// not use this file except in compliance with the License. You may obtain
5
5
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
6
7
+ // Package readconcern defines read concerns for MongoDB operations.
7
8
package readconcern // import "go.mongodb.org/mongo-driver/mongo/readconcern"
8
9
9
10
import (
Original file line number Diff line number Diff line change 4
4
// not use this file except in compliance with the License. You may obtain
5
5
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
6
7
+ // Package readpref defines read preferences for MongoDB queries.
7
8
package readpref // import "go.mongodb.org/mongo-driver/mongo/readpref"
8
9
9
10
import (
Original file line number Diff line number Diff line change 4
4
// not use this file except in compliance with the License. You may obtain
5
5
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
6
7
+ // Package writeconcern defines write concerns for MongoDB operations.
7
8
package writeconcern // import "go.mongodb.org/mongo-driver/mongo/writeconcern"
8
9
9
10
import (
Original file line number Diff line number Diff line change 4
4
// not use this file except in compliance with the License. You may obtain
5
5
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
6
7
+ // Package tag provides a way to define filters for tagged servers.
7
8
package tag // import "go.mongodb.org/mongo-driver/tag"
8
9
9
10
import (
You can’t perform that action at this time.
0 commit comments