Skip to content

Commit

Permalink
chore: Update file paths in composer.json and rector.php
Browse files Browse the repository at this point in the history
- Update file paths in composer.json and rector.php
- Fix linting in yaml files
  • Loading branch information
guanguans committed Jan 16, 2024
1 parent 83fcd74 commit ac5ab21
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 琯琯
Copyright (c) 2019 guanguans

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 7 additions & 0 deletions benchmarks/SoarBench.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

/** @noinspection PhpUnused */

declare(strict_types=1);

/**
Expand Down Expand Up @@ -33,6 +35,11 @@ public function setUp(): void
$this->soar = Soar::create();
}

/**
* @noinspection PhpUnhandledExceptionInspection
* @noinspection SqlNoDataSourceInspection
* @noinspection SqlResolve
*/
public function benchScores(): void
{
$this->soar->scores('SELECT * FROM foo;');
Expand Down
1 change: 1 addition & 0 deletions composer-fixer
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ require __DIR__.'/vendor/autoload.php';
->setWorkingDirectory(dirname($this->composerJsonFile))
->setEnv(['COMPOSER_MEMORY_LIMIT' => -1])
->mustRun(function (string $type, string $buffer) {
/** @noinspection PhpVoidFunctionResultUsedInspection */
return $this->symfonyStyle->write($buffer);
});
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,6 @@
"test-phpunit": "@php ./vendor/bin/phpunit --cache-result-file=./build/phpunit/.phpunit.result.cache --coverage-text --ansi -v",
"test-phpunit-coverage": "@test --coverage-html=./build/phpunit/ --coverage-clover=clover.xml",
"test-update-snapshots": "@pest-update-snapshots",
"yaml-lint": "@php ./vendor/bin/yaml-lint .github --ansi -v"
"yaml-lint": "@php ./vendor/bin/yaml-lint .github/ examples/ --ansi -v"
}
}
7 changes: 4 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@
]);

$rectorConfig->paths([
__DIR__.'/benchmarks',
__DIR__.'/examples',
__DIR__.'/src',
__DIR__.'/tests',
__DIR__.'/.php-cs-fixer.php',
__DIR__.'/rector.php',
__DIR__.'/examples/soar.options.example.php',
__DIR__.'/.*.php',
__DIR__.'/*.php',
]);

$rectorConfig->skip([
Expand Down

0 comments on commit ac5ab21

Please sign in to comment.