Skip to content

Commit f683a58

Browse files
committed
Tools - use deptrac/deptrac instead of abandoned qossmic/deptrac-shim
1 parent 132dac6 commit f683a58

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.phpqa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ psalm:
8989
memoryLimit: null
9090

9191
deptrac:
92-
depfile: null # depfile.yml (https://github.com/qossmic/deptrac#the-depfile)
92+
depfile: null # depfile.yml (https://github.com/deptrac/deptrac/blob/main/docs/index.md#configuration)
9393

9494
security-checker:
9595
composerLock: null # use it if composer.lock is not in current working directory or analyzed directory

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Tool | PHP | Supported since | Description |
5555
[phpstan](https://github.com/phpstan/phpstan) | `>= 7.0` | `1.9` | Discover bugs in your code without running it |
5656
[psalm](https://github.com/vimeo/psalm) | `>= 5.6` | `1.14` | A static analysis tool for finding errors in PHP applications |
5757
[parallel-lint](https://github.com/JakubOnderka/PHP-Parallel-Lint) | `>= 5.4` | `1.9` | Check syntax of PHP files |
58-
[deptrac](https://github.com/qossmic/deptrac) | `>= 7.2` | `1.25` | Enforce rules for dependencies between software layers |
58+
[deptrac](https://github.com/deptrac/deptrac) | `>= 7.2` | `1.25` | Enforce rules for dependencies between software layers |
5959
[MacFJA/phpqa-extensions](https://github.com/MacFJA/phpqa-extensions) | - | - | PHP Assumptions, Magic Number Detector, ... |
6060

6161
_Tip_: use [`bin/suggested-tools.sh install`](/bin/suggested-tools.sh) for installing the tools.
@@ -341,7 +341,7 @@ Tool | Settings | Default Value | Your value
341341
[psalm.threads](https://github.com/vimeo/psalm/wiki/Running-Psalm#command-line-options) | Set the number of process to use in parallel (option `--threads` of psalm) (Only if `--execution == parallel` for phpqa) | `1` | Number (>= 1)
342342
[psalm.showInfo](https://github.com/vimeo/psalm/wiki/Running-Psalm#command-line-options) | Display or not information (non-error) messages (option `--show-info=` of psalm) | `true` | Boolean value
343343
[psalm.memoryLimit](https://github.com/vimeo/psalm/issues/842) | Custom memory limit, ignore unless you are getting `Fatal error: Allowed memory size of ... bytes exhausted` | `null` | String value, e.g. `'1024M'`, `'1G'`
344-
[deptrac.depfile](https://github.com/vimeo/psalm/wiki/Configuration) | Complete [deptract config](https://github.com/qossmic/deptrac#getting-started) _(phpqa won't update source and excluded files)_ | `null` | Path to `depfile.yml` file
344+
[deptrac.depfile](https://github.com/deptrac/deptrac/blob/main/docs/index.md#configuration) | Complete [deptrac config](https://github.com/deptrac/deptrac/blob/main/docs/configuration.md) _(phpqa won't update source and excluded files)_ | `null` | Path to `depfile.yml` file
345345
[security-checker.composerLock](https://github.com/EdgedesignCZ/phpqa/blob/bdd49e3/.phpqa.yml#L94) | Use it if composer.lock is not in current working directory or analyzed directory | `null` | Path to `composer.lock` file
346346

347347
## HTML reports

bin/suggested-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ show_help() {
4242
get_tools () {
4343
TOOLS="php-parallel-lint/php-parallel-lint php-parallel-lint/php-console-highlighter friendsofphp/php-cs-fixer"
4444
if [[ ${PHP_VERSION:0:1} != "5" ]]; then
45-
TOOLS="${TOOLS} vimeo/psalm phpstan/phpstan nette/neon qossmic/deptrac-shim enlightn/security-checker"
45+
TOOLS="${TOOLS} vimeo/psalm phpstan/phpstan nette/neon deptrac/deptrac enlightn/security-checker"
4646
fi
4747
echo $TOOLS
4848
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"vimeo/psalm": "A static analysis tool for finding errors in PHP applications",
4242
"php-parallel-lint/php-parallel-lint": "Check PHP syntax",
4343
"php-parallel-lint/php-console-highlighter": "Colored output in parallel-lint",
44-
"qossmic/deptrac-shim": "Enforce rules for dependencies between software layers"
44+
"deptrac/deptrac": "Enforce rules for dependencies between software layers"
4545
},
4646
"require-dev": {
4747
"hamcrest/hamcrest-php": ">=2.0.1",

src/Tools/Analyzer/Deptrac.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Deptrac extends \Edge\QA\Tools\Tool
99
public static $SETTINGS = array(
1010
'optionSeparator' => '=',
1111
'outputMode' => OutputMode::RAW_CONSOLE_OUTPUT,
12-
'composer' => 'qossmic/deptrac-shim',
12+
'composer' => 'deptrac/deptrac',
1313
);
1414

1515
public function __invoke()

0 commit comments

Comments
 (0)