mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Document style guide and google-java-format in CONTRIBUTING.md
Prompted by discussion on this commit: e8117496e0
#minor-release
PiperOrigin-RevId: 524795901
This commit is contained in:
parent
6f89ddfe8e
commit
f799766db5
@ -23,6 +23,21 @@ We will also consider high quality pull requests. These should merge
|
|||||||
into the `main` branch. Before a pull request can be accepted you must submit
|
into the `main` branch. Before a pull request can be accepted you must submit
|
||||||
a Contributor License Agreement, as described below.
|
a Contributor License Agreement, as described below.
|
||||||
|
|
||||||
|
### Code style
|
||||||
|
|
||||||
|
We follow the
|
||||||
|
[Google Java Style Guide](https://google.github.io/styleguide/javaguide.html)
|
||||||
|
and use [`google-java-format`](https://github.com/google/google-java-format) to
|
||||||
|
automatically reformat the code. Please consider auto-formatting your changes
|
||||||
|
before opening a PR (we will otherwise do this ourselves before merging). You
|
||||||
|
can use the various IDE integrations available, or bulk-reformat all the changes
|
||||||
|
you made on top of `main` using
|
||||||
|
[`google-java-format-diff.py`](https://github.com/google/google-java-format/blob/master/scripts/google-java-format-diff.py):
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ git diff -U0 main... | google-java-format-diff.py -p1 -i
|
||||||
|
```
|
||||||
|
|
||||||
## Contributor license agreement
|
## Contributor license agreement
|
||||||
|
|
||||||
Contributions to any Google project must be accompanied by a Contributor
|
Contributions to any Google project must be accompanied by a Contributor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user