mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-19 17:09:17 +02:00
[Coding style policy] Add proposals
@ -12,7 +12,16 @@ __echo false;
|
||||
}
|
||||
```
|
||||
|
||||
* Next proposal here
|
||||
* Proposal 2
|
||||
|
||||
Use one tab per indentation level (rendered as 4 spaces in GitHub)
|
||||
```PHP
|
||||
if(true){
|
||||
__echo true;
|
||||
} else {
|
||||
__echo false;
|
||||
}
|
||||
```
|
||||
|
||||
## Trailing white spaces
|
||||
|
||||
@ -20,15 +29,15 @@ __echo false;
|
||||
|
||||
Lines must be trimmed of any trailing white spaces
|
||||
|
||||
* Next proposal here
|
||||
|
||||
## Line length
|
||||
|
||||
* Proposal 1
|
||||
|
||||
Lines must be limited to 80 characters
|
||||
|
||||
* Next proposal here
|
||||
* Proposal 2
|
||||
|
||||
Lines should have a length of less than 80 characters where possible. The maximum length for one line is 120 characters.
|
||||
|
||||
## Variables, functions, methods and class naming
|
||||
|
||||
@ -42,4 +51,11 @@ class thisClass {
|
||||
}
|
||||
```
|
||||
|
||||
* Next proposal here
|
||||
* Proposal 2
|
||||
|
||||
```PHP
|
||||
var $thisVariable; // camelCase
|
||||
function this_function(){} // lower-case & underscore ('_')
|
||||
class ThisClass { // UpperCamelCase (PascalCase)
|
||||
function ThisMethod(){} // UpperCamelCase (PascalCase)
|
||||
}
|
Reference in New Issue
Block a user