Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency squizlabs/php_codesniffer to v3.11.3 #822

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 7, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
squizlabs/php_codesniffer 3.11.2 -> 3.11.3 age adoption passing confidence
squizlabs/php_codesniffer 3.9.2 -> 3.11.3 age adoption passing confidence

Release Notes

PHPCSStandards/PHP_CodeSniffer (squizlabs/php_codesniffer)

v3.11.3

Compare Source

Changed
  • Generic.ControlStructures.InlineControlStructure no longer unnecessarily listens for T_SWITCH tokens. #​595
  • Squiz.Functions.FunctionDeclarationArgumentSpacing: improvements to error message for SpaceBeforeComma error. #​783
  • The following sniff(s) have received efficiency improvements:
    • Squiz.Functions.FunctionDeclarationArgumentSpacing
    • Thanks to [Dan Wallis][@​fredden] and [Juliette Reinders Folmer][@​jrfnl] for the patches.
  • Various housekeeping, including improvements to the tests and documentation.
Fixed
  • Fixed bug #​620 : Squiz.Functions.FunctionDeclarationArgumentSpacing: newlines after type will now be handled by the fixer. This also prevents a potential fixer conflict.
  • Fixed bug #​782 : Tokenizer/PHP: prevent an "Undefined array key" notice during live coding for unfinished arrow functions.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line after reference token was not flagged nor fixed.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line after variadic token was not flagged nor fixed.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line before/after the equal sign for default values was not flagged nor fixed when equalsSpacing was set to 0.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer conflict when a new line is found before/after the equal sign for default values and equalsSpacing was set to 1.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer for spacing before/after equal sign could inadvertently remove comment.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer will now handle comments between the end of a parameter and a comma more cleanly.
    • Thanks to [Juliette Reinders Folmer][@​jrfnl] for the patch.
  • Fixed bug #​784 : Squiz.WhiteSpace.FunctionSpacing: prevent fixer conflict when a multi-line docblock would start on the same line as the function close curly being examined.
    • Thanks to [Klaus Purer][@​klausi] for the patch

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Summary by CodeRabbit

  • Chores
    • Streamlined the setup process by automating asset retrieval during installation and updates.
    • Removed redundant steps in the configuration routine to ensure that all necessary files are efficiently delivered.
    • Updated dependency versions for improved compatibility and stability.

Copy link
Contributor

coderabbitai bot commented Feb 7, 2025

Warning

Rate limit exceeded

@renovate[bot] has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 26 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 4b19b1a and 423507d.

⛔ Files ignored due to path filters (11)
  • mellon/composer.lock is excluded by !**/*.lock
  • zmsadmin/composer.lock is excluded by !**/*.lock
  • zmsapi/composer.lock is excluded by !**/*.lock
  • zmscalldisplay/composer.lock is excluded by !**/*.lock
  • zmscitizenapi/composer.lock is excluded by !**/*.lock
  • zmsclient/composer.lock is excluded by !**/*.lock
  • zmsdldb/composer.lock is excluded by !**/*.lock
  • zmsentities/composer.lock is excluded by !**/*.lock
  • zmsmessaging/composer.lock is excluded by !**/*.lock
  • zmsslim/composer.lock is excluded by !**/*.lock
  • zmsticketprinter/composer.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • zmsapi/composer.json (1 hunks)
  • zmscitizenapi/composer.json (0 hunks)
  • zmsclient/composer.json (1 hunks)
  • zmsdb/composer.json (1 hunks)
  • zmsstatistic/composer.json (1 hunks)

Walkthrough

The composer configurations for multiple projects have been updated. The "prepare-dirs" script has been removed from both the zmsapi and zmscitizenapi projects. The post-install and post-update commands now solely reference the "@wget-files" command. In the zmsapi project, the "wget-files" script has been modified to download a Swagger JSON file, while in the zmscitizenapi project, the wget commands for downloading JavaScript and CSS files have been eliminated.

Changes

Files Change Summary
zmsapi/composer.json, zmscitizenapi/composer.json Removed the "prepare-dirs" script and updated post-install/update commands to reference only "@wget-files". In zmsapi, "wget-files" now downloads a Swagger JSON file; in zmscitizenapi, the wget commands for JS/CSS files were removed.
zmsclient/composer.json Updated the version constraint for "squizlabs/php_codesniffer" from "*" to "^3.5.8" in the require-dev section.
zmsdb/composer.json Removed dependencies eappointment/zmsslim, eappointment/zmsclient, and eappointment/zmsapi from the require section; updated version constraints for phpmd/phpmd and squizlabs/php_codesniffer in require-dev. Removed allow-plugins configuration.

Possibly related PRs

Suggested reviewers

  • ThomasAFink

Poem

I'm a little rabbit, hopping through code,
Trimming old scripts off the long winding road.
No more directories to set up in a rush,
Only wget beats now make my heart gush.
Swagger and files now dance on the screen,
Leaping with joy in our CodeRabbit dream!


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
zmsapi/composer.json (1)

50-57: Enhanced 'wget-files' script commands.
The updated commands now include downloading the Swagger JSON file directly to public/doc/swagger.json, which aligns nicely with the new documentation strategy. The remaining asset download commands seem to still be in place; please verify that all these files are still needed in zmsapi. For improved robustness, you might consider appending error-checking flags (or handling failures using Composer’s scripting capabilities) to these shell commands.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0098861 and 6ae6a5d.

