Plex/CONTRIBUTING.md

38 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2022-05-19 18:59:16 +00:00
For those who are wanting to contribute, we fully encourage doing so. There are a few rules we require following when
2022-08-26 01:28:13 +00:00
contributing.
2022-04-14 01:03:22 +00:00
## Steps
2022-05-19 18:59:16 +00:00
2022-05-17 19:36:01 +00:00
1. Make an issue and get feedback. It's important to know if your idea will be accepted before writing any code.
2022-05-19 18:59:16 +00:00
2022-05-17 19:36:01 +00:00
- If it is a feature request, describe the feature and be extremely specific.
- If it is a bug report, ensure you include how to reproduce the bug and the expected outcome
- If it is an enhancement, describe your proposed changes. Ensure you are extremely specific.
2022-05-19 18:59:16 +00:00
2022-05-17 19:36:01 +00:00
2. Fork this project
2022-05-19 18:59:16 +00:00
3. Create a new branch that describes the new feature, enhancement, or bug fix. For example, this is
good: `feature/add-xyz`. This is bad: `fix-this-lol`.
2022-04-14 01:03:22 +00:00
4. Write the code that addresses your change.
2022-05-19 18:59:16 +00:00
- Keep in mind that it **must** be formatted correctly. If you are using IntelliJ, there is a `codeStyle.xml` file that
tells IntelliJ how to format your code. Check this link for information on how to use the
file: https://www.jetbrains.com/help/idea/configuring-code-style.html#import-export-schemes
2022-08-26 01:28:13 +00:00
- If you are not using IntelliJ, that is fine. We use the Plexus Code Style (which is almost the same as Allman) so
please format your code accordingly.
2022-05-19 18:59:16 +00:00
2022-05-17 19:36:01 +00:00
6. Push your changes to your new branch and make a PR based off of that branch.
2022-04-14 01:03:22 +00:00
## Requirements for a PR
2022-05-19 18:59:16 +00:00
2022-04-14 01:03:22 +00:00
- The issue must be marked as approved
- It must only address each specific issue. Don't make one PR for multiple issues.
- Your PR must compile and work. If it does not compile or work, your PR will most likely be rejected.
## Code requirements
2022-05-19 18:59:16 +00:00
- Most importantly, your code must be efficient. Your pull request may be rejected if your code is deemed inefficient or
sloppy.
2022-04-14 01:03:22 +00:00
- Do not repeat yourself. Create functions as needed if you're using large blocks of code over and over again.
- Do not use an excessive amount of commits when making your PR. It makes the master branch look messy.
- Your code must be consistent with Plex's codebase. If a function already exists, use it.