Skip to content

Tags: ProtonMail/php-coding-standard

Tags

v6.0.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Remove UnusedFunctionParameter sniff (#17)

* Remove UnusedFunctionParameter sniff

* Update expected_csv.txt

v6.0.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix DeclareStrictTypes property names (#16)

* Fix DeclareStrictTypes property names

v6.0.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Removed PHP 7.4 support + added new sniff for space at (inline) comme…

…nt (#15)

* - added sniff for abstract class naming convention;
- added sniff for interface naming convention;
- added basic tests (consistent to existing ones);

* - code styling;

* - code styling;

* - enable worflow;

* - added some debugging output for fixing/checking the github workflow;

* - fix expected result;

* - revert workflow changes;

* - added return type hint;

* - check only class on AbstractClassNameSniff;
- optimized reading of the class name;

* cleanup;

* debugging testing output;

* removed test debugging output;

* - activate DisallowMultipleAssignment (only one assignment per line);
- activate AssignmentInCondition rule;
- replace custom AbstractClassNameSniff by existing AbstractClassNamePrefix;
- replace custom InterfaceNameSniff by existing InterfaceNameSuffix;
- cleanup;

* - removed testing debug;
- update expected test output;

* - check for trait naming;

* - removed testing output;

* added more cs rules;

* - removed testing output;

* - error instead of warning;

* - removed debug output;

* - added new sniff for detecting wrong comments (based on PEAR.Commenting.InlineComment but checks for missing leading space after comment start);

* - added test script (composer) for diff/fix;

* - removed test output;

* - removed PHP 7.4 from composer.json;

* - separation of concerns;

* - update test;

Co-authored-by: Richard Prillwitz <richard.prillwitz@proton.ch>

v5.2.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Avoid checking abstract functions (#13)

* - added sniff for abstract class naming convention;
- added sniff for interface naming convention;
- added basic tests (consistent to existing ones);

* - code styling;

* - code styling;

* - enable worflow;

* - added some debugging output for fixing/checking the github workflow;

* - fix expected result;

* - revert workflow changes;

* - added return type hint;

* - check only class on AbstractClassNameSniff;
- optimized reading of the class name;

* cleanup;

* debugging testing output;

* removed test debugging output;

Co-authored-by: Richard Prillwitz <richard.prillwitz@proton.ch>

v5.2.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Naming sniffs (#11)

- added sniff for abstract class naming convention
- added sniff for interface naming convention
- added basic tests (consistent to existing ones)
- enable worflow
- added some debugging output for fixing/checking the github workflow
- fix expected result
- added return type hint

v5.1.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #10 from ProtonMail/enforce-typehints-1

Add SlevomatCodingStandard.TypeHints.ParameterTypeHint/ReturnTypeHint/PropertyTypeHint rules

v5.0.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #8 from ProtonMail/slevomat-coding-standard-v8-1

Bumb slevomat/coding-standard to v8, add new rules

v4.2.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #7 from mathroc/patch-1

Add the Namespaces.DisallowGroupUse rule

v4.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Upgrade PHP dependency to 7.4

v4.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #6 from ProtonMail/upgrade-slevomat-coding-standard-1

Upgrade slevomat/coding-standard to v7.0 and fine-tune ruleset