Skip to content

Commit

Permalink
feat: update rules for absolute class name references
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Sep 5, 2020
1 parent 04a2112 commit f1834d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Security


## [1.2.0] - 2020-09-05

### Added

* Revised rules for absolute class name references


## [1.1.2] - 2020-08-28

### Fixed
Expand Down Expand Up @@ -71,7 +78,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
* Initial release of Ramsey coding standard


[Unreleased]: https://github.com/ramsey/coding-standard/compare/1.1.2...HEAD
[Unreleased]: https://github.com/ramsey/coding-standard/compare/1.2.0...HEAD
[1.2.0]: https://github.com/ramsey/coding-standard/compare/1.1.2...1.2.0
[1.1.2]: https://github.com/ramsey/coding-standard/compare/1.1.1...1.1.2
[1.1.1]: https://github.com/ramsey/coding-standard/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/ramsey/coding-standard/compare/1.0.3...1.1.0
Expand Down
16 changes: 8 additions & 8 deletions src/Ramsey/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,19 @@
<!-- Forbid multiple use statements on same line -->
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/>

<!-- Forbid using absolute class name references -->
<!-- Forbid using absolute class name references (except global ones) -->
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="allowFallbackGlobalConstants" value="false"/>
<property name="allowFallbackGlobalFunctions" value="false"/>
<property name="allowFullyQualifiedGlobalClasses" value="false"/>
<property name="allowFullyQualifiedGlobalConstants" value="false"/>
<property name="allowFullyQualifiedGlobalFunctions" value="false"/>
<property name="allowFullyQualifiedExceptions" value="true"/>
<property name="allowPartialUses" value="false"/>
<property name="fullyQualifiedKeywords" type="array">
<element value="T_EXTENDS"/>
<element value="T_IMPLEMENTS"/>
<element value="T_USE"/>
</property>
<property name="allowFullyQualifiedNameForCollidingClasses" value="true"/>
<property name="allowFullyQualifiedNameForCollidingConstants" value="true"/>
<property name="allowFullyQualifiedNameForCollidingFunctions" value="true"/>
<property name="allowPartialUses" value="true"/>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>

Expand Down

0 comments on commit f1834d9

Please sign in to comment.