|
| 1 | +# How to Contribute |
| 2 | + |
| 3 | +We'd love to accept your patches and contributions to this project. There are |
| 4 | +just a few small guidelines you need to follow. |
| 5 | + |
| 6 | +## Contributor License Agreement |
| 7 | + |
| 8 | +Contributions to this project must be accompanied by a Contributor License |
| 9 | +Agreement (CLA). You (or your employer) retain the copyright to your |
| 10 | +contribution; this simply gives us permission to use and redistribute your |
| 11 | +contributions as part of the project. Head over to |
| 12 | +<https://cla.developers.google.com/> to see your current agreements on file or |
| 13 | +to sign a new one. |
| 14 | + |
| 15 | +You generally only need to submit a CLA once, so if you've already submitted one |
| 16 | +(even if it was for a different project), you probably don't need to do it |
| 17 | +again. |
| 18 | + |
| 19 | +## Code Reviews |
| 20 | + |
| 21 | +All submissions, including submissions by project members, require review. We |
| 22 | +use GitHub pull requests for this purpose. Consult |
| 23 | +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more |
| 24 | +information on using pull requests. |
| 25 | + |
| 26 | +## Coding style |
| 27 | + |
| 28 | +The Dart source code in this repo follows the: |
| 29 | + |
| 30 | + * [Dart style guide](https://dart.dev/guides/language/effective-dart/style) |
| 31 | + |
| 32 | +You should familiarize yourself with those guidelines. |
| 33 | + |
| 34 | +## File headers |
| 35 | + |
| 36 | +All files in the Dart project must start with the following header; if you add a |
| 37 | +new file please also add this. The year should be a single number stating the |
| 38 | +year the file was created (don't use a range like "2011-2012"). Additionally, if |
| 39 | +you edit an existing file, you shouldn't update the year. |
| 40 | + |
| 41 | + // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file |
| 42 | + // for details. All rights reserved. Use of this source code is governed by a |
| 43 | + // BSD-style license that can be found in the LICENSE file. |
| 44 | + |
| 45 | +## Community Guidelines |
| 46 | + |
| 47 | +This project follows |
| 48 | +[Google's Open Source Community Guidelines](https://opensource.google/conduct/). |
| 49 | + |
| 50 | +We pledge to maintain an open and welcoming environment. For details, see our |
| 51 | +[code of conduct](https://dart.dev/code-of-conduct). |
0 commit comments