Skip to content

Add linter presubmit test#3937

Closed
chingor13 wants to merge 4 commits intogoogleapis:masterfrom
chingor13:format-lint
Closed

Add linter presubmit test#3937
chingor13 wants to merge 4 commits intogoogleapis:masterfrom
chingor13:format-lint

Conversation

@chingor13
Copy link
Copy Markdown
Contributor

@chingor13 chingor13 commented Nov 13, 2018

This adds a Kokoro test job "Kokoro - Test: Code Format" that runs all code outside of google-api-grpc through the google-java-format code linter via the com.coveo:fmt-maven-plugin.

We also fix all the code style issues.

@chingor13 chingor13 requested a review from a team November 13, 2018 19:30
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 13, 2018
@chingor13
Copy link
Copy Markdown
Contributor Author

We will likely want to update all the code after we merge the PRs that we plan on releasing this week. Other PRs can fix any potential merge conflicts.

@sduskis
Copy link
Copy Markdown
Contributor

sduskis commented Nov 13, 2018

@chingor13 which files did you change manually for this PR?

@chingor13
Copy link
Copy Markdown
Contributor Author

@sduskis Only the code in the first 3 commits: master...e636610

The final commit was from running the fixer command: mvn com.coveo:fmt-maven-plugin:format

@chingor13
Copy link
Copy Markdown
Contributor Author

Looks like I need to add an exception for the generated code in google-cloud-clients. Otherwise, autosynth PRs will fail the linter checks.

import com.google.bigtable.v2.MutateRowRequest;
import com.google.bigtable.v2.MutateRowResponse;
import com.google.bigtable.v2.MutateRowsRequest;
import com.google.bigtable.v2.MutateRowsRequest.Entry;

This comment was marked as spam.

@chingor13 chingor13 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 14, 2018
@chingor13
Copy link
Copy Markdown
Contributor Author

Adding the ability to reformat the generated java code in: googleapis/synthtool#145. Will open a new PR with those changes.

@chingor13 chingor13 closed this Nov 20, 2018
@chingor13 chingor13 deleted the format-lint branch January 18, 2019 17:30
suztomo pushed a commit that referenced this pull request Mar 9, 2026
* feat(bigquery): Add custom ExceptionHandler to BigQueryOptions

* add default project id to tests

* Add dummy project id to tests

* Remove defaultInstance() from test

* add option to specify retry algo instead of just abortOn/retryOn

* fix formatting

* remove custom exception handler from bq options
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
* feat(bigquery): Add custom ExceptionHandler to BigQueryOptions

* add default project id to tests

* Add dummy project id to tests

* Remove defaultInstance() from test

* add option to specify retry algo instead of just abortOn/retryOn

* fix formatting

* remove custom exception handler from bq options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants