Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 26, 2025

Bumps nextcloud/coding-standard from 1.2.1 to 1.2.2.

Release notes

Sourced from nextcloud/coding-standard's releases.

v1.2.2

Added

  • cast_spaces: A single space between cast and variable
  • lowercase_cast: Cast should be written in lower case
  • method_chaining_indentation: Use the same indentation when changing methods
  • no_short_bool_cast: Short cast bool using double exclamation mark should not be used
  • phpdoc_align: All items of the given PHPDoc tags must be left-aligned
  • phpdoc_single_line_var_spacing: Single line @var PHPDoc should have proper spacing
  • phpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotations
  • short_scalar_cast: (boolean) => (bool), (integer) => (int), ...
  • single_quote: Use single quotes for simple strings
  • types_spaces: No spaces around union and intersection type operators
Changelog

Sourced from nextcloud/coding-standard's changelog.

1.2.2 - 2024-08-23

Added

  • cast_spaces: A single space between cast and variable
  • lowercase_cast: Cast should be written in lower case
  • method_chaining_indentation: Use the same indentation when changing methods
  • no_short_bool_cast: Short cast bool using double exclamation mark should not be used
  • phpdoc_align: All items of the given PHPDoc tags must be left-aligned
  • phpdoc_single_line_var_spacing: Single line @​var PHPDoc should have proper spacing
  • phpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotations
  • short_scalar_cast: (boolean) => (bool), (integer) => (int), ...
  • single_quote: Use single quotes for simple strings
  • types_spaces: No spaces around union and intersection type operators
Commits
  • 81fec49 Merge pull request #19 from nextcloud/changelog/1.2.2
  • d4c2638 Merge pull request #26 from nextcloud/phpdoc-rules
  • 54a8064 style: phpdoc align and var spacing
  • f026c31 Merge pull request #25 from nextcloud/casting-rules
  • 42b094e chore(release): Add changelog for 1.2.2
  • 1f070fd style: single quotes
  • f8e84b5 style: add rules for casts
  • d73f7f5 Merge pull request #22 from nextcloud/style-add-method-chaining
  • 014e163 Merge pull request #20 from nextcloud/add-phpdoc-rules
  • a697951 style: ensure indentation with method chaining
  • Additional commits viewable in compare view

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
nextcloud/coding-standard [>= 1.2.3.a, < 1.2.4]

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @nextcloud-command.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team April 26, 2025 02:20
Copy link
Contributor

@nextcloud-command nextcloud-command left a comment

Choose a reason for hiding this comment

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

@dependabot merge

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 26, 2025

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

susnux
susnux previously requested changes Apr 27, 2025
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

Maybe ignore nextcloud coding-standard in general from updates on stable?
Even though I do not get why a patch release causes so many changes, should have been a minor release when rules were added?

@@ -276,8 +276,8 @@
if (function_exists('disk_free_space')) {
$df = disk_free_space($this->configDir);
$size = strlen($content) + 10240;
if ($df !== false && $df < (float)$size) {
throw new \Exception($this->configDir . " does not have enough space for writing the config file! Not writing it back!");
if ($df !== false && $df < (float) $size) {

Check notice

Code scanning / Psalm

TaintedHtml Note

Detected tainted HTML
@@ -249,7 +249,7 @@

// validate the data directory
if ((!is_dir($dataDir) && !mkdir($dataDir)) || !is_writable($dataDir)) {
$error[] = $l->t("Cannot create or write into the data directory %s", [$dataDir]);
$error[] = $l->t('Cannot create or write into the data directory %s', [$dataDir]);

Check notice

Code scanning / Psalm

TaintedFile Note

Detected tainted file handling
Comment on lines 341 to +343

Check failure

Code scanning / Psalm

TaintedHtml Error

Detected tainted HTML
Comment on lines 341 to +343

Check failure

Code scanning / Psalm

TaintedTextWithQuotes Error

Detected tainted text with possible quotes
@Altahrim Altahrim self-requested a review April 28, 2025 07:12
@provokateurin
Copy link
Member

Maybe ignore nextcloud coding-standard in general from updates on stable?

I was about to agree, but I think it actually makes sense to do it in order to have less conflicts when backporting changes from master. It's really not necessary to update the code style in stable branches since we only develop on master, but for this benefit I would still do it.

@susnux
Copy link
Contributor

susnux commented Apr 29, 2025

but for this benefit I would still do it.

That makes sense!

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Psalm found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@susnux susnux force-pushed the dependabot/composer/vendor-bin/cs-fixer/stable30/nextcloud/coding-standard-1.2.2 branch from 2e66b2c to 71568b3 Compare April 29, 2025 07:59
@susnux susnux dismissed their stale review April 29, 2025 08:00

makes sense, if others also agree

@susnux susnux force-pushed the dependabot/composer/vendor-bin/cs-fixer/stable30/nextcloud/coding-standard-1.2.2 branch from 71568b3 to 2a4dbf2 Compare April 30, 2025 15:53
dependabot bot and others added 5 commits April 30, 2025 19:04
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](nextcloud/coding-standard@v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: nextcloud/coding-standard
  dependency-version: 1.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the dependabot/composer/vendor-bin/cs-fixer/stable30/nextcloud/coding-standard-1.2.2 branch from 2a4dbf2 to 3cc70aa Compare April 30, 2025 17:05
@susnux susnux merged commit 42cc374 into stable30 Apr 30, 2025
177 of 178 checks passed
@susnux susnux deleted the dependabot/composer/vendor-bin/cs-fixer/stable30/nextcloud/coding-standard-1.2.2 branch April 30, 2025 17:23
@blizzz blizzz mentioned this pull request May 5, 2025
10 tasks
@nextcloud-bot nextcloud-bot mentioned this pull request Sep 25, 2025
2 tasks
@blizzz blizzz mentioned this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants