open-nomad/tools/buf/buf.yaml
Mahmood Ali 98c02851c8
use comment ignores (#9448)
Use targetted ignore comments for the cases where we are bound by
backward compatibility.

I've left some file based linters, especially when the file is riddled
with linter voilations (e.g. enum names), or if it's a property of the
file (e.g. package and file names).

I encountered an odd behavior related to RPC_REQUEST_RESPONSE_UNIQUE and
RPC_REQUEST_STANDARD_NAME.  Apparently, if they target a `stream` type,
we must separate them into separate lines so that the ignore comment
targets the type specifically.
2020-11-25 16:03:01 -05:00

51 lines
1.7 KiB
YAML

version: v1beta1
build:
roots:
- .
excludes:
- vendor
lint:
use:
- DEFAULT
allow_comment_ignores: true
ignore_only:
ENUM_VALUE_PREFIX:
- plugins/base/proto/base.proto
- plugins/drivers/proto/driver.proto
ENUM_ZERO_VALUE_SUFFIX:
- plugins/base/proto/base.proto
- plugins/drivers/proto/driver.proto
PACKAGE_DIRECTORY_MATCH:
- client/logmon/proto/logmon.proto
- drivers/docker/docklog/proto/docker_logger.proto
- drivers/shared/executor/proto/executor.proto
- plugins/base/proto/base.proto
- plugins/device/proto/device.proto
- plugins/drivers/proto/driver.proto
- plugins/shared/hclspec/hcl_spec.proto
- plugins/shared/structs/proto/attribute.proto
- plugins/shared/structs/proto/recoverable_error.proto
- plugins/shared/structs/proto/stats.proto
PACKAGE_VERSION_SUFFIX:
- client/logmon/proto/logmon.proto
- drivers/docker/docklog/proto/docker_logger.proto
- drivers/shared/executor/proto/executor.proto
- plugins/base/proto/base.proto
- plugins/device/proto/device.proto
- plugins/drivers/proto/driver.proto
- plugins/shared/hclspec/hcl_spec.proto
- plugins/shared/structs/proto/attribute.proto
- plugins/shared/structs/proto/recoverable_error.proto
- plugins/shared/structs/proto/stats.proto
SERVICE_SUFFIX:
- client/logmon/proto/logmon.proto
- drivers/docker/docklog/proto/docker_logger.proto
- drivers/shared/executor/proto/executor.proto
- plugins/base/proto/base.proto
- plugins/device/proto/device.proto
- plugins/drivers/proto/driver.proto
breaking:
use:
- WIRE_JSON