Skip to content

Commit e4fc960

Browse files
authored
Merge pull request Idean#134 from gaelfoppolo/how-to-contribute
add "How to contribute" guide
2 parents 34abde7 + bec642b commit e4fc960

File tree

3 files changed

+119
-2
lines changed

3 files changed

+119
-2
lines changed

CODE_OF_CONDUCT.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at oss@backelite.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).

CONTRIBUTING.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Contributing to _SonarQube Plugin for Swift_
2+
3+
The following is a set of guidelines for contributing to _SonarQube Plugin for Swift_ on GitHub.
4+
5+
> Above all, thank you for your interest in the project and for taking the time to contribute! 👍
6+
7+
## I want to report a problem or ask a question
8+
9+
Before submitting a new GitHub issue, please make sure to
10+
11+
- Check out the [documentation](https://github.com/Backelite/sonar-swift/tree/develop/docs).
12+
- Check out the README and especially the usage guide.
13+
- Search for [existing GitHub issues](https://github.com/Backelite/sonar-swift/issues).
14+
15+
If the above doesn't help, please [submit an issue](https://github.com/Backelite/sonar-swift/issues) on GitHub and provide information about your setup (SonarQube version, etc.)
16+
17+
**Note**: If you want to report a regression in *SonarQube Plugin for Swift* (something that has worked before, but broke with a new release), please mark your issue title as such using `[Regression] Your title here`. This enables us to quickly detect and fix regressions.
18+
19+
## I want to contribute to _SonarQube Plugin for Swift_
20+
21+
### Prerequisites
22+
23+
To develop _SonarQube Plugin for Swift_, you will need to meet the prerequisites as specified in the [README](https://github.com/Backelite/sonar-swift#prerequisites).
24+
25+
### Checking out the repository
26+
27+
- Make sure you are on the *develop* branch: https://github.com/Backelite/sonar-swift/tree/develop
28+
- Click the “Fork” button in the upper right corner of repo
29+
- Clone your fork:
30+
- `git clone https://github.com/<YOUR_GITHUB_USERNAME>/sonar-swift.git`
31+
- Learn more about how to manage your fork: <https://help.github.com/articles/working-with-forks/>
32+
- Create a new branch to work on:
33+
- `git checkout -b <YOUR_BRANCH_NAME>`
34+
- A good name for a branch describes the thing you’ll be working on, e.g. `add-swiftlint-rules`, `fix-swift-lexer`, etc.
35+
36+
That’s it! Now you’re ready to work on _SonarQube Plugin for Swift_.
37+
38+
### Things to keep in mind
39+
40+
- Please do not change the minimum SonarQube version
41+
- Always document new public methods and properties
42+
43+
### Testing your local changes
44+
45+
Before opening a pull request, please make sure your changes don't break things.
46+
47+
- The project and the plugin should build without warnings
48+
- The [Swift Language Weather](https://github.com/JakeLin/SwiftLanguageWeather) project should run without issues
49+
50+
### Submitting the PR
51+
52+
When the coding is done and you’ve finished testing your changes, you are ready to submit the PR to the [main repo](https://github.com/Backelite/sonar-swift). Again, make sure you submit your PR to the *develop* branch: https://github.com/Backelite/sonar-swift/tree/develop
53+
54+
Some best practices are:
55+
56+
- Use a descriptive title
57+
- Link the issues that are related to your PR in the body
58+
59+
## Code of Conduct
60+
61+
Help us keep _SonarQube Plugin for Swift_ open and inclusive. Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md).
62+
63+
## Above All, Thanks for Your Contributions
64+
65+
Thank you for reading to the end, and for taking the time to contribute to the project! If you include the 🔑 emoji at the top of the body of your issue or pull request, we'll know that you've given this your full attention and are doing your best to help!
66+
67+
## License
68+
69+
This project is licensed under the terms of the GNU LGPL v3 license. See the [LICENSE](./LICENSE.md) file for more info.
70+
71+
_These contribution guidelines were adapted from [_fastlane_](https://github.com/fastlane/fastlane) guides._

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ If you still have *run-sonar-swift.sh* file in each of your project (not recomme
8888

8989
### Contributing
9090

91-
Feel free to contribute to this plugin by issuing pull requests to this repository.
91+
Thank you for your interest in the project! Contributions are welcome and appreciated.
9292

93-
When creating a pull request: always create it for the *develop* branch.
93+
Make sure to read these guides before getting started:
94+
95+
- [Code of Conduct](./CODE_OF_CONDUCT.md)
96+
- [Contribution Guidelines](./CONTRIBUTING.md)
9497

9598
### License
9699

0 commit comments

Comments
 (0)