Commit Graph

58 Commits

Author SHA1 Message Date
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
b2e5952896 Update code sniffer rules to require space after keywords
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
ca3b6412ee Fix exception class in mailpoet custom sniff
[MAILPOET-1542]
2018-10-11 15:23:06 +02:00
7c9b2be760 Update PHPCompatibility standard and PHP_CodeSniffer
[MAILPOET-1542]
2018-10-11 14:02:13 +02:00
feae98ac3f Use a single ruleset for both the plugin and its tests [MAILPOET-1025] 2017-07-26 18:56:14 +03:00
6fb18ad321 Fix PSR1.Classes.ClassDeclaration sniffer rule in tests [MAILPOET-1025] 2017-07-26 18:28:56 +03:00
321393f119 Fix Squiz.Classes.ClassFileName sniffer rule in tests [MAIPOET-1025] 2017-07-26 17:03:43 +03:00
0be872eea9 Fix PHPCompatibility.PHP.EmptyNonVariable rule [MAILPOET-989] 2017-07-07 11:30:16 +03:00
22c39c0092 Fix PEAR.WhiteSpace.ScopeClosingBrace rule in tests [MAILPOET-989] 2017-07-07 11:11:16 +03:00
a49a230983 Disable a few failing rules for further fixing [MAILPOET-981] 2017-07-03 14:57:48 +03:00