Switch to unified view

a b/preprocessOfApneaECG/BioSigKit/CONTRIBUTING.md
1
# Contribution Guidelines
2
3
## Reporting issues
4
5
- **Search for existing issues (Both "closed" and "Open").** Please check to see if someone else has reported the same issue.
6
- **Report your operating system and Matlab version.**
7
- **Share as much information as possible.** Include operating system and version, browser and version. Also, include steps to reproduce the bug.
8
- **Be patient.**
9
10
## Project Installation
11
Refer to the [README](README.md).
12
13
14
## Code Style
15
16
### Contributing to GUI
17
The GUI relies on external libraries. The GUI has only been tested on Windows operating systems (10, 8 and 7)
18
Please do include any third party library and make sure that you have appropriate licensing to use third party materials.
19
20
### Adding new algorithms
21
Please only add the new algorithms under the Algorithms directory of the reposirty and update the code map. Please add clear helper headers at the begining of your function for clear instructions.
22
The added subroutines need to be included in the BioSigKit constructor. Once you added a new routine please comment and date it.
23
24
### Variable Naming
25
Not all current code follows the conventions below but these will be followed for future developments. 
26
- `lowerCamelCase` General variables
27
- `UpperCamelCase` Functions
28
- Maximize the use  of semantic and descriptive variables names (e.g. `faceIndices` not `fcInd` or `fi`). Avoid abbreviations except in cases of industry wide usage. In some cases non-descriptive and short variable names are exceptable for instance vertices (points), faces, edges, colors and logic arrays may be denoted `V`, `F`, `E`, `C`, `L`. Furthermore, if a mathematrical symbol or letter is commonly used for some entity it may be acceptable to use short names e.g. coordinates may be referred to as `X`, `Y` and `Z` and image coordinates of indices may be referred to as `I`, `J` and `K`. In some cases the use of capital or non-capital letters refers to tensors/matrices/arrays/sets and scalars/components/subsets respectively, e.g. a multitude of scalars `c` may be contained within an array or matrix `C`, or a cell array `D` may contain individual entries referred to as `d`. 
29
30
## Testing
31
Currently, demo.m can be used to test all the subroutines of the toolbox. 
32
33
## Pull requests
34
- Try not to pollute your pull request with unintended changes – keep them simple and small. If possible, squash your commits.
35
- Try to share how your code has been tested before submitting a pull request.
36
- If your PR resolves an issue, include **closes #ISSUE_NUMBER** in your commit message (or a [synonym](https://help.github.com/articles/closing-issues-via-commit-messages)).
37
- Review
38
    - If your PR is ready for review, another contributor will be assigned to review your PR
39
    - The reviewer will accept or comment on the PR. 
40
    - If needed address the comments left by the reviewer. Once you're ready to continue the review, ping the reviewer in a comment.
41
    - Once accepted your code will be merged to `master`