Skip to content

Commit

Permalink
ci: use composer-normalize PHAR to lint composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 11, 2024
1 parent d86a1e0 commit 7117486
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 27 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ lint-deps: ## Runs composer-require-checker – checks for dependencies that are
.PHONY: lint-deps

lint-composer: ## Normalize composer.json and composer.lock files
$(APP_COMPOSER) normalize
$(APP_RUNNER) .phive/composer-normalize normalize
.PHONY: lint-composer

lint-audit: ## Runs security checks for composer dependencies
Expand Down Expand Up @@ -289,4 +289,3 @@ test-cc: ## Run project php-unit and pest tests in coverage mode and build repor
commit:
czg commit --config="./.github/.cz.config.js"
.PHONY: commit

63 changes: 38 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
{
"name": "buggregator/trap",
"type": "library",
"license": "BSD-3-Clause",
"description": "A simple and powerful tool for debugging PHP applications.",
"homepage": "https://buggregator.dev/",
"license": "BSD-3-Clause",
"type": "library",
"keywords": [
"debug", "cli", "console", "sentry", "smtp", "dump", "binary dump", "websockets", "server", "helper", "dev"
"debug",
"cli",
"console",
"sentry",
"smtp",
"dump",
"binary dump",
"websockets",
"server",
"helper",
"dev"
],
"authors": [
{
Expand All @@ -17,22 +26,7 @@
"homepage": "https://github.com/butschster"
}
],
"autoload": {
"psr-4": {
"Buggregator\\Trap\\": "src/"
},
"files": [
"src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Buggregator\\Trap\\Tests\\": "tests/"
}
},
"bin": [
"bin/trap"
],
"homepage": "https://buggregator.dev/",
"funding": [
{
"type": "github",
Expand All @@ -47,11 +41,6 @@
"url": "https://patreon.com/butschster"
}
],
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"ext-sockets": "*",
Expand All @@ -77,6 +66,30 @@
"ext-simplexml": "To load trap.xml",
"roxblnfk/unpoly": "If you want to remove unnecessary PHP polyfills depend on PHP version."
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Buggregator\\Trap\\": "src/"
},
"files": [
"src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Buggregator\\Trap\\Tests\\": "tests/"
}
},
"bin": [
"bin/trap"
],
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"sort-packages": true
},
"scripts": {
"cs-check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run",
"cs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -vvv --using-cache=no"
Expand Down

0 comments on commit 7117486

Please sign in to comment.