mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-09 08:05:49 +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**_
|
||||
## Indentation
|
||||
|
||||
Use two space characters for each indentation level
|
||||
```PHP
|
||||
* Proposal 1
|
||||
|
||||
Use two space characters for each indentation level
|
||||
```PHP
|
||||
if ( true ){
|
||||
echo true;
|
||||
else{
|
||||
echo false;
|
||||
}
|
||||
```
|
||||
|
||||
* Next proposal here
|
||||
|
||||
## 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
|
||||
|
||||
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
|
||||
|
||||
```PHP
|
||||
* Proposal 1
|
||||
|
||||
```PHP
|
||||
var $thisVariable;
|
||||
function thisFunction(){}
|
||||
class thisClass {
|
||||
@ -27,3 +42,4 @@ class thisClass {
|
||||
}
|
||||
```
|
||||
|
||||
* Next proposal here
|
Loading…
x
Reference in New Issue
Block a user