-
Notifications
You must be signed in to change notification settings - Fork 506
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 a Protobuf linter to the project #971
Comments
@anandwana001 Would you be interested in taking this up? |
Sure, I will go through it. |
Great! I will assign it to you then |
I actually think your second screenshot shows that it is working right? We may have to update the lint checks to allow for certain things its shouting about |
Step2 - @vinitamurthi Just wanted to check with you before PR, as I can't test locally if it is correct or not.
Adding the step inside
at CircleCi it should run something like:
|
That looks good to me, only one thing - do the installation of linters together and then run tests together. i.e. let the steps be : install ktlint, install buf, run ktlint, run buf As for testing, yes we cannot test locally but you can make these changes in circleci config and create a PR and see what happens with the continuous integration tests in that PR |
* added protobuf linter * update config and buf yaml files * removed backslash before url * removed buf cache system * update chmod directory name * removed need of directory * trying using docker buf image * tested success over circleci * removing self putted buf error to check over ci * seems like a final commit * update enum suffix and exclude prefix check * update namings * update namings everywhere * circleci path match to buf
We currently rely on reviewers to enforce the style guide for protobuf files. We would like to add a linter to automate this task.
Buf seems to be a good fit for our requirements and we would like to use that for our project. If you have recommendations for some other linter, please reach out to me to discuss if we can use it in our project before adding it.
Steps that need to be completed to add the linter:
Run the linter on our existing protobuf files. Create a PR that fixes all lint problems that the linter catches
Add steps in the linter job of our CircleCI workflow (similar to the Kotlin linting step) that will install and run the linter on our protobuf files
Add documentation on how to install the linter in the prerequisites section of our wiki
The text was updated successfully, but these errors were encountered: