protolint

A pluggable linter and fixer to enforce Protocol Buffer style and conventions.

MIT License

Downloads
21.8K
Stars
561
Committers
13

Bot releases are hidden (Show)

protolint - v0.38.2

Published by yoheimuta over 2 years ago

Changelog

  • c195f21 Merge pull request #222 from yoheimuta/dependabot/github_actions/actions/checkout-3
  • c15dc27 Merge pull request #223 from yoheimuta/dependabot/github_actions/docker/login-action-1.14.1
  • efe2251 Merge pull request #224 from yoheimuta/dependabot/go_modules/github.com/hashicorp/go-hclog-1.2.0
  • 7968fad Merge pull request #231 from yoheimuta/dependabot/github_actions/hadolint/hadolint-action-2.1.0
  • 86b2f88 Merge pull request #232 from yoheimuta/dependabot/docker/alpine-3.15.4
  • 147d4e9 Merge pull request #233 from yoheimuta/dependabot/github_actions/actions/setup-go-3
  • 95239cd Merge pull request #236 from yoheimuta/dependabot/go_modules/google.golang.org/grpc-1.46.0
  • de402c0 Merge pull request #238 from yoheimuta/dependabot/github_actions/github/codeql-action-2
  • a8cbea8 Merge pull request #241 from yoheimuta/dependabot/go_modules/github.com/yoheimuta/go-protoparser/v4-4.6.0
  • 128c7d2 Merge pull request #252 from yoheimuta/build-multi-arch-docker-images
  • 66f8921 Merge pull request #253 from yoheimuta/setup-qemu
  • 052b6c8 chore(deps): Bump actions/checkout from 2 to 3
  • 616209e chore(deps): Bump actions/setup-go from 2 to 3
  • 99daf12 chore(deps): Bump alpine from 3.15.0 to 3.15.4
  • 2e606fc chore(deps): Bump docker/login-action from 1.13.0 to 1.14.1
  • fb90299 chore(deps): Bump github.com/hashicorp/go-hclog from 1.0.0 to 1.2.0
  • 2f95da2 chore(deps): Bump github.com/yoheimuta/go-protoparser/v4
  • 7a63b16 chore(deps): Bump github/codeql-action from 1 to 2
  • c7c34cf chore(deps): Bump google.golang.org/grpc from 1.42.0 to 1.46.0
  • 70a40f1 chore(deps): Bump hadolint/hadolint-action from 1.6.0 to 2.1.0
  • 9fe74d3 ci: set up QEMU to fix exec format error. See also https://github.com/yoheimuta/protolint/runs/7053095562?check_suite_focus=true
  • 39ed630 dev: Build and publish multi arch docker images
  • c1b1925 fix: yamllint errors
protolint - v0.38.1

Published by yoheimuta over 2 years ago

Changelog

  • b48f4ba Merge pull request #240 from yoheimuta/cleanup-plugin-clients
  • 8df2763 fix: Clean up plugin clients by registering them to managedClients
protolint - v0.38.0

Published by yoheimuta over 2 years ago

Changelog

  • e89178d Change to go install
  • 8fade8d Merge pull request #229 from benmathews/patch-1
  • 984f035 Merge pull request #235 from yoheimuta/replace-demo-gif
  • bdd2093 Merge pull request #239 from yoheimuta/signal-proto3-optional-support
  • 80a05b1 chore: Replace the demo gif
  • e389a17 feat: Signal proto3 optional support
  • 5defbf6 fix: a minor lint error
protolint - v0.37.1

Published by yoheimuta over 2 years ago

Changelog

  • 74ef4dc Merge pull request #213 from yoheimuta/dependabot/go_modules/github.com/gertd/go-pluralize-0.2.0
  • 6aa3051 Merge pull request #217 from yoheimuta/dependabot/github_actions/docker/login-action-1.13.0
  • c648f57 Merge pull request #221 from perrydunn/upgrade-go-protoparser
  • 36c0680 Upgrade go-protoparser to v4.5.4
  • 1b6ea46 chore(deps): Bump docker/login-action from 1.10.0 to 1.13.0
  • 095cabf chore(deps): Bump github.com/gertd/go-pluralize from 0.1.7 to 0.2.0
