You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,18 @@ This repository contains the ruleset for the PHP code we develop at [FLYERALARM]
5
5
It mostly consists of PSR-2 with some custom additions. The rules are enforced with the help of squizlabs/PHP_CodeSniffer
6
6
7
7
8
+
## Custom Rules in addition to PSR-2
9
+
10
+
* Variable names must be in lowerCamelCase
11
+
* Yoda conditions are forbidden
12
+
* Unit tests with @expectedException must contain @expectedExceptionMessage annotation
13
+
* Return type annotations (@return) must only contain one of scalar type or object (e.g. no "@return string|null")
14
+
* Exceptions messages must not contain exclamation marks or full stops
15
+
* Keywords GOTO and EVAL are forbidden
16
+
* Underscores in namespaces are forbidden
17
+
* Classtype suffixes like Interface, Abstract or Trait are forbidden (e.g. LoggerInterface)
18
+
19
+
8
20
## How-To work within *this* project
9
21
To prepare run command:
10
22
```
@@ -60,4 +72,4 @@ make test
60
72
7) Confirm dialogs by pressing `ok`
61
73
62
74
63
-
On a side note: [We are searching for talented people to join our various teams of developers in multiple locations](https://karriere.flyeralarm.com/jobs)
75
+
On a side note: [We are searching for talented people to join our various teams of developers in multiple locations](https://karriere.flyeralarm.com/jobs)
0 commit comments