Skip to content

Commit cb9a41d

Browse files
authored
Merge pull request #26 from wundii/dev
increase to 0.3.0
2 parents 5f9fc96 + 088947a commit cb9a41d

35 files changed

+677
-3700
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.idea/
22
/.phplint/
33
/cache/*
4-
/vendor/
4+
/vendor/
5+
composer.lock

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ php vendor/bin/phplint --help
2525
+ skip
2626
+ memory limit (default: 512M)
2727
+ async processes (default: 10)
28-
+ enable warnings (default: true)
29-
+ enable notice (default: true)
30-
+ ignore exit code (default: false)
31-
+ ignore process bar (default: false)
28+
+ async processes timeout (default: 60)
29+
+ console warnings (default: true)
30+
+ console notice (default: true)
31+
+ cache class (default: Symfony\Component\Cache\Adapter\FilesystemAdapter)
32+
+ no exit code (default: false)
33+
+ no process bar (default: false)
3234

3335
## Development for PHPLint
3436

@@ -53,7 +55,8 @@ composer complete-check
5355
### To-do list for version 1.0.0
5456
+ [x] add symfony cache-system
5557
+ [x] refactor LintConsoleOutput class
56-
+ [ ] refactor LintConfig class
58+
+ [x] refactor LintConfig class
59+
+ [ ] skip classes
5760

5861
## Feedback and Contributions
5962
I welcome feedback, bug reports and contributions from the community!

bin/phplint.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,11 @@ public function includeCwdVendorAutoloadIfExists(): void
2424
return;
2525
}
2626

27-
$this->loadIfNotLoadedYet($cwdVendorAutoload);
28-
}
29-
30-
public function loadIfNotLoadedYet(string $file): void
31-
{
32-
if (! file_exists($file)) {
27+
if (! file_exists($cwdVendorAutoload)) {
3328
return;
3429
}
3530

36-
require_once $file;
31+
require_once $cwdVendorAutoload;
3732
}
3833
}
3934

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"symfony/console": "^6.4",
2121
"symfony/dependency-injection": "^6.4",
2222
"symfony/finder": "^6.4",
23-
"symfony/process": "^6.4"
23+
"symfony/process": "^6.4",
24+
"webmozart/assert": "^1.11"
2425
},
2526
"require-dev": {
2627
"phpstan/phpstan": "^1.10",

0 commit comments

Comments
 (0)