Skip to content

Commit

Permalink
feat: bump min phpcs to 3.9, change exit code for baseline dump in ph…
Browse files Browse the repository at this point in the history
…pcs-wbl
  • Loading branch information
gskema committed Apr 5, 2024
1 parent c3a4d9f commit 03033a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ All notable changes to `phpcs-type-sniff` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 81.5.2 - 2024-04-05
### Changed
- Min phpcs version to 3.9
- Exit code for `phpcs-wbl` to `0` when `--dump-baseline` is used

## 81.5.1 - 2024-04-04
### Fixed
- Flag `--dump-baseline` to `phpcs-wbl` binary. Can be used to extended full `phpcs-wbl` call with all flag
to just update baseline file instead. E.g. in `composer.json`: `@phpcs --dump-baseline`


## 81.5.0 - 2024-04-04
### Added
- Flag `--dump-baseline` to `phpcs-wbl` binary. Can be used to extended full `phpcs-wbl` call with all flag
Expand Down
1 change: 1 addition & 0 deletions bin/phpcs-wbl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ then
ARGS_MOD=$(echo "$ARGS_MOD" | sed -E "s/--dump-baseline//") # remove --dump-baseline so phpcs doesn't cry
ARGS_MOD+=" --report-file=${baseline_file}" # add replacement --report-file=baseline.xml
"$BIN_DIR"/phpcs $(echo "$ARGS_MOD")
exit 0
else
# Run phpcs to generate report + subtract baseline
"$BIN_DIR"/phpcs $(echo "$ARGS_MOD")
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"require": {
"php": ">=8.1",
"squizlabs/php_codesniffer": "^3.8"
"squizlabs/php_codesniffer": "^3.9"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
Expand Down

0 comments on commit 03033a8

Please sign in to comment.