Skip to content
Snippets Groups Projects
Commit 17b4696a authored by Thibault Debatty's avatar Thibault Debatty
Browse files

add unused-scanner

parent af059588
No related branches found
No related tags found
No related merge requests found
Pipeline #11630 passed
......@@ -24,6 +24,7 @@ test:php74:
- vendor/bin/phpunit --coverage-text --colors=never
- vendor/bin/phpcs
- vendor/bin/phpstan analyze --memory-limit=512M
- vendor/bin/unused_scanner unused-scanner.php
test:dependencies:
image: cylab/php74
......
......@@ -7,12 +7,10 @@
"require": {
"php": ">=7.4",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "~4.0",
"guzzlehttp/guzzle": "~6.0",
"fideloper/proxy": "^4.4",
"guzzlehttp/guzzle": "^7.7",
"laravel/framework": "^6.0",
"laravel/helpers": "^1.2",
"laravel/tinker": "~1.0",
"php-ai/php-ml": "^0.9.0",
"predis/predis": "^2.2"
},
"require-dev": {
......@@ -20,6 +18,7 @@
"barryvdh/laravel-ide-helper": "^2.5",
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"insolita/unused-scanner": "^2.4",
"mockery/mockery": "~1.0",
"nunomaduro/larastan": "^1.0.4",
"phpunit/phpunit": "~7.0",
......@@ -62,6 +61,9 @@
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
"optimize-autoloader": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
This diff is collapsed.
<?php
$projectPath = __DIR__ ;
//Declare directories which contains php code
$scanDirectories = [
$projectPath . '/src/',
];
//Optionally declare standalone files
$scanFiles = [
];
return [
'composerJsonPath' => $projectPath . '/composer.json',
'vendorPath' => $projectPath . '/vendor/',
'scanDirectories' => $scanDirectories,
'scanFiles' => $scanFiles,
'skipPackages' => [
"laravel/framework",
"guzzlehttp/guzzle", // unused in app/Sensor/ClientVersion, but not detected
"fideloper/proxy", // used by laravel
"predis/predis", // to use Redis for cache and sessions
"doctrine/dbal"] // to run some migrations
];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment