Rostislav Wolny
64b591f70b
Update php code sniffer packages
...
[MAILPOER-3889]
2021-10-28 15:44:18 +02:00
Pavel Dohnal
ec86e742c2
Fix coding standards
...
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
21839fc30b
Fix indentation of multiline function declarations
...
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
150862d986
Add a rule to enforce multiline constructors
...
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00
Jan Lysý
42a3d01b77
Update CodeSniffer dependencies
...
[MAILPOET-3725]
2021-08-16 15:56:39 +02:00
Rostislav Wolny
8e0cbc9626
Remove deprecated rule from code sniffer
...
See bcbf756f05 (diff-0816e9a78035205a67cca7c38cb5c4870365492c7179ab30115a274a583ef0e5)
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Rostislav Wolny
65b834a9ff
Update renamed NotCamelCaps rule
...
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Rostislav Wolny
76fe9082a3
Update php code sniffer packages
...
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Pavel Dohnal
bf7c4e6b58
Add PHP_CodeSniffer Standards Composer Installer Plugin
2021-04-23 11:13:38 +02:00
Rodrigo Primo
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
Rostislav Wolny
b4ee9a756a
Update codesniffer to PHP8 compatible version
...
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Jan Lysý
bcd606ac1b
Change php-console-highlighter source repository
...
[MAILPOET-3192]
2020-11-19 16:22:50 +01:00
Jan Lysý
02220bfaa4
Change php-parallel-lint source repository
...
[MAILPOET-3192]
2020-11-19 16:22:50 +01:00
Rostislav Wolny
9c5cbb477b
Update platform to php 7.1.8 in code sniffer
...
[MAILPOET-3241]
2020-10-28 09:55:55 +01:00
Jan Jakeš
f56cd6934f
Add CodeSniffer rule for opening brace of class/interface/trait
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
707eb399a8
Add CodeSniffer rule for unused "use" statements
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
ec6ecdb79e
Add CodeSniffer rules for parameter, property, and return typehint spacing
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
53f2614c02
Add CodeSniffer rule for declaring class properties
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
153c72cd77
Autofix long scalar typehints to short ones
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
56286bfd11
Add CodeSniffer rule enforcing short scalar typehint variants
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
73963bd37a
Add CodeSniffer rule for empty lines between methods
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
e640395589
Move indentation rules to a custom section
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
4e538cbcf7
Move other class/interface related rules to their section
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
b160df9ea7
Add CodeSniffer rule to check for duplicate class name
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
30f461a95c
Add CodeSniffer rule to enforce lowercase 'class' keyword
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
3a9f806641
Add rule to disable inline HTML in PHP (exclude Widget.php)
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
36e25621e6
Move other file-related sniffs to the same section
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
d9db919651
Add CodeSniffer rule to enforce newline at end of file
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
f6a993f731
Update Code Sniffer packages
...
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
3bbc8ea2af
Convert variable names to camel case in strings
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
8c848cfa28
Convert property names to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
54549ff037
Convert variable names to camel case
...
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Amine Ben hammou
ec409042d5
Add methods visibility rule
...
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Rostislav Wolny
d3ce76f88d
Use instance of checks for detecting WCProduct
...
[MAILPOET-2586]
2019-12-19 18:08:26 +00:00
Pavel Dohnal
20ad724a98
Improve code sniffer settings
...
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
Pavel Dohnal
d8facf9512
Mark doctrine properties always used
...
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
Jan Jakeš
7ecabdba3a
Check also tasks and tools with code sniffer
...
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00
Jan Jakeš
5214e93787
Add sniff for use empty line spacing, fix found occurences
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
fa9b6443e1
Add one namespace in file rule
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
935d9f01e8
Add sniff for alphabetically sorted use statements
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
37adffaeb6
Add sniff for namespace empty line spacing
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
8f75a18f6c
Add sniff for useless aliases, fix found occurence
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
200dcaeca5
Add sniff to disallow group namespace use
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
2e98044b3d
Add sniffs for namespace declaration format
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Jan Jakeš
c441d9c81d
Extract namespace "use" rules to a section
...
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
Pavel Dohnal
406b8fdb74
Add rule for namespaces
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Pavel Dohnal
39cb25d576
Add rule for empty comments
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Pavel Dohnal
5d64ec168d
Add rule for concatenation operator spacing
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Pavel Dohnal
12ff88ee21
Add rule for operator spacing
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
Pavel Dohnal
5da7110eb6
Use short array syntax
...
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00