protolint - v0.37.0

Published by yoheimuta over 2 years ago

Changelog

  • 9f11d8e Merge pull request #216 from yoheimuta/order-fixer
  • f1a487d feat: Preserve comments as much as possible
  • bb3db71 feat: Support a fixer for ORDER
protolint - v0.36.0

Published by yoheimuta almost 3 years ago

Changelog

  • 52f329b Merge branch 'master' into refactor-fixers
  • 31c8a18 Merge pull request #191 from yoheimuta/dependabot/go_modules/github.com/hashicorp/go-hclog-1.0.0
  • f36ecbd Merge pull request #192 from yoheimuta/dependabot/docker/alpine-3.15.0
  • fcf29e6 Merge pull request #193 from yoheimuta/refactor-fixers
  • 53fb427 Merge pull request #197 from wwuck/feature/upgrade-alpine
  • d270cf8 Merge pull request #198 from wwuck/feature/codeql
  • 1656b45 Merge pull request #203 from yoheimuta/enumNamesUpperCamelCase-fixer
  • 5269f0e Merge pull request #204 from yoheimuta/parse-on-fix
  • 284534a Merge pull request #205 from yoheimuta/fixer-RPCNamesUpperCamelCaseRule
  • 8c356da Merge pull request #206 from yoheimuta/fixer-UpperCamelCase
  • 687bf14 Merge pull request #207 from yoheimuta/fixer-lower_snake_case
  • ae8ef19 Merge pull request #208 from yoheimuta/fixer-official-case
  • 8831c66 Merge pull request #209 from yoheimuta/enum-fixer
  • 7e1088b Merge pull request #210 from yoheimuta/field-fixer
  • e4a7014 Merge remote-tracking branch 'origin/master' into refactor-fixers
  • 2ce65ab chore(deps): Bump alpine from 3.14.2 to 3.15.0
  • 00a5471 chore(deps): Bump github.com/hashicorp/go-hclog from 0.16.2 to 1.0.0
  • 375f265 feat: Parse a file every time a single linter rule runs
  • 6c74c6c feat: Support a fixer for ENUM_FIELD_NAMES_PREFIX
  • bf34753 feat: Support a fixer for ENUM_FIELD_NAMES_UPPER_SNAKE_CASE
  • 1860a10 feat: Support a fixer for ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH
  • 4192680 feat: Support a fixer for EnumNamesUpperCamelCase
  • 1ccfa51 feat: Support a fixer for FieldNamesLowerSnakeCaseRule
  • a3e6599 feat: Support a fixer for FileNamesLowerSnakeCaseRule
  • 328e979 feat: Support a fixer for MessageNamesUpperCamelCaseRule
  • 1d7920c feat: Support a fixer for PACKAGE_NAME_LOWER_CASE
  • a22b880 feat: Support a fixer for PROTO3_FIELDS_AVOID_REQUIRED
  • 4f0e33f feat: Support a fixer for REPEATED_FIELD_NAMES_PLURALIZED
  • fdc5fd0 feat: Support a fixer for RPCNamesUpperCamelCaseRule
  • d6bfd86 feat: Support a fixer for ServiceNamesUpperCamelCaseRule
  • 78be436 feat: add codeql analysis
  • cc4ac2f fix: upgrade apk packages
  • 027e58d refactor: importsSortedRule adapts a fixer
  • 480b614 refactor: indentRule adapts a fixer
  • ebcc7d6 tests: Refactor a utility code
protolint - v0.35.2

Published by yoheimuta almost 3 years ago

Changelog

