Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.4, Symfony 5.0 and static analysis #6

Merged
merged 4 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
root=true
[*]
charset=utf-8
indent_style=space
indent_size=4
tab_width=4
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=true

[*.{yaml,yml}]
indent_size=2
tab_width=2

[*.{js,ts,jsx,tsx}]
indent_size=2
tab_width=2

[*.hcl]
indent_size=2
tab_width=2

[Makefile]
indent_style=tab

[Jenkinsfile]
indent_size=2
tab_width=2

[*.sh]
end_of_line=lf

[*.md]
trim_trailing_whitespace=false

[*.{xml,xsd}]
max_line_length=off
indent_size=2
tab_width=2

[*.json]
indent_size=2
tab_width=2
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on: [push]

jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
- uses: php-actions/phpunit@v2
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/vendor

composer.lock
.idea
.idea/
/.php_cs.cache
/.phpcs-cache
.phpunit.result.cache
.DS_Store
vendor/
22 changes: 22 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'array_syntax' => [
'syntax' => 'short',
],
'no_useless_else' => true,
'no_useless_return' => true,
'strict_comparison' => true,
'strict_param' => true,
'no_unused_imports' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('config')
->in(__DIR__)
);

return $config;
32 changes: 0 additions & 32 deletions DependencyInjection/Compiler/LoggerPass.php

This file was deleted.

77 changes: 0 additions & 77 deletions Tests/DataCollector/RequestLogDataCollectorTest.php

This file was deleted.

198 changes: 0 additions & 198 deletions Tests/DependencyInjection/OdeskPhystrixExtensionTest.php

This file was deleted.

Loading