Everybody is more than welcome to contribute to ruby-ll, no matter how small the change. To keep everything running smoothly there are a few guidelines that one should follow.
The code of conduct ("CoC") can be found in the file "COC.md". Everybody participating in this project must adhere to the rules and guidelines stated in this CoC.
- When changing code make sure to write RSpec tests for the changes.
- Document code using YARD. At the very least the method arguments and return value(s) should be documented.
- Wrap lines at 80 characters per line.
- Git commits should have a <= 50 character summary, optionally followed by a blank line and a more in depth description of 72 characters per line.
Whatever editor you use doesn't matter as long as it can do two things:
- Use spaces for indentation.
- Hard wrap lines at 80 characters per line.
To make this process easier ruby-ll comes with an EditorConfig configuration file. If your editor supports this it will automatically apply the required settings for you.
Assuming you have a local Git clone of ruby-ll, the first step should be to install all the required Gems:
bundle install
Next up, compile the required files and run the tests:
rake
For more information about the available tasks, run rake -T
.
Two continuous integration services are used to ensure the tests of ruby-ll pass at all times:
- GitLab CI: https://gitlab.com/yorickpeterse/ruby-ll/pipelines
- AppVeyor (Windows): https://ci.appveyor.com/project/YorickPeterse/ruby-ll
Please note that I will not accept patches that break any tests unless stated otherwise.
In case you have any further questions or would like to receive feedback before submitting a change, feel free to contact me. You can either open an issue, send a tweet to @yorickpeterse or send an Email to yorickpeterse@gmail.com.