-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6d7bec
commit 00862be
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/vendor/ | ||
/bin/ | ||
!/bin/cognitive-analysis | ||
!/bin/cognitive-analysis.bat | ||
/.phive/ | ||
/.phpunit.cache/ | ||
/tmp/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require_once __DIR__ . '/../../../autoload.php'; | ||
|
||
use Phauthentic\CodeQualityMetrics\Command\CognitiveMetricsCommand; | ||
use Phauthentic\CodeQualityMetrics\Command\HalsteadMetricsCommand; | ||
use Symfony\Component\Console\Application; | ||
|
||
$application = new Application(); | ||
$application->add(new CognitiveMetricsCommand()); | ||
$application->add(new HalsteadMetricsCommand()); | ||
|
||
$application->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@echo off | ||
REM Cognitive Code Analysis | ||
REM | ||
REM @author Florian Krämer | ||
REM @copyright 2024 Florian Krämer | ||
REM @license https://github.com/Phauthentic/cognitive-code-analysis/blob/master/LICENSE GPL-3.0 | ||
|
||
if "%PHP_PEAR_PHP_BIN%" neq "" ( | ||
set PHPBIN=%PHP_PEAR_PHP_BIN% | ||
) else set PHPBIN=php | ||
|
||
"%PHPBIN%" "%~dp0\cognitive-analysis" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters