Skip to content

Commit

Permalink
Merge pull request TheAlgorithms#638 from bhaumikmistry/feat/add-new-…
Browse files Browse the repository at this point in the history
…file-name-validation-guidelines

feat - Add new file name guidelines
  • Loading branch information
bhaumikmistry authored Dec 3, 2019
2 parents f3da4bd + d8f55f2 commit f2b8757
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Contributors guide: https://github.com/TheAlgorithms/C-Plus-Plus/CONTRIBUTION.md
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] Added description of change
- [ ] Added tests and example, test passes
- [ ] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTION.md#New-File-Name-guidelines)
- [ ] Added tests and example, test must pass
- [ ] Relevant documentation/comments is changed or added
- [ ] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTION.md#Commit-Guidelines)
- [ ] Search previous suggestions before making a new one, as yours may be a duplicate.
Expand Down
25 changes: 23 additions & 2 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,29 @@ We are very happy that you consider implementing algorithms and data structure f
- If you have modified/added code work, make sure the code compiles before submitting.
- **Be consistent in use of there guidelines when submitting**

#### New File Name guidelines
- Use lowercase words with ``"_"`` as separator
- For instance
```
MyNewCppClass.CPP is incorrect
my_new_cpp_class.cpp is correct format
```
- It will be used to dynamically create a directory of files and implementation.
- File name validation will run on docker to ensure the validity.

#### New Directory guidelines
- We recommend adding files to existing directories as much as possible.
- Use lowercase words with ``"_"`` as separator ( no spaces or ```"-"``` allowed )
- For instance
```
SomeNew Fancy-Category is incorrect
some_new_fancy_category is correct
- It will be used to dynamically create a directory of files and implementation.
- File name validation will run on docker to ensure the validity.
#### Commit Guidelines
- It is recommended to keep your changes grouped logically within individual commits. Contributors find it easier to review changes that are silt across multiple commits.
- It is recommended to keep your changes grouped logically within individual commits. Contributors find it easier to review changes that are split across multiple commits.
```
git add file_xyz.cpp
git commit -m "your message"
Expand Down Expand Up @@ -60,4 +81,4 @@ Common prefixes:
- Checkout our [pull request template](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/.github/pull_request_template.md)
- Most importantly,
- Happy coding!
- Happy coding!

0 comments on commit f2b8757

Please sign in to comment.