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

Add custom lint and breaking change plugins #3279

Merged
merged 312 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
312 commits
Select commit Hold shift + click to select a range
ea26121
Move bufcheckclient and bufcheckserver to bufcheck
bufdev Aug 14, 2024
c878792
Move bufcheckserveropt to bufcheckopt
bufdev Aug 14, 2024
6b41fc7
commit
bufdev Aug 14, 2024
057a486
Port config.go
bufdev Aug 15, 2024
b1c3ac5
more work
bufdev Aug 15, 2024
33a807e
Update
bufdev Aug 15, 2024
ccfae69
Updates
bufdev Aug 15, 2024
db83fec
commit
bufdev Aug 15, 2024
6af0514
commit
bufdev Aug 15, 2024
90d018b
code complete client
bufdev Aug 15, 2024
0a88ae2
Add placeholders for v1 and v1beta1 specs
bufdev Aug 15, 2024
bec2260
commit
bufdev Aug 15, 2024
ffc0bb6
commit
bufdev Aug 15, 2024
f4ec09d
Add protosourcepath package (#3224)
doriable Aug 15, 2024
238c183
commit
bufdev Aug 15, 2024
8e5f5ba
commit
bufdev Aug 15, 2024
edc6975
move buflint and bufbreaking test files to bufcheckclient
bufdev Aug 15, 2024
11cc431
fixes
bufdev Aug 15, 2024
ac59be9
commit
bufdev Aug 15, 2024
f6d96e5
Add GetDeprecatedIDToReplacementIDs
bufdev Aug 15, 2024
1cff63f
Move tests but skip for now
bufdev Aug 15, 2024
dde8c2c
commit
bufdev Aug 15, 2024
44c20bf
commit
bufdev Aug 15, 2024
43f0176
port lint and breaking
bufdev Aug 15, 2024
3bd461e
more porting
bufdev Aug 15, 2024
1311ef1
more porting
bufdev Aug 15, 2024
d3dc781
more porting
bufdev Aug 15, 2024
dbca3bd
commit
bufdev Aug 15, 2024
8378f93
move files
bufdev Aug 15, 2024
f99e6ba
replace
bufdev Aug 15, 2024
5b7cbf4
commit
bufdev Aug 15, 2024
6da3444
Merge branch 'main' into bufplugin
bufdev Aug 15, 2024
4f3ed14
port into private handleLint* functions
oliversun9 Aug 15, 2024
53f0f74
merge bufplugin
oliversun9 Aug 15, 2024
0c78e96
move buflintvaldate
oliversun9 Aug 15, 2024
c04e4d5
fix import path
oliversun9 Aug 15, 2024
b833940
PluginConfig
bufdev Aug 15, 2024
0ba16b6
add public handlers
oliversun9 Aug 15, 2024
9f20c7a
test and fixes
bufdev Aug 15, 2024
c8a28cd
commit
bufdev Aug 15, 2024
615753a
commit
bufdev Aug 15, 2024
d2f4387
builders
oliversun9 Aug 15, 2024
993562f
Merge branch 'bufplugin' into osun/port-lint-rules
oliversun9 Aug 15, 2024
75a3351
commit
bufdev Aug 15, 2024
a27813c
Make plugin configs only top-level
bufdev Aug 15, 2024
4629563
Use plugin configs in client construction
bufdev Aug 15, 2024
4f69707
Delete bufplugin package and buf alpha plugin lint
bufdev Aug 15, 2024
3cf04cd
add rule specs and fix builder names
oliversun9 Aug 16, 2024
5393c63
fix location
oliversun9 Aug 16, 2024
9cca852
catch comment
oliversun9 Aug 16, 2024
d4da447
add TODO
oliversun9 Aug 16, 2024
50b2dec
add missing handler
oliversun9 Aug 16, 2024
3e92c81
Merge branch 'bufplugin' into osun/port-lint-rules
oliversun9 Aug 16, 2024
05e5994
Update for bufplugin-go updates
bufdev Aug 16, 2024
d2d2dad
Merge branch 'bufplugin' into osun/port-lint-rules
oliversun9 Aug 16, 2024
935e57a
handle new error from getting option
oliversun9 Aug 16, 2024
d985eff
fix ignore negation
oliversun9 Aug 16, 2024
aa6811b
fix enum allow alias location
oliversun9 Aug 16, 2024
8bad2e1
Merge branch 'main' into bufplugin
bufdev Aug 16, 2024
28afc2c
updates
bufdev Aug 16, 2024
cda9640
Prepare for multi client
bufdev Aug 16, 2024
a2e2920
checkClientSpec
bufdev Aug 16, 2024
32e42ab
updates
bufdev Aug 16, 2024
bcd6e17
update
bufdev Aug 16, 2024
8d62ab9
Port multiclient
bufdev Aug 16, 2024
38db972
commit
bufdev Aug 16, 2024
d763d06
multi client
bufdev Aug 16, 2024
f317830
commit
bufdev Aug 16, 2024
fb7e3a4
bug fixes
oliversun9 Aug 16, 2024
a311053
Fix
bufdev Aug 16, 2024
cd4f444
update error checking in test
oliversun9 Aug 17, 2024
1bf425e
ENUM_NO_DELETE
doriable Aug 13, 2024
ca2bb0d
EXTENSION_NO_DELETE
doriable Aug 13, 2024
e7518f1
FILE_NO_DELETE
doriable Aug 13, 2024
37bef15
MESSAGE_NO_DELETE
doriable Aug 13, 2024
328ef9c
SERVICE_NO_DELETE
doriable Aug 15, 2024
4b9b963
Tiny mid port clean-up
doriable Aug 15, 2024
ab19d57
ENUM_VALUE_NO_DELETE and porting over all breaking utils.
doriable Aug 15, 2024
80fecbc
EXTENSION_MESSAGE_NO_DELETE and bringing in more utils.
doriable Aug 15, 2024
c11a013
FIELD_NO_DELETE
doriable Aug 15, 2024
4046ee3
FIELD_SAME_CARDINALITY
doriable Aug 15, 2024
e2ee4de
FIELD_SAME_CPP_STRING_TYPE
doriable Aug 15, 2024
3eb7818
FIELD_SAME_JAVA_UTF8_VALIDATION
doriable Aug 15, 2024
ffe72bb
FIELD_SAME_JS_TYPE
doriable Aug 15, 2024
50a65a9
FIELD_SAME_TYPE
doriable Aug 15, 2024
5777d40
FIELD_SAME_UTF8_VALIDATION
doriable Aug 15, 2024
73dd226
FILE_SAME_CC_ENABLE_ARENAS
doriable Aug 15, 2024
c727f65
FILE_SAME_CC_GENERIC_SERVICES
doriable Aug 15, 2024
886c61c
FILE_SAME_CSHARP_NAMESPACE
doriable Aug 15, 2024
78620bb
FILE_SAME_GO_PACKAGE
doriable Aug 15, 2024
491109b
FILE_SAME_JAVA_GENERIC_SERVICES
doriable Aug 15, 2024
577d045
FILE_SAME_JAVA_MULTIPLE_FILES
doriable Aug 15, 2024
7eb2289
FILE_SAME_JAVA_OUTER_CLASSNAME
doriable Aug 15, 2024
9ee43d7
FILE_SAME_JAVA_PACKAGE
doriable Aug 15, 2024
8a58b07
FILE_SAME_OBJC_CLASS_PREFIX
doriable Aug 15, 2024
d1244ca
FILE_SAME_PHP_CLASS_PREFIX
doriable Aug 15, 2024
5b8eeca
FILE_SAME_PHP_METADATA_NAMESPACE
doriable Aug 15, 2024
425b583
FILE_SAME_PHP_NAMESPACE
doriable Aug 16, 2024
60090bd
FILE_SAME_PY_GENERIC_SERVICES
doriable Aug 16, 2024
241fdc0
FILE_SAME_RUBY_PACKAGE
doriable Aug 16, 2024
1745faf
FILE_SAME_SWIFT_PREFIX
doriable Aug 16, 2024
2eade20
FILE_SAME_SYNTAX
doriable Aug 16, 2024
a9aaf9f
Fix FILE_NO_DELETE annotation
doriable Aug 16, 2024
0a820f4
MESSAGE_NO_REMOVE_STANDARD_DESCRIPTOR_ACCESSOR
doriable Aug 16, 2024
32d240b
ONEOF_NO_DELETE
doriable Aug 16, 2024
247d6ea
RPC_NO_DELETE
doriable Aug 16, 2024
c1cd4ec
ENUM_SAME_JSON_FORMAT
doriable Aug 16, 2024
cad6be0
ENUM_VALUE_SAME_NAME
doriable Aug 16, 2024
1144e28
FIELD_SAME_JSON_NAME
doriable Aug 16, 2024
71fb483
FIELD_SAME_NAME
doriable Aug 16, 2024
2847336
MESSAGE_SAME_JSON_FORMAT
doriable Aug 16, 2024
4e16027
FIELD_SAME_DEFAULT
doriable Aug 16, 2024
4b643ec
FIELD_SAME_ONEOF
doriable Aug 16, 2024
c9bf5aa
FILE_SAME_PACKAGE
doriable Aug 16, 2024
bf1dc9d
MESSAGE_SAME_MESSAGE_SET_MESSAGE_WIRE_FORMAT
doriable Aug 16, 2024
a8ef675
MESSAGE_SAME_REQUIRED_FIELDS
doriable Aug 16, 2024
c66e938
RESERVED_ENUM_NO_DELETE
doriable Aug 16, 2024
b6461f0
RESERVED_MESSAGE_NO_DELETE
doriable Aug 16, 2024
a22cb01
RPC_SAME_CLIENT_STREAMING
doriable Aug 16, 2024
37560b1
RPC_SAME_IDEMPOTENCY_LEVEL
doriable Aug 16, 2024
218befe
RPC_SAME_REQUEST_TYPE
doriable Aug 16, 2024
edaace5
RPC_SAME_RESPONSE_TYPE
doriable Aug 16, 2024
e19d190
RPC_SAME_SERVER_STREAMING
doriable Aug 16, 2024
d24e76d
PACKAGE_ENUM_NO_DELETE
doriable Aug 16, 2024
29c659e
PACKAGE_NO_EXTENSION_DELETE
doriable Aug 16, 2024
e28e2d7
PACKAGE_MESSAGE_NO_DELETE
doriable Aug 16, 2024
4b6cfc0
PACKAGE_NO_DELETE
doriable Aug 16, 2024
089c0ed
PACKAGE_SERVICE_NO_DELETE
doriable Aug 16, 2024
cadbe25
ENUM_VALUE_NO_DELETE_UNLESS_NAME_RESERVED
doriable Aug 16, 2024
4f0a1a3
ENUM_VALUE_NO_DELETE_UNLESS_NUMBER_RESERVED
doriable Aug 16, 2024
d803e9f
FIELD_WIRE_JSON_COMPATIBILE_CARDINALITY
doriable Aug 16, 2024
dbf3a0b
FIELD_WIRE_JSON_COMPATIBLE_TYPE
doriable Aug 16, 2024
6b41811
FIELD_NO_DELETE_UNLESS_NAME_RESERVED
doriable Aug 16, 2024
ba62511
FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED
doriable Aug 16, 2024
3e9a904
FIELD_WIRE_COMPATIBLE_CARDINALITY
doriable Aug 16, 2024
2e39483
FIELD_WIRE_COMPATIBLE_TYPE
doriable Aug 16, 2024
d2ec2ce
Reorder bufcheckserverbuild and add deprecated rules.
doriable Aug 16, 2024
f617084
Add v1 and v1beta1 rule specs for breaking.
doriable Aug 16, 2024
de00271
WIP
doriable Aug 16, 2024
391b702
update
bufdev Aug 18, 2024
26b7c7e
Merge branch 'bufplugin' into migrate-breaking-rules
bufdev Aug 18, 2024
e11153f
Fix againstImage vs image
bufdev Aug 18, 2024
68e0d84
Merge branch 'bufplugin' into migrate-breaking-rules
bufdev Aug 18, 2024
612cb89
REVIEW THIS COMMIT
bufdev Aug 18, 2024
57e6188
commit
bufdev Aug 19, 2024
831e6e2
Merge branch 'bufplugin' into osun/port-lint-rules
bufdev Aug 19, 2024
7b17622
Merge remote-tracking branch 'origin/bufplugin' into migrate-breaking…
doriable Aug 19, 2024
07ba2d2
commit
bufdev Aug 19, 2024
81dd24c
Change rule sorting to print default first
bufdev Aug 19, 2024
017adf4
WIP
doriable Aug 19, 2024
d4fb177
add bufcheck.Rule
bufdev Aug 19, 2024
222ad44
commit
bufdev Aug 19, 2024
c674a45
comment
bufdev Aug 19, 2024
8b3bc3d
Add concept of plugin name to annotations
bufdev Aug 19, 2024
29b98c7
Add logger to bufcheck.Client
bufdev Aug 19, 2024
879940b
Merge remote-tracking branch 'origin/bufplugin' into bufplugin
doriable Aug 19, 2024
dc3776d
config now always populates RuleIDs
bufdev Aug 19, 2024
7d4a0aa
Merge remote-tracking branch 'origin/bufplugin' into bufplugin
doriable Aug 19, 2024
638410e
commit
bufdev Aug 19, 2024
9e9622e
Merge remote-tracking branch 'origin/bufplugin' into bufplugin
doriable Aug 19, 2024
01913b4
Fix enum value previous vs current enum value.
doriable Aug 19, 2024
5c2d5eb
updte
bufdev Aug 19, 2024
e292612
Update makefile
bufdev Aug 19, 2024
d2dfa42
commit
bufdev Aug 19, 2024
d842a2b
commit
bufdev Aug 19, 2024
2786184
WIP
doriable Aug 19, 2024
1993c87
Merge remote-tracking branch 'origin/bufplugin' into bufplugin
doriable Aug 19, 2024
642daee
commit
bufdev Aug 20, 2024
0f048eb
Merge branch 'bufplugin' of https://github.com/bufbuild/buf into bufp…
bufdev Aug 20, 2024
8a4dcf0
update protobuf-go
bufdev Aug 20, 2024
761509c
fix
bufdev Aug 20, 2024
2e881dd
fix ignore handling logic
oliversun9 Aug 20, 2024
9ebe7f1
Fix all breaking tests except for MessageSet.
doriable Aug 20, 2024
002dab5
Cleanup conditional calls of AddAnnotation
oliversun9 Aug 20, 2024
6d1414f
Update
bufdev Aug 20, 2024
17e4197
fix
bufdev Aug 20, 2024
25af4d9
Small fix for a lint handler
oliversun9 Aug 20, 2024
e8e37d0
Handle [breaking,lint]Config.Disabled()
oliversun9 Aug 20, 2024
7e30498
unskip a test that was skipped by mistake
oliversun9 Aug 20, 2024
7f19210
fix unskip
oliversun9 Aug 20, 2024
cc567d4
Change buf.yaml plugin shape
bufdev Aug 20, 2024
7dd1cf8
Merge branch 'bufplugin' of https://github.com/bufbuild/buf into bufp…
bufdev Aug 20, 2024
f61763f
Delete private/bufpkg/bufcheck
bufdev Aug 20, 2024
7a1447f
fixes
bufdev Aug 20, 2024
3a2b045
commit
bufdev Aug 20, 2024
627a85f
Move buf/bufcheck to bufpkg/bufcheck
bufdev Aug 20, 2024
12e74f8
Fix breaking test.
doriable Aug 20, 2024
27a738b
Fix test file paths
doriable Aug 20, 2024
2c4fde0
Improve ls printing
bufdev Aug 20, 2024
1b8ac04
Merge branch 'bufplugin' of https://github.com/bufbuild/buf into bufp…
bufdev Aug 20, 2024
59f5d45
fix
bufdev Aug 20, 2024
a9dd158
Port to bufplugin-go updates
bufdev Aug 21, 2024
4267599
fix all but one ls test
oliversun9 Aug 21, 2024
c4a2a9a
Fix categories.
doriable Aug 21, 2024
8d87874
Add FIELD_WIRE_COMPATIBLE and FIELD_WIRE_JSON_COMPATIBLE rules to v1b…
doriable Aug 21, 2024
f81b29e
Fix typos in handlers
doriable Aug 21, 2024
706ef70
More typos fixed.
doriable Aug 21, 2024
31bc162
merge
bufdev Aug 21, 2024
90eb9cb
Merge branch 'bufplugin' of https://github.com/bufbuild/buf into bufp…
bufdev Aug 21, 2024
8e6bbe8
Merge branch 'main' into bufplugin
bufdev Aug 21, 2024
71ba3da
make generate
bufdev Aug 21, 2024
891036b
fix
bufdev Aug 21, 2024
1197fe4
lint fixes
bufdev Aug 21, 2024
0ecf6d4
make passes
bufdev Aug 21, 2024
14d7db9
renaming
bufdev Aug 21, 2024
2f40d78
Merge branch 'main' into bufplugin
bufdev Aug 21, 2024
0fcc003
Merge branch 'main' into bufplugin
bufdev Aug 22, 2024
3c6f04c
Merge branch 'main' into bufplugin
bufdev Aug 23, 2024
eb1178a
update bufplugin-go
bufdev Aug 23, 2024
52c9baf
commit
bufdev Aug 25, 2024
ac3d828
cleanup
bufdev Aug 25, 2024
f950c2c
commit
bufdev Aug 25, 2024
274c883
tests pass again
bufdev Aug 25, 2024
75a297a
more testing
bufdev Aug 25, 2024
9b0ae43
Merge
bufdev Aug 26, 2024
8f9141f
upgrade
bufdev Aug 26, 2024
10f696f
upgrade
bufdev Aug 26, 2024
1cd7c32
Wrap plugin failure errors
bufdev Aug 26, 2024
816e752
upgrade
bufdev Aug 26, 2024
219c1cd
cleanup
bufdev Aug 26, 2024
59e7624
updates
bufdev Aug 26, 2024
f121289
Update
bufdev Aug 26, 2024
d798ee9
merge
bufdev Aug 28, 2024
75ffafc
updates
bufdev Aug 28, 2024
69e0125
commit
bufdev Aug 28, 2024
ef7dfab
commit
bufdev Aug 28, 2024
b48a006
move to pluginrpc.com
bufdev Aug 28, 2024
6f33cfe
Review low hanging TODOs (#3274)
doriable Aug 29, 2024
ad28c11
commit
bufdev Aug 30, 2024
0c907cc
commit
bufdev Aug 30, 2024
bbe1551
commit
bufdev Aug 30, 2024
2b1875c
commit
bufdev Aug 30, 2024
2adcdf7
commit
bufdev Aug 30, 2024
c4f0114
commit
bufdev Aug 30, 2024
58feb2e
commit
bufdev Aug 30, 2024
0286635
Update dependencies
bufdev Aug 30, 2024
1b5f7ec
Add tests for lint and breaking plugins (#3277)
doriable Aug 30, 2024
1f9e3df
Fix linting for a test lint plugin (#3289)
oliversun9 Sep 3, 2024
d967733
Add BUF_BETA_PLUGINS_ENABLED env var gating custom lint and breaking …
oliversun9 Sep 4, 2024
ff25680
Merge branch 'main' into bufplugin
bufdev Sep 4, 2024
ea0795c
deps
bufdev Sep 4, 2024
38adcf5
Merge branch 'bufplugin' of https://github.com/bufbuild/buf into bufp…
bufdev Sep 4, 2024
6cb78da
commit
bufdev Sep 4, 2024
0f5ee6d
special callout
bufdev Sep 4, 2024
b3624f4
commit
bufdev Sep 4, 2024
54b6b6c
change back to default
bufdev Sep 4, 2024
6c95beb
update
bufdev Sep 4, 2024
9142051
update warning
bufdev Sep 4, 2024
a394193
update dependencies
bufdev Sep 4, 2024
0974e96
Populate plugin configs from override for module refs (#3291)
doriable Sep 4, 2024
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
  •  
  •  
  •  
10 changes: 9 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ private/buf/cmd/buf/command/alpha/protoc/internal/protoc-gen-insertion-point-rec
private/buf/cmd/buf/command/alpha/protoc/internal/protoc-gen-insertion-point-writer/protoc-gen-insertion-point-writer
private/buf/cmd/buf/command/alpha/protoc/test.txt
private/buf/cmd/buf/command/generate/internal/protoc-gen-top-level-type-names-yaml/protoc-gen-top-level-type-names-yaml
private/buf/cmd/buf/testdata/imports/*/v3/modulelocks/
private/buf/cmd/buf/testdata/imports/cache/v3/modulelocks/
private/buf/cmd/buf/testdata/imports/corrupted_cache_dep/v3/modulelocks/
private/buf/cmd/buf/testdata/imports/corrupted_cache_file/v3/modulelocks/
private/bufpkg/bufcheck/internal/cmd/buf-plugin-duplicate-category/buf-plugin-duplicate-category
private/bufpkg/bufcheck/internal/cmd/buf-plugin-duplicate-rule/buf-plugin-duplicate-rule
private/bufpkg/bufcheck/internal/cmd/buf-plugin-panic/buf-plugin-panic
private/bufpkg/bufcheck/internal/cmd/buf-plugin-protovalidate-ext/buf-plugin-protovalidate-ext
private/bufpkg/bufcheck/internal/cmd/buf-plugin-rpc-ext/buf-plugin-rpc-ext
private/bufpkg/bufcheck/internal/cmd/buf-plugin-suffix/buf-plugin-suffix
private/bufpkg/bufmodule/bufmoduleapi/cmd/buf-legacyfederation-go-data/buf-legacyfederation-go-data
private/bufpkg/bufmodule/bufmoduletesting/cmd/buf-digest/buf-digest
private/bufpkg/bufmodule/bufmoduletesting/cmd/buf-new-commit-id/buf-new-commit-id
Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@
/private/buf/cmd/buf/command/alpha/protoc/internal/protoc-gen-insertion-point-writer/protoc-gen-insertion-point-writer
/private/buf/cmd/buf/command/alpha/protoc/test.txt
/private/buf/cmd/buf/command/generate/internal/protoc-gen-top-level-type-names-yaml/protoc-gen-top-level-type-names-yaml
/private/buf/cmd/buf/testdata/imports/*/v3/modulelocks/
/private/buf/cmd/buf/testdata/imports/cache/v3/modulelocks/
/private/buf/cmd/buf/testdata/imports/corrupted_cache_dep/v3/modulelocks/
/private/buf/cmd/buf/testdata/imports/corrupted_cache_file/v3/modulelocks/
/private/bufpkg/bufcheck/internal/cmd/buf-plugin-duplicate-category/buf-plugin-duplicate-category
/private/bufpkg/bufcheck/internal/cmd/buf-plugin-duplicate-rule/buf-plugin-duplicate-rule
/private/bufpkg/bufcheck/internal/cmd/buf-plugin-panic/buf-plugin-panic
/private/bufpkg/bufcheck/internal/cmd/buf-plugin-protovalidate-ext/buf-plugin-protovalidate-ext
/private/bufpkg/bufcheck/internal/cmd/buf-plugin-rpc-ext/buf-plugin-rpc-ext
/private/bufpkg/bufcheck/internal/cmd/buf-plugin-suffix/buf-plugin-suffix
/private/bufpkg/bufmodule/bufmoduleapi/cmd/buf-legacyfederation-go-data/buf-legacyfederation-go-data
/private/bufpkg/bufmodule/bufmoduletesting/cmd/buf-digest/buf-digest
/private/bufpkg/bufmodule/bufmoduletesting/cmd/buf-new-commit-id/buf-new-commit-id
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ issues:
- linters:
- staticcheck
text: "GetIgnoreEmpty is deprecated"
path: private/bufpkg/bufcheck/buflint/internal/buflintvalidate/field.go
path: private/bufpkg/bufcheck/bufcheckserver/internal/buflintvalidate/field.go
- linters:
- staticcheck
text: "GetSkipped is deprecated"
path: private/bufpkg/bufcheck/buflint/internal/buflintvalidate/field.go
path: private/bufpkg/bufcheck/bufcheckserver/internal/buflintvalidate/field.go
- linters:
- gochecknoinits
# we actually want to use init here
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

## [Unreleased]

- No changes yet.
- Add concept of a default lint or breaking rule, which is printed out as a property when running
`buf config ls-{breaking,lint}-rules`. Default rules are those rules which are run if no lint
or breaking rules are explicitly configured in your `buf.yaml`.
- Rename `DEFAULT` lint rule category to `STANDARD`. With the concept of default rules being introduced,
having a category named `DEFAULT` is confusing, as while it happens that all the rules in the `DEFAULT`
lint category are also default rules, the name has become overloaded. As with all `buf` changes, this
change is backwards-compatible: the `DEFAULT` lint category continues to work, and always will. We
recommend changing to `STANDARD`, however.

## [v1.39.0] - 2024-08-27

Expand Down
39 changes: 22 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
module github.com/bufbuild/buf

go 1.21.0
go 1.22.0

toolchain go1.23.0

require (
buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.34.2-20240904181154-a0be11449112.2
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.34.2-20240717164558-a6c49f84cc0f.2
buf.build/gen/go/bufbuild/registry/connectrpc/go v1.16.2-20240821192916-45ba72cdd479.1
buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.34.2-20240821192916-45ba72cdd479.2
connectrpc.com/connect v1.16.2
connectrpc.com/otelconnect v0.7.1
github.com/bufbuild/protocompile v0.14.0
github.com/bufbuild/bufplugin-go v0.1.0
github.com/bufbuild/protocompile v0.14.1
github.com/bufbuild/protoplugin v0.0.0-20240323223605-e2735f6c31ee
github.com/bufbuild/protovalidate-go v0.6.5
github.com/bufbuild/protoyaml-go v0.1.12
Expand Down Expand Up @@ -40,22 +42,24 @@ require (
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.26.0
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
golang.org/x/mod v0.20.0
golang.org/x/mod v0.21.0
golang.org/x/net v0.28.0
golang.org/x/sync v0.8.0
golang.org/x/term v0.23.0
golang.org/x/term v0.24.0
golang.org/x/tools v0.24.0
google.golang.org/protobuf v1.34.2
google.golang.org/protobuf v1.34.3-0.20240816073751-94ecbc261689
gopkg.in/yaml.v3 v3.0.1
pluginrpc.com/pluginrpc v0.2.0
)

require (
buf.build/gen/go/pluginrpc/pluginrpc/protocolbuffers/go v1.34.2-20240828222655-5345c0a56177.2 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/Microsoft/hcsshim v0.12.6 // indirect
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
github.com/containerd/cgroups/v3 v3.0.3 // indirect
github.com/containerd/containerd v1.7.20 // indirect
github.com/containerd/containerd v1.7.21 // indirect
github.com/containerd/continuity v0.4.3 // indirect
github.com/containerd/errdefs v0.1.0 // indirect
github.com/containerd/log v0.1.0 // indirect
Expand All @@ -66,22 +70,23 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/cli v27.1.2+incompatible // indirect
github.com/docker/cli v27.2.0+incompatible // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker-credential-helpers v0.8.2 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/felixge/fgprof v0.9.4 // indirect
github.com/felixge/fgprof v0.9.5 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 // indirect
github.com/google/pprof v0.0.0-20240903155634-a8630aee4ab9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/locker v1.0.1 // indirect
Expand All @@ -93,13 +98,13 @@ require (
github.com/moby/sys/userns v0.1.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/onsi/ginkgo/v2 v2.20.1 // indirect
github.com/onsi/ginkgo/v2 v2.20.2 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/opencontainers/runtime-spec v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/quic-go/qpack v0.4.0 // indirect
github.com/quic-go/qpack v0.5.0 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
Expand All @@ -109,9 +114,9 @@ require (
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
go.opentelemetry.io/otel/metric v1.29.0 // indirect
go.uber.org/mock v0.4.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240823204242-4ba0660f739c // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240823204242-4ba0660f739c // indirect
google.golang.org/grpc v1.65.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/grpc v1.66.0 // indirect
)
Loading
Loading