mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 07:07:39 +02:00
Created Coding style policy (markdown)
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(){}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Reference in New Issue
Block a user