diff --git a/.github/misc/Github.php b/.github/misc/Github.php deleted file mode 100644 index e922c81..0000000 --- a/.github/misc/Github.php +++ /dev/null @@ -1,83 +0,0 @@ - $lineErrors) { - foreach ($lineErrors as $column => $colErrors) { - foreach ($colErrors as $error) { - $type = strtolower($error['type']); - $file = $report['filename']; - $message = $error['message']; - echo "::$type file=$file,line=$line,col=$column::$message" . PHP_EOL; - } - } - } - - return true; - - }//end generateFileReport() - - - /** - * Generates a GitHub Actions report. - * - * @param string $cachedData Any partial report data that was returned from - * generateFileReport during the run. - * @param int $totalFiles Total number of files processed during the run. - * @param int $totalErrors Total number of errors found during the run. - * @param int $totalWarnings Total number of warnings found during the run. - * @param int $totalFixable Total number of problems that can be fixed. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. - * @param bool $interactive Are we running in interactive mode? - * @param bool $toScreen Is the report being printed to screen? - * - * @return void - */ - public function generate( - $cachedData, - $totalFiles, - $totalErrors, - $totalWarnings, - $totalFixable, - $showSources=false, - $width=80, - $interactive=false, - $toScreen=true - ) { - echo $cachedData; - - }//end generate() - - -}//end class diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 2d4bb55..842b3d7 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 with: repository: backdrop-ops/phpcs - ref: 1.1.0 + ref: 1.2.0 path: phpcs - name: Move standard outside current dir run: mv phpcs .. @@ -31,7 +31,7 @@ jobs: - name: Run CodeSniffer run: | phpcs --version - phpcs --standard=../phpcs/Backdrop --report=.github/misc/Github.php -n --basepath=. * + phpcs --standard=../phpcs/Backdrop --report=../phpcs/Backdrop/Reports/Github.php -n --basepath=. * - name: Install and run jshint if: ${{ always() }}