Merge pull request #6762 from wallabag/enhance-composer

Add composer normalizer
This commit is contained in:
Nicolas Lœuillet 2023-07-26 15:25:50 +02:00 committed by GitHub
commit 0f44b2b75c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 441 additions and 33 deletions

View file

@ -49,3 +49,6 @@ jobs:
- name: "Run TwigCS" - name: "Run TwigCS"
run: "php bin/twigcs --severity=error --display=blocking --reporter checkstyle app/ src/ | cs2pr" run: "php bin/twigcs --severity=error --display=blocking --reporter checkstyle app/ src/ | cs2pr"
- name: "Run ergebnis/composer-normalize"
run: "composer normalize --dry-run --no-check-lock"

View file

@ -1,33 +1,38 @@
{ {
"name": "wallabag/wallabag", "name": "wallabag/wallabag",
"type": "project",
"description": "open source self hostable read-it-later web application", "description": "open source self hostable read-it-later web application",
"license": "MIT",
"type": "project",
"keywords": [ "keywords": [
"poche", "poche",
"wallabag", "wallabag",
"read-it-later", "read-it-later",
"read it later" "read it later"
], ],
"homepage": "https://github.com/wallabag/wallabag",
"license": "MIT",
"authors": [ "authors": [
{ {
"name": "Nicolas Lœuillet", "name": "Nicolas Lœuillet",
"email": "nicolas@loeuillet.org", "email": "nicolas@loeuillet.org",
"homepage": "http://www.cdetc.fr", "homepage": "https://nicolas.loeuillet.org",
"role": "Developer" "role": "Developer"
}, },
{ {
"name": "Thomas Citharel", "name": "Thomas Citharel",
"homepage": "http://tcit.fr", "homepage": "https://tcit.fr",
"role": "Developer" "role": "Developer"
}, },
{ {
"name": "Jérémy Benoist", "name": "Jérémy Benoist",
"homepage": "https://www.j0k3r.net", "homepage": "https://www.j0k3r.net",
"role": "Developer" "role": "Developer"
},
{
"name": "Kevin Decherf",
"homepage": "https://kdecherf.com/",
"role": "Developer"
} }
], ],
"homepage": "https://github.com/wallabag/wallabag",
"support": { "support": {
"email": "hello@wallabag.org", "email": "hello@wallabag.org",
"issues": "https://github.com/wallabag/wallabag/issues" "issues": "https://github.com/wallabag/wallabag/issues"
@ -130,6 +135,7 @@
"require-dev": { "require-dev": {
"dama/doctrine-test-bundle": "^7.1", "dama/doctrine-test-bundle": "^7.1",
"doctrine/doctrine-fixtures-bundle": "~3.0", "doctrine/doctrine-fixtures-bundle": "~3.0",
"ergebnis/composer-normalize": "^2.28",
"friendsofphp/php-cs-fixer": "~3.4", "friendsofphp/php-cs-fixer": "~3.4",
"friendsoftwig/twigcs": "^6.0", "friendsoftwig/twigcs": "^6.0",
"m6web/redis-mock": "^5.0", "m6web/redis-mock": "^5.0",
@ -145,25 +151,8 @@
"suggest": { "suggest": {
"ext-imagick": "To keep GIF animation when downloading image is enabled" "ext-imagick": "To keep GIF animation when downloading image is enabled"
}, },
"scripts": { "minimum-stability": "dev",
"post-cmd": [ "prefer-stable": true,
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"bin/console cache:clear --no-warmup",
"bin/console assets:install web --symlink --relative"
],
"post-install-cmd": [
"@post-cmd"
],
"post-update-cmd": [
"@post-cmd"
]
},
"extra": {
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"public-dir": "web"
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Wallabag\\": "src/Wallabag/" "Wallabag\\": "src/Wallabag/"
@ -182,16 +171,34 @@
] ]
}, },
"config": { "config": {
"allow-plugins": {
"phpstan/extension-installer": true,
"php-http/discovery": true,
"ergebnis/composer-normalize": true
},
"bin-dir": "bin", "bin-dir": "bin",
"platform": { "platform": {
"php": "7.4.29" "php": "7.4.29"
}, },
"sort-packages": true, "sort-packages": true
"allow-plugins": {
"phpstan/extension-installer": true,
"php-http/discovery": true
}
}, },
"minimum-stability": "dev", "extra": {
"prefer-stable": true "incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"public-dir": "web"
},
"scripts": {
"post-install-cmd": [
"@post-cmd"
],
"post-update-cmd": [
"@post-cmd"
],
"post-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"bin/console cache:clear --no-warmup",
"bin/console assets:install web --symlink --relative"
]
}
} }

