File: CONTRIB.md

package info (click to toggle)
ruby-beautify 0.97.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 340 kB
  • sloc: ruby: 628; makefile: 8
file content (19 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
How to contribute to this project.

## Thin rules (to be made into sections)

* Work off the dev branch, not master.
* Pull requests should be named something related to PR, `hotfix-XXX` or `feature-YYY`.
* Do not edit the `version.rb` or the `gemspec`.
* All pull requests have to pass tests on `travis-ci` before I'll consider merging them.
* for tests of the actual parser, make sure you include a new `usage_scenario`, not update an existing one.  I'll merge stuff as it gets cluttered.

## Formatting and style

Run all your code through `ruby-beautify` with default settings before committing.

This should work (and if it doesn't, please let me know)

`ruby-beautify --overwrite lib/**/*.rb  bin/ruby-beautify spec/**/*_spec.rb spec/**/*_helper.rb`

Which should pretty up only the code files, and not our test files.  This will help insure pretty commits and that they will be accepted.