install.fairie/dotfiles/.vim/plugged/syntastic/CONTRIBUTING.md
Git E2E Dev Test Username fe1ac6d7e9 git subrepo clone https://github.com/vim-syntastic/syntastic.git ./dotfiles/.vim/plugged/syntastic
subrepo:
  subdir:   "dotfiles/.vim/plugged/syntastic"
  merged:   "8d5e37c29"
upstream:
  origin:   "https://github.com/vim-syntastic/syntastic.git"
  branch:   "master"
  commit:   "8d5e37c29"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:27 -04:00

119 lines
4.1 KiB
Markdown

# CONTRIBUTING
- - -
1\. [Deprecation note](#deprecation)
2\. [Bug reports / GitHub issues](#bugreps)
3\. [Submitting a patch](#patches)
4\. [General style notes](#generalstyle)
5\. [Syntax checker notes](#checkerstyle)
- - -
<a name="deprecation"></a>
## 1. Deprecation note
This project is no longer maintained. If you need a syntax checking plugin
for [Vim][vim] you might be interested in Syntastic's spiritual succesor,
[ALE][ale]. Although it shares no code with syntastic and it takes a very
different approach to design, [ALE][ale] can be considered a natural evolution
of syntastic in terms of goals and functionality. Check it out, you probably
won't be disappointed.
<a name="bugreps"></a>
## 2. Bug reports / GitHub issues
Please note that the preferred channel for posting bug reports is the
[issue tracker at GitHub][bug_tracker]. Reports posted elsewhere are less likely
to be seen by the core team.
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 additional information that may help us solve the
issue.
When creating a new issue be sure to state the following:
* steps to reproduce the bug;
* the version of Vim you are using (run `:ver` to find out);
* the version of syntastic you are using (see `:SyntasticInfo`).
For syntax checker bugs also state the version of the checker executable
that you are using. Adding debugging information is typically useful
too:
* open a file handled by your checker;
* set `g:syntastic_debug` to 1 or 3;
* run the checker;
* copy the output of `:mes`.
<a name="patches"></a>
## 3. Submitting a patch
Before you consider adding features to syntastic, _please_ spend a few minutes
(re-)reading the latest version of the [manual][manual]. Syntastic is changing
rapidly at times, and it's possible that some features you want to add exist
already.
To submit a patch:
* fork the [repo][github] on GitHub;
* make a [topic branch][branches] and start hacking;
* submit a pull request based off your topic branch.
Small, focused patches are preferred.
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.
Also, make sure to update the manual whenever applicable. Nobody can use
features that aren't documented.
<a name="generalstyle"></a>
## 4. General style notes
Follow 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!);
* don't use `l:` prefixes for variables unless actually required (i.e.
almost never);
* code for maintainability; we would rather a function be a couple of
lines longer and have (for example) some [explaining variables][variables] to
aid readability.
<a name="checkerstyle"></a>
## 5. Syntax checker notes
Make sure to read the [guide][guide] if you plan to add new syntax checkers.
Use the existing checkers as templates, rather than writing everything
from scratch.
The preferred style for error format strings is one "clause" per line.
E.g. (from the `coffee` checker):
```vim
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%.%#'
```
[ale]: https://github.com/dense-analysis/ale
[bug_tracker]: https://github.com/vim-syntastic/syntastic/issues
[manual]: https://github.com/vim-syntastic/syntastic/blob/master/doc/syntastic.txt
[github]: https://github.com/vim-syntastic/syntastic
[branches]: https://github.com/dchelimsky/rspec/wiki/Topic-Branches#using-topic-branches-when-contributing-patches
[variables]: http://www.refactoring.com/catalog/extractVariable.html
[guide]: https://github.com/vim-syntastic/syntastic/wiki/Syntax-Checker-Guide
[vim]: http://www.vim.org/