Commit Graph

18 Commits

Author SHA1 Message Date
Zach Borboa 314f373a17 Move long lines check to PHP_CodeSniffer 2023-07-01 06:43:51 -07:00
Zach Borboa 9bd4776b73 Apply additional coding standards 2023-06-30 00:37:30 -07:00
Zach Borboa 128a0c1ea2 Add PHP-CS-Fixer to check for unused imports 2023-06-24 19:33:48 -07:00
Zach Borboa 2a73070caf Run PHPCompatibility on PHP 7.2 and higher
Error message:

++ phpcs_to_use=vendor/bin/phpcs
++ vendor/bin/phpcs --version
PHP_CodeSniffer version 3.7.2 (stable) by Squiz (http://www.squiz.net)
++ vendor/bin/phpcs --extensions=php '--ignore=*/vendor/*' --standard=tests/ruleset.xml -p -s .
W...........................................................  60 / 116 (52%)
........................................................     116 / 116 (100%)

FILE: ...me/runner/work/php-curl-class/php-curl-class/examples/custom.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 1 | WARNING | IMPORTANT: Please be advised that for the most
   |         | reliable PHPCompatibility results, PHP 7.2 or higher
   |         | should be used. Support for lower versions will be
   |         | dropped in the foreseeable future. You are currently
   |         | using PHP 7.0.33-65+ubuntu22.04.1+deb.sury.org+1.
   |         | Please upgrade your PHP installation to version 7.2 or
   |         | higher.
   |         |
   |         | To disable this notice, add
   |         | --exclude=PHPCompatibility.Upgrade.LowPHP to your
   |         | command or add <exclude
   |         | name="PHPCompatibility.Upgrade.LowPHP.BelowRecommended_7_2"/>
   |         | to your custom ruleset.
   |         |
   |         | Thank you for using PHPCompatibility!
   |         | (PHPCompatibility.Upgrade.LowPHP.BelowRecommended_7_2)
----------------------------------------------------------------------
2023-05-20 10:41:23 -07:00
Zach Borboa 5b39126488 Update article in Curl::diagnose() Allow header warning 2023-05-07 02:50:08 -07:00
Zach Borboa 3ff53bfbdf Replace egrep with grep --extended-regexp' (grep -E')
Warning message:
    egrep: warning: egrep is obsolescent; using grep -E
2022-09-23 07:14:56 -07:00
Zach Borboa a4d91d28ba Run check coding standard commands from the project root directory 2021-09-21 15:21:21 -04:00
Zach Borboa 4c20e12f5b Exclude website files from long lines check 2021-03-20 09:48:38 -04:00
Zach Borboa 32797071c7 Replace error count with error summary 2021-03-19 21:31:47 -04:00
Zach Borboa 05a1a21090 Remove official support of HHVM
As of HHVM 4.0, PHP is no longer supported:
    "With this release, we no longer aim to be compatible with PHP"
    "We are considering removing support for <?php in the next release [...]"
2021-03-17 09:33:50 -04:00
Zach Borboa d946b02b89 Clean up references of the previous continuous integration 2021-03-17 01:07:48 -04:00
Zach Borboa 1c0bbeaee4 Use vendor phpcs when available 2021-03-13 09:15:47 -05:00
Zach Borboa c6fd8accfb Allow method chaining indentation 2021-03-12 21:51:56 -05:00
Zach Borboa 4fad7d7081 Colorize invalid indentation message 2021-03-12 21:42:53 -05:00
Zach Borboa 780c55dd32 Clean up 2021-03-12 21:12:47 -05:00
Zach Borboa f7ab8ed3ce Include tests directory when checking for invalid indentation 2021-03-12 21:10:12 -05:00
Zach Borboa e475432804 Move additional coding standards checks into separate script 2021-03-12 20:25:14 -05:00
Zach Borboa 3a6f673b83 Rename script to more accurately reflect actions taken 2018-04-29 01:05:40 -07:00