8e0cbc9626
Remove deprecated rule from code sniffer
...
See bcbf756f05 (diff-0816e9a78035205a67cca7c38cb5c4870365492c7179ab30115a274a583ef0e5)
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
65b834a9ff
Update renamed NotCamelCaps rule
...
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
76fe9082a3
Update php code sniffer packages
...
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
bf7c4e6b58
Add PHP_CodeSniffer Standards Composer Installer Plugin
2021-04-23 11:13:38 +02:00
70138089d7
PHPCS: set the supported PHP versions in the ruleset file
...
This commit moves the definition of the supported PHP versions from
RoboFile.php file to the PHPCS configuration file, ruleset.xml. This
should make it easier to configure PHPCS in other places like the IDE.
I also removed the constraint of the highest supported PHP version
(previously, it was hard-coded to 8.0) as I believe we support new PHP
versions as soon as they are released. With this change, we don't need to
remember to update testVersion tag whenever there is a new PHP version.
[MAILPOET-3439]
2021-02-22 15:31:56 +03:00
b4ee9a756a
Update codesniffer to PHP8 compatible version
...
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
bcd606ac1b
Change php-console-highlighter source repository
...
[MAILPOET-3192]
2020-11-19 16:22:50 +01:00
02220bfaa4
Change php-parallel-lint source repository
...
[MAILPOET-3192]
2020-11-19 16:22:50 +01:00
9c5cbb477b
Update platform to php 7.1.8 in code sniffer
...
[MAILPOET-3241]
2020-10-28 09:55:55 +01:00
f56cd6934f
Add CodeSniffer rule for opening brace of class/interface/trait
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
707eb399a8
Add CodeSniffer rule for unused "use" statements
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
ec6ecdb79e
Add CodeSniffer rules for parameter, property, and return typehint spacing
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
53f2614c02
Add CodeSniffer rule for declaring class properties
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
153c72cd77
Autofix long scalar typehints to short ones
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
56286bfd11
Add CodeSniffer rule enforcing short scalar typehint variants
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
73963bd37a
Add CodeSniffer rule for empty lines between methods
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
e640395589
Move indentation rules to a custom section
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
4e538cbcf7
Move other class/interface related rules to their section
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
b160df9ea7
Add CodeSniffer rule to check for duplicate class name
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
30f461a95c
Add CodeSniffer rule to enforce lowercase 'class' keyword
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
3a9f806641
Add rule to disable inline HTML in PHP (exclude Widget.php)
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
36e25621e6
Move other file-related sniffs to the same section
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
d9db919651
Add CodeSniffer rule to enforce newline at end of file
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
f6a993f731
Update Code Sniffer packages
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
3bbc8ea2af
Convert variable names to camel case in strings
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
8c848cfa28
Convert property names to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
54549ff037
Convert variable names to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
ec409042d5
Add methods visibility rule
...
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
d3ce76f88d
Use instance of checks for detecting WCProduct
...
[MAILPOET-2586]
2019-12-19 18:08:26 +00:00
20ad724a98
Improve code sniffer settings
...
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
d8facf9512
Mark doctrine properties always used
...
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
7ecabdba3a
Check also tasks and tools with code sniffer
...
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
5214e93787
Add sniff for use empty line spacing, fix found occurences
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
fa9b6443e1
Add one namespace in file rule
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
935d9f01e8
Add sniff for alphabetically sorted use statements
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
37adffaeb6
Add sniff for namespace empty line spacing
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
8f75a18f6c
Add sniff for useless aliases, fix found occurence
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
200dcaeca5
Add sniff to disallow group namespace use
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
2e98044b3d
Add sniffs for namespace declaration format
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
c441d9c81d
Extract namespace "use" rules to a section
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
406b8fdb74
Add rule for namespaces
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
39cb25d576
Add rule for empty comments
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
5d64ec168d
Add rule for concatenation operator spacing
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
12ff88ee21
Add rule for operator spacing
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
5da7110eb6
Use short array syntax
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
9f16cb6a5f
Check for unused privates
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
9c64537761
Disallows use of continue without integer operand in switch
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
d1529a03c3
Disallows assignments in some control structures
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
b9af15e19f
Enforce array trailling commas
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
fcf5fe1d5d
Move code snipper to its own directory
...
Because our main composer has php engine specified as 5.6
we cannot use tools and libraries dependent on php 7
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00