Skip to content

Commit

Permalink
Remove cache/adapter-common & league/flysystem dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
e-adrien committed Jul 18, 2024
1 parent f1faaae commit 645c0e4
Show file tree
Hide file tree
Showing 33 changed files with 3,199 additions and 433 deletions.
29 changes: 29 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

[*.yml]
indent_style = space
indent_size = 2

[*.js]
indent_style = space
indent_size = 2

[*.php]
indent_style = space
indent_size = 4

[*.xml]
indent_style = space
indent_size = 2

[*.xml.dist]
indent_style = space
indent_size = 2
6 changes: 0 additions & 6 deletions .gitattributes

This file was deleted.

5 changes: 0 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

22 changes: 22 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": ["config:base"],
"timezone": "Europe/Paris",
"schedule": [
"after 10:00 am and before 5:00 pm on the first day of the month"
],
"rangeStrategy": "bump",
"packageRules": [
{
"matchDatasources": ["packagist"],
"stabilityDays": 3
},
{
"matchDatasources": ["packagist"],
"matchPackagePatterns": ["*"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch"
}
],
"ignorePaths": ["**/docs/**"]
}
46 changes: 46 additions & 0 deletions .github/workflows/quality-control.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: QC Checks

on:
push:
branches-ignore:
- renovate/*
- stable
- beta
tags-ignore:
- "**"

jobs:
checks:
name: QC Checks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"
coverage: none
tools: composer, cs2pr

- name: Composer install
run: |
composer install
./vendor/squizlabs/php_codesniffer/bin/phpcs --config-set installed_paths vendor/escapestudios/symfony2-coding-standard
- name: Check composer.json
run: composer validate

- name: PHPStan checks
run: vendor/bin/phpstan analyse

- name: PHPCS checks
continue-on-error: true
run: vendor/squizlabs/php_codesniffer/bin/phpcs --standard=./phpcs.xml --no-cache --parallel=1 --report-full --report-checkstyle=./phpcs-report.xml ./src ./tests

- name: Show PHPCS results in PR
run: cs2pr ./phpcs-report.xml

- name: PHPUnit tests
run: vendor/bin/phpunit
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/vendor/
vendor
composer.lock

composer.phar
.phpunit.cache/*
tests/tmp/*
7 changes: 7 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
])
->setLineEnding("\n");
12 changes: 12 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
printWidth: 120,
trailingComma: "es5",
overrides: [
{
files: [".eslintrc.js", ".prettierrc.js", "*.json"],
options: {
printWidth: 80,
},
},
],
};
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003
}
]
}
37 changes: 37 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"eslint.format.enable": true,
"files.exclude": {
"**/.git/**": true,
"**/vendor/**": true,
"**/.phpunit.cache/**": true
},
"search.exclude": {
"**/.git/**": true,
"**/vendor/**": true,
"**/.phpunit.cache/**": true
},
"files.watcherExclude": {
"**/.git/**": true,
"**/vendor/**": true,
"**/.phpunit.cache/**": true
},
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"phpcs.enable": true,
"phpcs.composerJsonPath": "composer.json",
"phpcs.standard": "./phpcs.xml",
"phpcs.showSources": true,
"phpcs.ignorePatterns": [ ],
"php-cs-fixer.config": ".php-cs-fixer.php",
"php-cs-fixer.onsave": false,
"phpstan.enabled": true,
"phpstan.enableLanguageServer": false,
"phpstan.binPath": "./vendor/bin/phpstan",
"phpstan.configFile": "./phpstan.neon",
"phpstan.timeout": 60000,
"[php]": {
"editor.defaultFormatter": "junstyle.php-cs-fixer"
},
}
Loading

0 comments on commit 645c0e4

Please sign in to comment.