⛔ Files ignored due to path filters (12)
  • mellon/composer.lock is excluded by !**/*.lock
  • zmsadmin/composer.lock is excluded by !**/*.lock
  • zmsapi/composer.lock is excluded by !**/*.lock
  • zmscalldisplay/composer.lock is excluded by !**/*.lock
  • zmscitizenapi/composer.lock is excluded by !**/*.lock
  • zmsclient/composer.lock is excluded by !**/*.lock
  • zmsdldb/composer.lock is excluded by !**/*.lock
  • zmsentities/composer.lock is excluded by !**/*.lock
  • zmsmessaging/composer.lock is excluded by !**/*.lock
  • zmsslim/composer.lock is excluded by !**/*.lock
  • zmsstatistic/composer.lock is excluded by !**/*.lock
  • zmsticketprinter/composer.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • zmsapi/composer.json (1 hunks)
  • zmscitizenapi/composer.json (0 hunks)
💤 Files with no reviewable changes (1)
  • zmscitizenapi/composer.json
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
zmsapi/composer.json (1)

58-63: Streamlined post-installation and post-update commands.
Post-install and post-update hooks now exclusively invoke the @wget-files command, reflecting the removal of the old prepare-dirs script. This simplification is in line with the broader project changes across repositories.

@renovate renovate bot force-pushed the renovate/squizlabs-php_codesniffer-3.x-lockfile branch from 6ae6a5d to 7eb448a Compare February 10, 2025 12:34
Copy link
Contributor Author

renovate bot commented Feb 10, 2025

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: zmsdb/composer.lock
Command failed: composer update squizlabs/php_codesniffer:3.11.3 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
The temporary constraint "3.11.3" for "squizlabs/php_codesniffer" must be a subset of the constraint in your composer.json (^2.4)

File name: zmsstatistic/composer.lock
Command failed: composer update squizlabs/php_codesniffer:3.11.3 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires firebase/php-jwt v6.10.2 (exact version match), found firebase/php-jwt[v6.10.2] but the package is fixed to v6.11.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@renovate renovate bot force-pushed the renovate/squizlabs-php_codesniffer-3.x-lockfile branch from 7eb448a to 4b19b1a Compare February 17, 2025 13:47
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
zmsdb/composer.json (1)

76-76: Review Divergent PHPCS Version Constraint

The "squizlabs/php_codesniffer" dependency now uses the version constraint "^2.4", which is notably different from the constraint used in the zmsclient package ("^3.5.8"). This divergence may be intentional due to compatibility requirements, but it can lead to inconsistent behavior in code quality checks across different parts of the project. Please confirm that this decision is deliberate, and if not, consider aligning the version constraints.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7eb448a and 4b19b1a.

⛔ Files ignored due to path filters (11)
  • mellon/composer.lock is excluded by !**/*.lock
  • zmsadmin/composer.lock is excluded by !**/*.lock
  • zmsapi/composer.lock is excluded by !**/*.lock
  • zmscalldisplay/composer.lock is excluded by !**/*.lock
  • zmscitizenapi/composer.lock is excluded by !**/*.lock
  • zmsclient/composer.lock is excluded by !**/*.lock
  • zmsdldb/composer.lock is excluded by !**/*.lock
  • zmsentities/composer.lock is excluded by !**/*.lock
  • zmsmessaging/composer.lock is excluded by !**/*.lock
  • zmsslim/composer.lock is excluded by !**/*.lock
  • zmsticketprinter/composer.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • zmsapi/composer.json (1 hunks)
  • zmscitizenapi/composer.json (0 hunks)
  • zmsclient/composer.json (1 hunks)
  • zmsdb/composer.json (1 hunks)
💤 Files with no reviewable changes (1)
  • zmscitizenapi/composer.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • zmsapi/composer.json
⏰ Context from checks skipped due to timeout of 90000ms (13)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsclient, 8.0)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsslim, 8.0)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsentities, 8.0)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsdldb, 8.0)
  • GitHub Check: call-php-code-quality / module-code-quality (zmsclient, 8.0)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsticketprinter, 8.0)
  • GitHub Check: call-php-code-quality / module-code-quality (zmscitizenapi, 8.0)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsstatistic, 8.0)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsmessaging, 8.0)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: call-php-unit-tests / zmsapi-test
  • GitHub Check: call-owasp-security-checks / security-scan (zmsapi, 8.0)
  • GitHub Check: call-owasp-security-checks / security-scan (zmsadmin, 8.0)
🔇 Additional comments (2)
zmsclient/composer.json (1)

57-57: Constrain PHPCS Version in Dev Dependencies

The update changes the "squizlabs/php_codesniffer" dependency from a loose constraint ("*"), to a semantically restricted range ("^3.5.8"). This ensures that only versions from 3.5.8 up to, but not including, 4.0.0 are allowed. Verify that this range is aligned with your project’s coding standards and that it indeed permits upgrade to v3.11.3 as noted by the PR objectives.

zmsdb/composer.json (1)

75-75: Specify PHPMD Version for Predictable Quality Checks

The dependency for "phpmd/phpmd" has been updated from "@stable" to "^2.3". This explicit version constraint helps ensure consistent behavior across environments. Confirm that version ^2.3 is tested with your codebase.

@renovate renovate bot force-pushed the renovate/squizlabs-php_codesniffer-3.x-lockfile branch from 4b19b1a to 423507d Compare March 3, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants