Skip to content

INTEGRATION [PR#6297 > development/9.5] CLDSRV-1002: format the whole codebase with prettier - #6303

Closed
bert-e wants to merge 9 commits into
development/9.5from
w/9.5/improvement/CLDSRV-1002/prettier-whole-repo
Closed

bert-e wants to merge 9 commits into
development/9.5from
w/9.5/improvement/CLDSRV-1002/prettier-whole-repo

Conversation

@bert-e

@bert-e bert-e commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This pull request has been created automatically.
It is linked to its parent pull request #6297.

Do not edit this pull request directly.
If you need to amend/cancel the changeset on branch
w/9.5/improvement/CLDSRV-1002/prettier-whole-repo, please follow this
procedure:

 git fetch
 git checkout w/9.5/improvement/CLDSRV-1002/prettier-whole-repo
 # <amend or cancel the changeset by _adding_ new commits>
 git push origin w/9.5/improvement/CLDSRV-1002/prettier-whole-repo

Please always comment pull request #6297 instead of this one.

Prettier now owns line length, so drop the eslint max-len rule it
conflicts with and the disable directives that went with it.

Issue: CLDSRV-1002
websiteHead.js and websiteHeadWithACL.js assert the ETag of index.html,
so reformatting these fixtures would change their MD5 and break the
tests. Their bytes are the test data, not source to style.

Issue: CLDSRV-1002
Plain output of `yarn prettier:write`, no manual edit on top.

Issue: CLDSRV-1002
Prettier pads markdown table cells for alignment, which pushed this table
to 82 columns and tripped MD013. mdlint's config lives in the shared
Guidelines package and cannot be relaxed per repo, so shorten the widest
cell instead.

Issue: CLDSRV-1002
GitHub reads .git-blame-ignore-revs automatically; locally it needs
git config blame.ignoreRevsFile .git-blame-ignore-revs

Issue: CLDSRV-1002
…-whole-repo' into w/9.5/improvement/CLDSRV-1002/prettier-whole-repo

# Conflicts:
#	lib/api/apiUtils/object/coldStorage.js
#	tests/unit/api/apiUtils/coldStorage.js

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

DarkIsDude and others added 3 commits September 23, 2026 11:51
So that later commits can be appended each with their own comment.

Issue: CLDSRV-1002
Prettier joins a broken `'...' + '...'` chain onto one line but keeps the
`+` between the literals. Merge each run of adjacent string literals into
a single one when it fits the print width, otherwise re-split it into as
few pieces as fit. String values are unchanged.

Issue: CLDSRV-1002
Comment thread lib/Config.js
assert(
typeof details.supportsVersioning === 'boolean',
'bad config: locationConstraints[region].supportsVersioning' + 'must be a boolean',
'bad config: locationConstraints[region].supportsVersioningmust be a boolean',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The string merge exposed a pre-existing missing-space bug. Same issue at lines 1340, 1351, 1352, 1520, 1527, 1528, and 1538. The full list:

Line Typo
409 supportsVersioningmust
1340 sentinelsmust
1351 localCachesentinel host
1352 localCachesentinel port
1520 badconfig:
1527 badconfig:
1528 bad config:utapi
1538 badconfig:
Suggested change
'bad config: locationConstraints[region].supportsVersioningmust be a boolean',
'bad config: locationConstraints[region].supportsVersioning must be a boolean',

@@ -148,7 +148,7 @@ describe('getObjMetadataAndDelete function for multiObjectDelete', () => {
);
});

it('should return error results if err from metadata getting object' + 'is error other than NoSuchKey', done => {
it('should return error results if err from metadata getting objectis error other than NoSuchKey', done => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same missing-space issue from string merge: objectis should be object is.

Suggested change
it('should return error results if err from metadata getting objectis error other than NoSuchKey', done => {
it('should return error results if err from metadata getting object is error other than NoSuchKey', done => {

@codecov

codecov Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.00297% with 363 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.54%. Comparing base (e481fec) to head (3d4fe54).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
lib/management/configuration.js 24.24% 25 Missing ⚠️
lib/kms/wrapper.js 62.29% 23 Missing ⚠️
lib/management/index.js 17.85% 23 Missing ⚠️
lib/management/push.js 25.80% 23 Missing ⚠️
lib/api/objectGet.js 84.21% 21 Missing ⚠️
lib/api/apiUtils/object/objectLockHelpers.js 34.78% 15 Missing ⚠️
lib/management/credentials.js 7.14% 13 Missing ⚠️
lib/api/apiUtils/authorization/tagConditionKeys.js 63.33% 11 Missing ⚠️
lib/routes/routeWorkflowEngineOperator.js 15.38% 11 Missing ⚠️
lib/api/metadataSearch.js 47.36% 10 Missing ⚠️
... and 61 more
Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
lib/api/apiUtils/authorization/serviceUser.js 100.00% <ø> (ø)
lib/api/apiUtils/bucket/bucketCreation.js 96.35% <100.00%> (ø)
lib/api/apiUtils/bucket/bucketShield.js 100.00% <100.00%> (ø)
lib/api/apiUtils/bucket/createKeyForUserBucket.js 100.00% <ø> (ø)
...api/apiUtils/bucket/getReplicationConfiguration.js 100.00% <100.00%> (ø)
...b/api/apiUtils/bucket/validateReplicationConfig.js 84.61% <100.00%> (-1.10%) ⬇️
lib/api/apiUtils/bucket/validateSearch.js 96.42% <100.00%> (ø)
lib/api/apiUtils/object/applyZenkoUserMD.js 80.00% <100.00%> (ø)
lib/api/apiUtils/object/checkHttpHeadersSize.js 88.88% <100.00%> (ø)
lib/api/apiUtils/object/checkReadLocation.js 100.00% <100.00%> (ø)
... and 134 more

... and 1 file with indirect coverage changes

@@                 Coverage Diff                 @@
##           development/9.5    #6303      +/-   ##
===================================================
- Coverage            86.58%   86.54%   -0.04%     
===================================================
  Files                  213      213              
  Lines                14620    14607      -13     
===================================================
- Hits                 12658    12642      -16     
- Misses                1962     1965       +3     
Flag Coverage Δ
checksums-disabled-tests 35.39% <13.73%> (+0.01%) ⬆️
file-ft-tests 70.00% <69.50%> (-0.08%) ⬇️
file-ft-tests-null-compat 70.47% <69.50%> (-0.08%) ⬇️
kmip-ft-tests 28.17% <7.38%> (+0.02%) ⬆️
mongo-v0-ft-tests 71.11% <70.00%> (-0.03%) ⬇️
mongo-v1-ft-tests 71.14% <70.00%> (-0.04%) ⬇️
multiple-backend 36.15% <20.17%> (+0.02%) ⬆️
s3c-ft-tests-v0 65.03% <65.19%> (-0.02%) ⬇️
s3c-ft-tests-v0-null-compat 65.08% <65.19%> (-0.02%) ⬇️
s3c-ft-tests-v1 65.00% <64.99%> (-0.02%) ⬇️
sur-tests 36.66% <16.65%> (+0.01%) ⬆️
sur-tests-inflights 39.51% <16.70%> (+0.02%) ⬆️
unit 74.28% <65.79%> (-0.04%) ⬇️
utapi-v2-tests 35.37% <14.52%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bert-e bert-e closed this Sep 23, 2026
@bert-e
bert-e deleted the w/9.5/improvement/CLDSRV-1002/prettier-whole-repo branch September 23, 2026 12:35
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.

3 participants