Scrutinizer doesn't work with PHP 8 so remove it, update badges
This commit is contained in:
parent
e78f71aa67
commit
81319de7f1
|
|
@ -1,4 +1,4 @@
|
|||
name: "CI/CD"
|
||||
name: "Tests"
|
||||
|
||||
on: [push]
|
||||
|
||||
|
|
@ -67,9 +67,3 @@ jobs:
|
|||
|
||||
- name: Run tests
|
||||
run: ./vendor/bin/phpunit --configuration ./phpunit.xml.dist
|
||||
|
||||
- name: Downloading scrutinizer ocular.phar
|
||||
run: wget https://scrutinizer-ci.com/ocular.phar
|
||||
|
||||
- name: Uploading code coverage to scrutinizer
|
||||
run: php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml
|
||||
109
.scrutinizer.yml
109
.scrutinizer.yml
|
|
@ -1,109 +0,0 @@
|
|||
build:
|
||||
environment:
|
||||
php: '7.4.0'
|
||||
|
||||
before_commands:
|
||||
- "composer install --prefer-source"
|
||||
|
||||
tools:
|
||||
external_code_coverage:
|
||||
enabled: true
|
||||
timeout: 300
|
||||
runs: 2
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
php_code_coverage:
|
||||
enabled: false
|
||||
|
||||
php_code_sniffer:
|
||||
enabled: true
|
||||
config:
|
||||
standard: PSR2
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
# Copy/Paste Detector
|
||||
php_cpd:
|
||||
enabled: true
|
||||
excluded_dirs:
|
||||
- docs
|
||||
- examples
|
||||
- extras
|
||||
- test
|
||||
- vendor
|
||||
|
||||
# Analyzes the size and structure of a PHP project.
|
||||
php_loc:
|
||||
enabled: true
|
||||
excluded_dirs:
|
||||
- docs
|
||||
- examples
|
||||
- extras
|
||||
- test
|
||||
- vendor
|
||||
|
||||
# PHP Mess Detector (http://phpmd.org).
|
||||
php_mess_detector:
|
||||
enabled: true
|
||||
config:
|
||||
rulesets:
|
||||
- codesize
|
||||
- unusedcode
|
||||
- naming
|
||||
- design
|
||||
naming_rules:
|
||||
short_variable: { minimum: 2 }
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
# Analyzes the size and structure of a PHP project.
|
||||
php_pdepend:
|
||||
enabled: true
|
||||
excluded_dirs:
|
||||
- docs
|
||||
- examples
|
||||
- extras
|
||||
- test
|
||||
- vendor
|
||||
|
||||
# Runs Scrutinizer's PHP Analyzer Tool
|
||||
# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/config_reference
|
||||
php_analyzer:
|
||||
enabled: true
|
||||
config:
|
||||
checkstyle:
|
||||
enabled: true
|
||||
naming:
|
||||
enabled: true
|
||||
property_name: ^[_a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
|
||||
method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9_]*$ #Allow underscores & caps
|
||||
parameter_name: ^[a-z][a-zA-Z0-9_]*$ # Allow underscores
|
||||
local_variable: ^[a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps
|
||||
exception_name: ^[a-zA-Z][a-zA-Z0-9]*Exception$
|
||||
isser_method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9]*$ #Allow underscores & caps
|
||||
filter:
|
||||
excluded_paths:
|
||||
- 'docs/*'
|
||||
- 'examples/*'
|
||||
- 'extras/*'
|
||||
- 'test/*'
|
||||
- 'vendor/*'
|
||||
|
||||
# Security Advisory Checker
|
||||
sensiolabs_security_checker: true
|
||||
|
|
@ -2,11 +2,7 @@
|
|||
|
||||
# PHPMailer – A full-featured email creation and transfer class for PHP
|
||||
|
||||
Build status: [](https://travis-ci.org/PHPMailer/PHPMailer)
|
||||
[](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)
|
||||
[](https://scrutinizer-ci.com/g/PHPMailer/PHPMailer/)
|
||||
|
||||
[](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](http://phpmailer.github.io/PHPMailer/)
|
||||
[](https://github.com/PHPMailer/PHPMailer/actions) [](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](https://packagist.org/packages/phpmailer/phpmailer) [](http://phpmailer.github.io/PHPMailer/)
|
||||
|
||||
## Features
|
||||
- Probably the world's most popular code for sending email from PHP!
|
||||
|
|
|
|||
Loading…
Reference in New Issue