2013-04-13 10:28:11 -04:00
# Bug reports / Github issues
When reporting a bug make sure you search the existing github issues for the
same/similar issues. If you find one, feel free to add a `+1` comment with any
2013-06-22 13:17:02 -04:00
additional information that may help us solve the issue.
2013-04-13 10:28:11 -04:00
When creating a new issue be sure to state the following:
* Steps to reproduce the bug.
* The version of vim you are using.
* The version of syntastic you are using.
For syntax checker bugs also state the version of the checker executable that you are using.
2013-04-10 14:41:53 -04:00
# Submitting a patch
* Fork the repo on github
* Make a [topic branch ](https://github.com/dchelimsky/rspec/wiki/Topic-Branches#using-topic-branches-when-contributing-patches ) and start hacking
* Submit a pull request based off your topic branch
Small focused patches are preferred.
2013-04-10 14:46:43 -04:00
Large changes to the code should be discussed with the core team first. Create an issue and explain your plan and see what we say.
2013-04-10 14:41:53 -04:00
# General style notes
Following the coding conventions/styles used in the syntastic core:
* Use 4 space indents.
* Don't use abbreviated keywords - e.g. use `endfunction` , not `endfun` (there's always room for more fun!).
2013-06-22 13:17:02 -04:00
* Don't use `l:` prefixes for variables unless actually required (i.e. almost never).
2014-03-13 13:08:32 -04:00
* Code for maintainability. We would rather a function be a couple of lines longer and have (for example) some [explaining variables ](http://www.refactoring.com/catalog/extractVariable.html ) to aid readability.
2013-04-10 14:41:53 -04:00
# Syntax checker style notes
The preferred style for error format strings is one "clause" per line. E.g.
(from the coffeelint checker):
2013-04-10 17:14:31 -04:00
```viml
let errorformat = '%E%f:%l:%c: %trror: %m,' .
\ 'Syntax%trror: In %f\, %m on line %l,' .
\ '%EError: In %f\, Parse error on line %l: %m,' .
\ '%EError: In %f\, %m on line %l,' .
\ '%W%f(%l): lint warning: %m,' .
\ '%W%f(%l): warning: %m,' .
\ '%E%f(%l): SyntaxError: %m,' .
\ '%-Z%p^,' .
\ '%-G%.%#'
```