31df2d0 Merge pull request #180 from wwuck/feature/dependabot
1f261c5 Merge pull request #181 from yoheimuta/dependabot/docker/alpine-3.14.2
af83610 Merge pull request #182 from yoheimuta/dependabot/go_modules/github.com/hashicorp/go-hclog-0.16.2
9be0180 Merge pull request #183 from yoheimuta/dependabot/go_modules/github.com/gertd/go-pluralize-0.1.7
f020428 Merge pull request #184 from yoheimuta/dependabot/go_modules/google.golang.org/grpc-1.42.0
01e5419 Merge pull request #185 from yoheimuta/dependabot/go_modules/github.com/hashicorp/go-plugin-1.4.3
0942d49 Merge pull request #186 from yoheimuta/dependabot/go_modules/github.com/golang/protobuf-1.5.2
7a236d5 Merge pull request #187 from yoheimuta/fix-possible-copylocks
e25c5bd Merge pull request #188 from wwuck/feature/trivy
15a2901 Merge pull request #189 from yoheimuta/change-badge
ac9a0d8 Revert "feat: shellcheck glob"
002a344 chore(deps): Bump alpine from 3.12 to 3.14.2
773d719 chore(deps): Bump github.com/gertd/go-pluralize from 0.1.1 to 0.1.7
1a23334 chore(deps): Bump github.com/golang/protobuf from 1.3.2 to 1.5.2
c7c252a chore(deps): Bump github.com/hashicorp/go-hclog from 0.10.0 to 0.16.2
5dfe32a chore(deps): Bump github.com/hashicorp/go-plugin from 1.0.1 to 1.4.3
d33ab0a chore(deps): Bump google.golang.org/grpc from 1.25.1 to 1.42.0
9884e86 chore: Change an action badge
6485531 chore: Replace GITHUB_TOKEN with the other to push homebrew-protolint repository. See also https://github.com/yoheimuta/protolint/runs/4123983152?check_suite_focus=true
fe3e926 chore: Run go mod tidy
141c187 chore: Update go directive in go.mod
68a5740 feat: Add dependabot configuration
cf13e5f feat: add goreleaser workflow
7dfa387 feat: add hadolint
c26929c feat: build and scan github actions
26481f2 feat: shellcheck
d1cc876 feat: shellcheck glob
1c7e2fd feat: yamllint
730d891 fix: convert install_deps.sh to posix shell
f0d2663 fix: name of yamllint job
7f57f38 fix: pass an reference of the struct with lock
69d0a22 fix: yamllint linting

Docker images

  • docker pull yoheimuta/protolint:v0.35.2
protolint - v0.35.1

Published by yoheimuta about 3 years ago

Changelog

8d3dc03 Merge pull request #178 from yoheimuta/revert-base-image
f671218 chore: Revert the base image to alpine

Docker images

  • docker pull yoheimuta/protolint:v0.35.1
protolint - v0.35.0

Published by yoheimuta about 3 years ago

Changelog

4d2f2d6 Merge pull request #176 from yoheimuta/add-quote-consistent
6dce255 feat: Add QUOTE_CONSISTENT

Docker images

  • docker pull yoheimuta/protolint:v0.35.0
protolint - v0.34.1

Published by yoheimuta about 3 years ago

Changelog

bcb555a Merge pull request #173 from yoheimuta/fix-brew-test-bot
ab1a7ca Merge pull request #175 from yoheimuta/revert-exec-binary-in-docker
66bbd8e fix: Put an executable file in PATH
144b769 tests: Fix brew style yoheimuta/protolint Error. See also https://github.com/yoheimuta/homebrew-protolint/pull/4

Docker images

  • docker pull yoheimuta/protolint:v0.34.1
protolint - v0.34.0

Published by yoheimuta about 3 years ago

Changelog

13e1c88 Merge pull request #172 from yoheimuta/add-FILE_HAVE_COMMENT
e6e235a feat: Add a new rule FILE_HAS_COMMENT

Docker images

  • docker pull yoheimuta/protolint:v0.34.0
protolint - v0.33.0

Published by yoheimuta about 3 years ago

Changelog

a706690 Merge pull request #170 from yoheimuta/add-rpc-names-rule
14a7fc7 Merge pull request #171 from yoheimuta/goreleaser-to-docker
1b370c6 deploy: Login dockerhub before pushing
ad31b9a feat: Add a new rule named RPC_NAME_CASE
5a1840d feat: Deploy to docker by goreleaser in place of Automated Builds provided by DockerHub
ef9dd74 feat: Skip applying RPC_NAMES_CASE when the convention is not specified. This consideration is required when the user turns all_default on.
7726378 feat: Tweak circleci/config.yml to add setup_remote_docker

