Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit dfc98ff

Browse files
Merge branch 'release/0.3.1'
2 parents c8d7b2a + bbd1a55 commit dfc98ff

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Latest stable release][version-badge]][link-packagist]
44
[![Software license][license-badge]](LICENSE.md)
55
[![Total downloads][downloads-badge]][link-packagist]
6+
[![Total stars][stars-badge]][link-github]
67

78
[![Read my blog][blog-link-badge]][link-blog]
89
[![View my other packages and projects][packages-link-badge]][link-packages]
@@ -102,16 +103,20 @@ My name is Sebastiaan and I'm a freelance Laravel developer specializing in buil
102103

103104
Have a project that could use some guidance? Send me an e-mail at [[email protected]][link-author-email]!
104105

105-
[version-badge]: https://poser.pugx.org/sebastiaanluca/php-codesniffer-ruleset/version
106-
[license-badge]: https://img.shields.io/badge/license-MIT-brightgreen.svg
107-
[downloads-badge]: https://img.shields.io/packagist/dt/sebastiaanluca/php-codesniffer-ruleset.svg
106+
[version-badge]: https://img.shields.io/packagist/v/sebastiaanluca/php-codesniffer-ruleset.svg?label=stable
107+
[license-badge]: https://img.shields.io/badge/license-MIT-informational.svg
108+
[travis-badge]: https://img.shields.io/travis/sebastiaanluca/php-codesniffer-ruleset/master.svg
109+
[downloads-badge]: https://img.shields.io/packagist/dt/sebastiaanluca/php-codesniffer-ruleset.svg?color=brightgreen
110+
[stars-badge]: https://img.shields.io/github/stars/sebastiaanluca/php-codesniffer-ruleset.svg?color=brightgreen
108111

109112
[blog-link-badge]: https://img.shields.io/badge/link-blog-lightgrey.svg
110113
[packages-link-badge]: https://img.shields.io/badge/link-other_packages-lightgrey.svg
111114
[twitter-profile-badge]: https://img.shields.io/twitter/follow/sebastiaanluca.svg?style=social
112115
[twitter-share-badge]: https://img.shields.io/twitter/url/http/shields.io.svg?style=social
113116

117+
[link-github]: https://github.com/sebastiaanluca/php-codesniffer-ruleset
114118
[link-packagist]: https://packagist.org/packages/sebastiaanluca/php-codesniffer-ruleset
119+
[link-travis]: https://travis-ci.org/sebastiaanluca/php-codesniffer-ruleset
115120
[link-contributors]: ../../contributors
116121

117122
[link-portfolio]: https://www.sebastiaanluca.com

ruleset.xml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
<exclude name="PEAR.Commenting.FileComment.Missing"/>
2525
<exclude name="PEAR.Commenting.FunctionComment.Missing"/>
2626
<exclude name="PEAR.Commenting.FunctionComment.MissingParamComment"/>
27+
<exclude name="PEAR.Commenting.FunctionComment.MissingParamTag"/>
2728
<exclude name="PEAR.Commenting.FunctionComment.MissingReturn"/>
2829
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamName"/>
2930
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamType"/>
31+
<exclude name="PEAR.ControlStructures.ControlSignature.Found"/>
3032
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
3133
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
3234
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments"/>
@@ -36,6 +38,7 @@
3638
<exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
3739
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
3840
<exclude name="PEAR.WhiteSpace.ScopeIndent.Incorrect"/>
41+
<exclude name="PEAR.WhiteSpace.ScopeIndent.IncorrectExact"/>
3942
</rule>
4043
<rule ref="PSR1">
4144
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace">
@@ -65,6 +68,7 @@
6568
<exclude name="Squiz.Commenting.VariableComment.IncorrectVarType"/>
6669
<exclude name="Squiz.ControlStructures.InlineIfDeclaration.NoBrackets"/>
6770
<exclude name="Squiz.ControlStructures.InlineIfDeclaration.NotSingleLine"/>
71+
<exclude name="Squiz.ControlStructures.SwitchDeclaration.BreakIndent"/>
6872
<exclude name="Squiz.Files.FileExtension.ClassFound"/>
6973
<exclude name="Squiz.Formatting.OperatorBracket.MissingBrackets"/>
7074
<exclude name="Squiz.NamingConventions.ValidFunctionName.NotCamelCaps"/>
@@ -75,6 +79,7 @@
7579
<exclude name="Squiz.Objects.ObjectInstantiation.NotAssigned"/>
7680
<exclude name="Squiz.Operators.ComparisonOperatorUsage.ImplicitTrue"/>
7781
<exclude name="Squiz.Operators.ComparisonOperatorUsage.NotAllowed"/>
82+
<exclude name="Squiz.PHP.DisallowBooleanStatement.Found"/>
7883
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedComparison"/>
7984
<exclude name="Squiz.PHP.DisallowInlineIf"/>
8085
<exclude name="Squiz.PHP.DisallowMultipleAssignments"/>
@@ -181,6 +186,7 @@
181186
<property name="linesCountBetweenDescriptionAndAnnotations" value="1"/>
182187
<property name="linesCountBetweenDifferentAnnotationsTypes" value="1"/>
183188
</properties>
189+
<exclude-pattern>*/**/tests</exclude-pattern>
184190
</rule>
185191

186192
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
@@ -215,24 +221,32 @@
215221
<exclude name="Squiz.Commenting.FunctionComment.TypeHintMissing"/>
216222
</rule>
217223

218-
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
224+
<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag">
225+
<exclude-pattern>*/**/tests</exclude-pattern>
226+
</rule>
227+
228+
<rule ref="Squiz.Commenting.FunctionComment.MissingReturn">
229+
<exclude-pattern>*/**/tests</exclude-pattern>
230+
</rule>
231+
232+
<rule ref="Squiz.Strings.ConcatenationSpacing">
219233
<properties>
220-
<property name="spacingBeforeFirst" value="0"/>
221-
<property name="spacingAfterLast" value="0"/>
234+
<property name="spacing" value="1"/>
235+
<property name="ignoreNewlines" value="true"/>
222236
</properties>
223237
</rule>
224238

225-
<rule ref="Squiz.WhiteSpace.MemberVarSpacing">
239+
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
226240
<properties>
227-
<property name="spacing" value="1"/>
228241
<property name="spacingBeforeFirst" value="0"/>
242+
<property name="spacingAfterLast" value="0"/>
229243
</properties>
230244
</rule>
231245

232-
<rule ref="Squiz.Strings.ConcatenationSpacing">
246+
<rule ref="Squiz.WhiteSpace.MemberVarSpacing">
233247
<properties>
234248
<property name="spacing" value="1"/>
235-
<property name="ignoreNewlines" value="true"/>
249+
<property name="spacingBeforeFirst" value="0"/>
236250
</properties>
237251
</rule>
238252

@@ -251,4 +265,3 @@
251265
<severity>0</severity>
252266
</rule>
253267
</ruleset>
254-

0 commit comments

Comments
 (0)