Skip to content

Commit

Permalink
Merge pull request #6 from tmihalicka/master
Browse files Browse the repository at this point in the history
PHP 7.4, Symfony 5.0 and static analysis
  • Loading branch information
Martin Fris authored Feb 24, 2021
2 parents 3c32a51 + 2188f5d commit bf77c9c
Show file tree
Hide file tree
Showing 27 changed files with 8,654 additions and 406 deletions.
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;
45 changes: 0 additions & 45 deletions Command/AbstractCommand.php

This file was deleted.

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.

Loading

0 comments on commit bf77c9c

Please sign in to comment.