Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit dbb6051

Browse files
Initial coding-conventions.md
1 parent 812aac1 commit dbb6051

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- PascalCase for all types regardless of visibility
2+
- PascalCase for public members and const members
3+
- camelCase for private members, parameters and variables
4+
- No spaces before `()` for method calls and definitions
5+
- No spaces before `[]`
6+
- Space before `()` in `if`, `for`, `while`
7+
- Space before `{`
8+
- Spaces inside `{ }` when on the same line - `{ get; set; }`
9+
- Spaces after any `;` if statements follow it

docs/contributing/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributing to Projects with GitHub for Unity
2+
3+
### Table of Contents
4+
5+
- [Coding Conventions] (coding-coventions.md)

0 commit comments

Comments
 (0)