Commit Graph

43 Commits

Author SHA1 Message Date
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
b8d285a1d9 Add a copy of MailPoet PHP coding standard for tests [MAILPOET-981] 2017-07-03 14:54:04 +03:00
864c9cbe95 - Updates code sniffer rules to run PHP Compatibility sniff 2016-11-05 19:54:54 -04:00
0b711e6341 Add running QA scripts in CI, disable checking for useless overrides 2016-11-02 13:10:23 +02:00
d0813bb4e2 Fix class and method names to use camel case 2016-06-30 18:52:07 +03:00
235fdea00f Remove commented out code, raise code similarity trigger treshold 2016-06-30 18:50:48 +03:00
ad0a9838bc Disable line width limits 2016-06-30 18:46:33 +03:00
81ec293e54 Remove rule that prevents statements with only comments in body 2016-06-30 18:46:32 +03:00
805e641d40 Add PHP lint and PHP code sniffer 2016-06-30 18:46:32 +03:00