Docker images

  • docker pull yoheimuta/protolint:v0.33.0
protolint - v0.32.0

Published by yoheimuta over 3 years ago

Changelog

b5c05f8 Merge pull request #165 from yoheimuta/clear-trivy
3b9f029 Merge pull request #167 from yoheimuta/look-for-config-up-to-root
c43f6f5 Update README.md
34d073f chore: Avoid an CI failure due to go version
d347863 feat: Look up a config file in parent directories up to the root
514bb6c feat: Update alpine and go to the latest in order to fix CVE-2021-30139
e01dbcf feat: Update yaml.v2 to fix CVE-2019-11254
b3f5d41 tests: Confirm that new tests requiring to look for its parent directory fails

protolint - v0.31.0

Published by yoheimuta over 3 years ago

Changelog

d193089 Merge pull request #159 from yoheimuta/enum-fieldNames-prefix
b929a7f feat: Add the new rule: ENUM_FIELD_NAMES_PREFIX

protolint - v0.30.1

Published by yoheimuta over 3 years ago

Changelog

8297896 Merge pull request #158 from yoheimuta/fix-package-name-lower-case-rule
8ff838e fix: Allow a snakecase package name
8d60fd5 tests: Confirm a test failure about the package name including _

protolint - v0.30.0

Published by yoheimuta over 3 years ago

Changelog

11bf262 Merge pull request #157 from yoheimuta/handle-config-file-path-more-explicitly
bb420ea feat: Make the verbose output incorporate the status of config loading
baca4d2 feat: Return the error when it fails to locate a config file specified by options
d639acc tests: Confirm a new test fails

protolint - v0.29.0

Published by yoheimuta over 3 years ago

Changelog

86f54dc Merge pull request #156 from yoheimuta/support-yml-config-format
e6e8a6a feat: Support .yml format config
f678db2 tests: Add additional test cases to confirm the current spec
7b37c0d tests: Add additional test cases to confirm the current spec
c1135b7 tests: Confirm a failure when the config file ends with .yml

protolint - v0.28.2

Published by yoheimuta over 3 years ago

Changelog

758dc25 Merge pull request #151 from yoheimuta/updated-parser
2170716 feat: Update go-protoparser to parser a negative enum field
c7f4351 tests: Confirm the parse error

protolint - v0.28.1

Published by yoheimuta over 3 years ago

Changelog

e9f227b Add pre-commit config docs for Go/Docker
c949457 Allow pre-commit to install protolint with go
7cec161 Fix pre-commit hook
c818635 Merge pull request #149 from wwuck/patch-1
3148029 Merge pull request #150 from wwuck/patch-2
92a332b chore: Tweak rev of pre-commit config

protolint - v0.28.0

Published by yoheimuta over 3 years ago

Changelog

e894f45 Merge pull request #146 from yoheimuta/note-sh-dependency/144
7b5754a Merge pull request #147 from yoheimuta/support-cross-platform-filepath/143
480c42e Merge pull request #148 from wwuck/feature/pre-commit
cb36f06 chore: Adapt a deprecation error
64d3990 chore: Add a note about sh dependency
7136a99 chore: Add notes about a cross platform path format
3333c3b feat: Ignore a windows directorypath by a config of unix directorypath
7fceaf5 feat: Ignore a windows filepath by a config of unix filepath
c965707 feat: Ignore a windows path by a config of unix path
7fa84cf pre-commit hook configuration and readme
78e5c32 tests: Adapt the usage of ineffassign to the latest: https://github.com/gordonklaus/ineffassign/pull/51
080e84e tests: Confirm test failures caused by not igonoring a window directorypath using an unix directorypath
dca97ea tests: Confirm test failures caused by not igonoring a window filepath using an unix filepath
f198b8a tests: Confirm test failures caused by not igoring a window path using an unix path
2443bef tests: Refactor to add more test cases

Package Rankings
Top 42.96% on Npmjs.org
Top 2.2% on Proxy.golang.org
Top 36.29% on Pypi.org
Top 31.68% on Formulae.brew.sh
Badges
Extracted from project README