402
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "6967f3b2aed578d054ad0cbf0f2e80da", "content-hash": "1f7c20bf034c1595dacf792986d5d42a",
"packages": [ "packages": [
{ {
"name": "babdev/pagerfanta-bundle", "name": "babdev/pagerfanta-bundle",
@ -12236,6 +12236,274 @@
], ],
"time": "2023-05-02T15:12:16+00:00" "time": "2023-05-02T15:12:16+00:00"
}, },
{
"name": "ergebnis/composer-normalize",
"version": "2.28.3",
"source": {
"type": "git",
"url": "https://github.com/ergebnis/composer-normalize.git",
"reference": "ec75a2bf751f6fec165e9ea0262655b8ca397e5c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ergebnis/composer-normalize/zipball/ec75a2bf751f6fec165e9ea0262655b8ca397e5c",
"reference": "ec75a2bf751f6fec165e9ea0262655b8ca397e5c",
"shasum": ""
},
"require": {
"composer-plugin-api": "^2.0.0",
"ergebnis/json-normalizer": "~2.1.0",
"ergebnis/json-printer": "^3.2.0",
"justinrainbow/json-schema": "^5.2.12",
"localheinz/diff": "^1.1.1",
"php": "^7.4 || ^8.0"
},
"require-dev": {
"composer/composer": "^2.3.9",
"ergebnis/license": "^1.2.0",
"ergebnis/php-cs-fixer-config": "^4.4.0",
"fakerphp/faker": "^1.19.0",
"phpunit/phpunit": "^9.5.21",
"psalm/plugin-phpunit": "~0.17.0",
"symfony/filesystem": "^5.4.9",
"vimeo/psalm": "^4.24.0"
},
"type": "composer-plugin",
"extra": {
"class": "Ergebnis\\Composer\\Normalize\\NormalizePlugin",
"composer-normalize": {
"indent-size": 2,
"indent-style": "space"
}
},
"autoload": {
"psr-4": {
"Ergebnis\\Composer\\Normalize\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Andreas Möller",
"email": "am@localheinz.com"
}
],
"description": "Provides a composer plugin for normalizing composer.json.",
"homepage": "https://github.com/ergebnis/composer-normalize",
"keywords": [
"composer",
"normalize",
"normalizer",
"plugin"
],
"support": {
"issues": "https://github.com/ergebnis/composer-normalize/issues",
"source": "https://github.com/ergebnis/composer-normalize"
},
"time": "2022-07-05T16:09:10+00:00"
},
{
"name": "ergebnis/json-normalizer",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://github.com/ergebnis/json-normalizer.git",
"reference": "2039eb11131a243b9204bf51219baa08935e6b1d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ergebnis/json-normalizer/zipball/2039eb11131a243b9204bf51219baa08935e6b1d",
"reference": "2039eb11131a243b9204bf51219baa08935e6b1d",
"shasum": ""
},
"require": {
"ergebnis/json-printer": "^3.2.0",
"ergebnis/json-schema-validator": "^2.0.0",
"ext-json": "*",
"justinrainbow/json-schema": "^5.2.11",
"php": "^7.4 || ^8.0"
},
"require-dev": {
"ergebnis/data-provider": "^1.0.0",
"ergebnis/license": "^1.2.0",
"ergebnis/php-cs-fixer-config": "^3.4.0",
"fakerphp/faker": "^1.17.0",
"infection/infection": "~0.25.5",
"phpunit/phpunit": "^9.5.11",
"psalm/plugin-phpunit": "~0.16.1",
"vimeo/psalm": "^4.17.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Ergebnis\\Json\\Normalizer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Andreas Möller",
"email": "am@localheinz.com"
}
],
"description": "Provides generic and vendor-specific normalizers for normalizing JSON documents.",
"homepage": "https://github.com/ergebnis/json-normalizer",
"keywords": [
"json",
"normalizer"
],
"support": {
"issues": "https://github.com/ergebnis/json-normalizer/issues",
"source": "https://github.com/ergebnis/json-normalizer"
},
"funding": [
{
"url": "https://github.com/localheinz",
"type": "github"
}
],
"time": "2022-01-04T11:19:55+00:00"
},
{
"name": "ergebnis/json-printer",
"version": "3.2.0",
"source": {
"type": "git",
"url": "https://github.com/ergebnis/json-printer.git",
"reference": "651cab2b7604a6b338d0d16749f5ea0851a68005"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ergebnis/json-printer/zipball/651cab2b7604a6b338d0d16749f5ea0851a68005",
"reference": "651cab2b7604a6b338d0d16749f5ea0851a68005",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-mbstring": "*",
"php": "^7.4 || ^8.0"
},
"require-dev": {
"ergebnis/license": "^1.1.0",
"ergebnis/php-cs-fixer-config": "^3.4.0",
"fakerphp/faker": "^1.17.0",
"infection/infection": "~0.25.5",
"phpunit/phpunit": "^9.5.11",
"psalm/plugin-phpunit": "~0.16.1",
"vimeo/psalm": "^4.16.1"
},
"type": "library",
"autoload": {
"psr-4": {
"Ergebnis\\Json\\Printer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Andreas Möller",
"email": "am@localheinz.com"
}
],
"description": "Provides a JSON printer, allowing for flexible indentation.",
"homepage": "https://github.com/ergebnis/json-printer",
"keywords": [
"formatter",
"json",
"printer"
],
"support": {
"issues": "https://github.com/ergebnis/json-printer/issues",
"source": "https://github.com/ergebnis/json-printer"
},
"funding": [
{
"url": "https://github.com/localheinz",
"type": "github"
}
],
"time": "2021-12-27T12:39:13+00:00"
},
{
"name": "ergebnis/json-schema-validator",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/ergebnis/json-schema-validator.git",
"reference": "dacd8a47c1cc2c426ec71e952da3609ebe901fac"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ergebnis/json-schema-validator/zipball/dacd8a47c1cc2c426ec71e952da3609ebe901fac",
"reference": "dacd8a47c1cc2c426ec71e952da3609ebe901fac",
"shasum": ""
},
"require": {
"ext-json": "*",
"justinrainbow/json-schema": "^5.2.10",
"php": "^7.4 || ^8.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.18.0",
"ergebnis/data-provider": "^1.0.0",
"ergebnis/license": "^1.1.0",
"ergebnis/php-cs-fixer-config": "~3.4.0",
"fakerphp/faker": "^1.17.0",
"infection/infection": "~0.25.3",
"phpunit/phpunit": "~9.5.10",
"psalm/plugin-phpunit": "~0.16.1",
"vimeo/psalm": "^4.15.0"
},
"type": "library",
"extra": {
"composer-normalize": {
"indent-size": 2,
"indent-style": "space"
}
},
"autoload": {
"psr-4": {
"Ergebnis\\Json\\SchemaValidator\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Andreas Möller",
"email": "am@localheinz.com"
}
],
"description": "Provides a JSON schema validator, building on top of justinrainbow/json-schema.",
"homepage": "https://github.com/ergebnis/json-schema-validator",
"keywords": [
"json",
"schema",
"validator"
],
"support": {
"issues": "https://github.com/ergebnis/json-schema-validator/issues",
"source": "https://github.com/ergebnis/json-schema-validator"
},
"funding": [
{
"url": "https://github.com/localheinz",
"type": "github"
}
],
"time": "2021-12-13T16:54:56+00:00"
},
{ {
"name": "friendsofphp/php-cs-fixer", "name": "friendsofphp/php-cs-fixer",
"version": "v3.4.0", "version": "v3.4.0",
@ -12380,6 +12648,136 @@
}, },
"time": "2023-01-04T16:01:24+00:00" "time": "2023-01-04T16:01:24+00:00"
}, },
{
"name": "justinrainbow/json-schema",
"version": "5.2.12",
"source": {
"type": "git",
"url": "https://github.com/justinrainbow/json-schema.git",
"reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/ad87d5a5ca981228e0e205c2bc7dfb8e24559b60",
"reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1",
"json-schema/json-schema-test-suite": "1.2.0",
"phpunit/phpunit": "^4.8.35"
},
"bin": [
"bin/validate-json"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.0.x-dev"
}
},
"autoload": {
"psr-4": {
"JsonSchema\\": "src/JsonSchema/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bruno Prieto Reis",
"email": "bruno.p.reis@gmail.com"
},
{
"name": "Justin Rainbow",
"email": "justin.rainbow@gmail.com"
},
{
"name": "Igor Wiedler",
"email": "igor@wiedler.ch"
},
{
"name": "Robert Schönthal",
"email": "seroscho@googlemail.com"
}
],
"description": "A library to validate a json schema.",
"homepage": "https://github.com/justinrainbow/json-schema",
"keywords": [
"json",
"schema"
],
"support": {
"issues": "https://github.com/justinrainbow/json-schema/issues",
"source": "https://github.com/justinrainbow/json-schema/tree/5.2.12"
},
"time": "2022-04-13T08:02:27+00:00"
},
{
"name": "localheinz/diff",
"version": "1.1.1",
"source": {
"type": "git",
"url": "https://github.com/localheinz/diff.git",
"reference": "851bb20ea8358c86f677f5f111c4ab031b1c764c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/localheinz/diff/zipball/851bb20ea8358c86f677f5f111c4ab031b1c764c",
"reference": "851bb20ea8358c86f677f5f111c4ab031b1c764c",
"shasum": ""
},
"require": {
"php": "^7.1 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5 || ^8.0",
"symfony/process": "^4.2 || ^5"
},
"type": "library",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
{
"name": "Kore Nordmann",
"email": "mail@kore-nordmann.de"
}
],
"description": "Fork of sebastian/diff for use with ergebnis/composer-normalize",
"homepage": "https://github.com/localheinz/diff",
"keywords": [
"diff",
"udiff",
"unidiff",
"unified diff"
],
"support": {
"source": "https://github.com/localheinz/diff/tree/main"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
}
],
"time": "2020-07-06T04:49:32+00:00"
},
{ {
"name": "m6web/redis-mock", "name": "m6web/redis-mock",
"version": "v5.6.0", "version": "v5.6.0",
@ -13100,5 +13498,5 @@
"platform-overrides": { "platform-overrides": {
"php": "7.4.29" "php": "7.4.29"
}, },
"plugin-api-version": "2.3.0" "plugin-api-version": "2.2.0"
} }