mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 14:46:50 +02:00
updated nette/coding-standard
This commit is contained in:
@@ -33,7 +33,6 @@ after_failure:
|
||||
jobs:
|
||||
include:
|
||||
- name: Nette Code Checker
|
||||
php: 7.4
|
||||
install:
|
||||
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
|
||||
script:
|
||||
@@ -43,9 +42,9 @@ jobs:
|
||||
- name: Nette Coding Standard
|
||||
php: 7.4
|
||||
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:
|
||||
- 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)
|
||||
|
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