mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02:00
updated nette/coding-standard
This commit is contained in:
@@ -33,7 +33,6 @@ after_failure:
|
|||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: Nette Code Checker
|
- name: Nette Code Checker
|
||||||
php: 7.4
|
|
||||||
install:
|
install:
|
||||||
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
|
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
|
||||||
script:
|
script:
|
||||||
@@ -43,9 +42,9 @@ jobs:
|
|||||||
- name: Nette Coding Standard
|
- name: Nette Coding Standard
|
||||||
php: 7.4
|
php: 7.4
|
||||||
install:
|
install:
|
||||||
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
|
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress
|
||||||
script:
|
script:
|
||||||
- php temp/coding-standard/ecs check src tests examples --config tests/coding-standard.yml
|
- php temp/coding-standard/ecs check src tests
|
||||||
|
|
||||||
|
|
||||||
- stage: Static Analysis (informative)
|
- stage: Static Analysis (informative)
|
||||||
|
21
ecs.php
Normal file
21
ecs.php
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rules for Nette Coding Standard
|
||||||
|
* https://github.com/nette/coding-standard
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
||||||
|
return function (Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator): void {
|
||||||
|
$containerConfigurator->import(PRESET_DIR . '/php71.php');
|
||||||
|
|
||||||
|
$parameters = $containerConfigurator->parameters();
|
||||||
|
|
||||||
|
$parameters->set('skip', [
|
||||||
|
// issue #260
|
||||||
|
PhpCsFixer\Fixer\Operator\TernaryToNullCoalescingFixer::class => ['src/Dibi/HashMap.php'],
|
||||||
|
SlevomatCodingStandard\Sniffs\ControlStructures\RequireNullCoalesceOperatorSniff::class => ['src/Dibi/HashMap.php'],
|
||||||
|
]);
|
||||||
|
};
|
@@ -1,7 +0,0 @@
|
|||||||
imports:
|
|
||||||
- { resource: '../temp/coding-standard/coding-standard-php71.yml' }
|
|
||||||
|
|
||||||
parameters:
|
|
||||||
skip:
|
|
||||||
PhpCsFixer\Fixer\Operator\TernaryToNullCoalescingFixer:
|
|
||||||
- src/Dibi/HashMap.php # issue #260
|
|
Reference in New Issue
Block a user