Skip to content

Commit

Permalink
chore: switch to use ffime & static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
ging-dev committed Oct 25, 2024
1 parent 0bd54e6 commit 6a1b9dc
Show file tree
Hide file tree
Showing 25 changed files with 5,291 additions and 493 deletions.
3 changes: 2 additions & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
->in(__DIR__)
->exclude('vendor')
->exclude('storage')
->exclude('bootstrap/cache');
->exclude('bootstrap/cache')
->exclude('lib');

return (new PhpCsFixer\Config())
->setRules([
Expand Down
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"devsense.phptools-vscode"
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"php.problems.exclude": {
"vendor/": true,
"lib/": true,
},
}
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"autoload": {
"classmap": [ "src/" ],
"files": [ "lib/libsql.php", "src/functions.php" ],
"psr-4": {
"Libsql\\": "src/",
"Libsql\\Tests\\": "tests/"
Expand All @@ -21,7 +22,9 @@
},
"require-dev": {
"phpunit/phpunit": "^11",
"friendsofphp/php-cs-fixer": "^3.64"
"friendsofphp/php-cs-fixer": "^3.64",
"ircmaxell/ffime": "dev-master",
"phpstan/phpstan": "2.0.x-dev"
},
"scripts": {
"test": [ "@php vendor/bin/phpunit tests --fail-on-warning --fail-on-deprecation" ]
Expand Down
Loading

0 comments on commit 6a1b9dc

Please sign in to comment.