Skip to content

Commit ac4b971

Browse files
committed
style: require strict comparisons and disallow superfluous spaces
1 parent f43697d commit ac4b971

File tree

2 files changed

+17
-29
lines changed

2 files changed

+17
-29
lines changed

CHANGELOG.md

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,84 +6,66 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88

9-
## [Unreleased]
9+
## 1.3.0 - 2020-11-14
1010

1111
### Added
1212

13-
### Changed
14-
15-
### Deprecated
16-
17-
### Removed
18-
19-
### Fixed
20-
21-
### Security
13+
* Enforce the use of strict comparisons.
14+
* Check for and disallow duplicate spaces everywhere.
2215

2316

24-
## [1.2.0] - 2020-09-05
17+
## 1.2.0 - 2020-09-05
2518

2619
### Added
2720

2821
* Revised rules for absolute class name references
2922

3023

31-
## [1.1.2] - 2020-08-28
24+
## 1.1.2 - 2020-08-28
3225

3326
### Fixed
3427

3528
* Use correct command prefixes
3629

3730

38-
## [1.1.1] - 2020-08-28
31+
## 1.1.1 - 2020-08-28
3932

4033
### Fixed
4134

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

4538

46-
## [1.1.0] - 2020-08-27
39+
## 1.1.0 - 2020-08-27
4740

4841
### Changed
4942

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

5245

53-
## [1.0.3] - 2020-08-21
46+
## 1.0.3 - 2020-08-21
5447

5548
### Fixed
5649

5750
* Allow bin dir in dist packages, avoiding Composer warnings
5851

5952

60-
## [1.0.2] - 2020-08-21
53+
## 1.0.2 - 2020-08-21
6154

6255
### Fixed
6356

6457
* Move ext-dom to require-dev
6558

6659

67-
## [1.0.1] - 2020-08-21
60+
## 1.0.1 - 2020-08-21
6861

6962
### Fixed
7063

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

7366

74-
## [1.0.0] - 2020-08-20
67+
## 1.0.0 - 2020-08-20
7568

7669
### Added
7770

7871
* Initial release of Ramsey coding standard
79-
80-
81-
[Unreleased]: https://github.com/ramsey/coding-standard/compare/1.2.0...HEAD
82-
[1.2.0]: https://github.com/ramsey/coding-standard/compare/1.1.2...1.2.0
83-
[1.1.2]: https://github.com/ramsey/coding-standard/compare/1.1.1...1.1.2
84-
[1.1.1]: https://github.com/ramsey/coding-standard/compare/1.1.0...1.1.1
85-
[1.1.0]: https://github.com/ramsey/coding-standard/compare/1.0.3...1.1.0
86-
[1.0.3]: https://github.com/ramsey/coding-standard/compare/1.0.2...1.0.3
87-
[1.0.2]: https://github.com/ramsey/coding-standard/compare/1.0.1...1.0.2
88-
[1.0.1]: https://github.com/ramsey/coding-standard/compare/1.0.0...1.0.1
89-
[1.0.0]: https://github.com/ramsey/coding-standard/commits/1.0.0

src/Ramsey/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,4 +451,10 @@
451451
<exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
452452
</rule>
453453

454+
<!-- Enforce the use of strict comparisons. -->
455+
<rule ref="Universal.Operators.StrictComparisons"/>
456+
457+
<!-- Checks duplicate spaces anywhere because there aren't sniffs for every part of code to check formatting. -->
458+
<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"/>
459+
454460
</ruleset>

0 commit comments

Comments
 (0)