mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-28 22:55:05 +02:00
Created Coding style policy (markdown)
parent
fdd92b9d9d
commit
faef139b4a
1 changed files with 29 additions and 0 deletions
29
Coding-style-policy.md
Normal file
29
Coding-style-policy.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
_**WORK IN PROGRESS: nothing described here should be considered as definitive**_
|
||||||
|
## Indentation
|
||||||
|
|
||||||
|
Use two space characters for each indentation level
|
||||||
|
```PHP
|
||||||
|
if ( true ){
|
||||||
|
echo true;
|
||||||
|
else{
|
||||||
|
echo false;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
## Trailing white spaces
|
||||||
|
|
||||||
|
Lines must be trimmed of any trailing white spaces
|
||||||
|
|
||||||
|
## Line length
|
||||||
|
|
||||||
|
Lines must be limited to 80 characters
|
||||||
|
|
||||||
|
## Variables, functions, methods and class naming
|
||||||
|
|
||||||
|
```PHP
|
||||||
|
var $thisVariable;
|
||||||
|
function thisFunction(){}
|
||||||
|
class thisClass {
|
||||||
|
function thisMethod(){}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue