forked from djoos/Symfony-coding-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
35 lines (24 loc) · 1.17 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<ruleset name="Symfony2">
<description>The Symfony2 coding standard.</description>
<!-- Include the whole PSR-2 standard -->
<rule ref="PSR2"/>
<!-- There should not be any code in the bundle Resources directory. -->
<exclude-pattern>*/Resources/*</exclude-pattern>
<!--
See the [documented coding standard](http://symfony.com/doc/current/contributing/code/standards.html)
This CodeSniffer standard does not yet enforce the following:
# Structure
* Declare class properties before methods;
* Declare public methods first, then protected ones and finally private ones.
* Use namespaces for all classes;
* Add PHPDoc blocks for all classes, methods, and functions;
* The @package and @subpackage annotations are not used.
* Use uppercase strings for constants with words separated with underscores
# Naming Conventions
* Use underscores for option, argument, parameter names;
-->
<rule ref="Symfony2.Commenting.ClassComment.SpacingBeforeTags">
<message>There should always be a description, followed by a blank line, before the tags of a class comment.</message>
</rule>
</ruleset>