mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-09 16:15:48 +02:00
Updated Coding style policy (markdown)
parent
7c2a24113c
commit
1b92cb40b5
@ -1,25 +1,40 @@
|
|||||||
_**WORK IN PROGRESS: nothing described here should be considered as definitive or mandatory**_
|
_**WORK IN PROGRESS: nothing described here should be considered as definitive or mandatory**_
|
||||||
## Indentation
|
## Indentation
|
||||||
|
|
||||||
Use two space characters for each indentation level
|
* Proposal 1
|
||||||
```PHP
|
|
||||||
|
Use two space characters for each indentation level
|
||||||
|
```PHP
|
||||||
if ( true ){
|
if ( true ){
|
||||||
echo true;
|
echo true;
|
||||||
else{
|
else{
|
||||||
echo false;
|
echo false;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Next proposal here
|
||||||
|
|
||||||
## Trailing white spaces
|
## Trailing white spaces
|
||||||
|
|
||||||
Lines must be trimmed of any trailing white spaces
|
* Proposal 1
|
||||||
|
|
||||||
|
Lines must be trimmed of any trailing white spaces
|
||||||
|
|
||||||
|
* Next proposal here
|
||||||
|
|
||||||
## Line length
|
## Line length
|
||||||
|
|
||||||
Lines must be limited to 80 characters
|
* Proposal 1
|
||||||
|
|
||||||
|
Lines must be limited to 80 characters
|
||||||
|
|
||||||
|
* Next proposal here
|
||||||
|
|
||||||
## Variables, functions, methods and class naming
|
## Variables, functions, methods and class naming
|
||||||
|
|
||||||
```PHP
|
* Proposal 1
|
||||||
|
|
||||||
|
```PHP
|
||||||
var $thisVariable;
|
var $thisVariable;
|
||||||
function thisFunction(){}
|
function thisFunction(){}
|
||||||
class thisClass {
|
class thisClass {
|
||||||
@ -27,3 +42,4 @@ class thisClass {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Next proposal here
|
Loading…
x
Reference in New Issue
Block a user