Skip to content

Commit

Permalink
style: require strict comparisons and disallow superfluous spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Nov 14, 2020
1 parent f43697d commit ac4b971
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
40 changes: 11 additions & 29 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,84 +6,66 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


## [Unreleased]
## 1.3.0 - 2020-11-14

### Added

### Changed

### Deprecated

### Removed

### Fixed

### Security
* Enforce the use of strict comparisons.
* Check for and disallow duplicate spaces everywhere.


## [1.2.0] - 2020-09-05
## 1.2.0 - 2020-09-05

### Added

* Revised rules for absolute class name references


## [1.1.2] - 2020-08-28
## 1.1.2 - 2020-08-28

### Fixed

* Use correct command prefixes


## [1.1.1] - 2020-08-28
## 1.1.1 - 2020-08-28

### Fixed

* Explicitly require [PHPCSUtils](https://github.com/PHPCSStandards/PHPCSUtils)
to avoid setting minimum-stability


## [1.1.0] - 2020-08-27
## 1.1.0 - 2020-08-27

### Changed

* Package name is now "ramsey/coding-standard"


## [1.0.3] - 2020-08-21
## 1.0.3 - 2020-08-21

### Fixed

* Allow bin dir in dist packages, avoiding Composer warnings


## [1.0.2] - 2020-08-21
## 1.0.2 - 2020-08-21

### Fixed

* Move ext-dom to require-dev


## [1.0.1] - 2020-08-21
## 1.0.1 - 2020-08-21

### Fixed

* Remove unnecessary (and unused) tools, commands, and code


## [1.0.0] - 2020-08-20
## 1.0.0 - 2020-08-20

### Added

* Initial release of Ramsey coding standard


[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
[1.0.3]: https://github.com/ramsey/coding-standard/compare/1.0.2...1.0.3
[1.0.2]: https://github.com/ramsey/coding-standard/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/ramsey/coding-standard/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/ramsey/coding-standard/commits/1.0.0
6 changes: 6 additions & 0 deletions src/Ramsey/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -451,4 +451,10 @@
<exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
</rule>

<!-- Enforce the use of strict comparisons. -->
<rule ref="Universal.Operators.StrictComparisons"/>

<!-- Checks duplicate spaces anywhere because there aren't sniffs for every part of code to check formatting. -->
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"/>

</ruleset>

0 comments on commit ac4b971

Please sign in to comment.