Skip to content

Commit 2971d7c

Browse files
committed
CLDSRV-905: prettier format entire codebase
1 parent be18af4 commit 2971d7c

588 files changed

Lines changed: 75769 additions & 64295 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/review-pr/SKILL.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
name: review-pr
33
description: >-
4-
Review a PR on cloudserver (S3-compatible object
5-
storage server in Node.js)
4+
Review a PR on cloudserver (S3-compatible object
5+
storage server in Node.js)
66
argument-hint: <pr-number-or-url>
77
disable-model-invocation: true
88
allowed-tools: >-
9-
Bash(gh repo view *), Bash(gh pr view *),
10-
Bash(gh pr diff *), Bash(gh pr comment *),
11-
Bash(gh api *), Bash(git diff *),
12-
Bash(git log *), Bash(git show *)
9+
Bash(gh repo view *), Bash(gh pr view *),
10+
Bash(gh pr diff *), Bash(gh pr comment *),
11+
Bash(gh api *), Bash(git diff *),
12+
Bash(git log *), Bash(git show *)
1313
---
1414

1515
# Review GitHub PR
@@ -48,7 +48,6 @@ Parse `$ARGUMENTS` to extract the repo and PR number:
4848
change (not just the diff hunks).
4949

5050
3. **Analyze the changes** against these criteria:
51-
5251
- **Async error handling** — uncaught promise rejections, missing
5352
error callbacks, swallowed errors in streams. Double callbacks
5453
in try/catch blocks (callback called in try then again in catch).
@@ -113,23 +112,23 @@ Each inline comment must:
113112
- When the fix is a concrete line change (not architectural), include
114113
a GitHub suggestion block so the author can apply it in one click:
115114

116-
````text
117-
```suggestion
118-
corrected-line-here
119-
```
120-
````
121-
122-
Only suggest when you can show the exact replacement. For
123-
architectural or design issues, just describe the problem.
124-
Example with a suggestion block:
125-
126-
```bash
127-
gh api ... -f body=$'Missing the update.\
128-
<br><br>\n```suggestion\n\
129-
/plugin update shared-guidelines@hub\n\
130-
/plugin update scality-skills@hub\n\
131-
```\n<br><br>— Claude Code' ...
132-
```
115+
````text
116+
```suggestion
117+
corrected-line-here
118+
```
119+
````
120+
121+
Only suggest when you can show the exact replacement. For
122+
architectural or design issues, just describe the problem.
123+
Example with a suggestion block:
124+
125+
````bash
126+
gh api ... -f body=$'Missing the update.\
127+
<br><br>\n```suggestion\n\
128+
/plugin update shared-guidelines@hub\n\
129+
/plugin update scality-skills@hub\n\
130+
```\n<br><br>— Claude Code' ...
131+
````
133132
134133
- When the comment contains a suggestion block, use `$'...'` quoting
135134
with `\n` for code fence boundaries. Escape single quotes as `\'`

.github/ISSUE_TEMPLATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ the **[Zenko Forum](http://forum.zenko.io/)**.
99
> Questions opened as GitHub issues will systematically be closed, and moved to
1010
> the [Zenko Forum](http://forum.zenko.io/).
1111
12-
--------------------------------------------------------------------------------
12+
---
1313

1414
## Avoiding duplicates
1515

@@ -21,7 +21,7 @@ any duplicates already open:
2121
- if there is a duplicate, please do not open your issue, and add a comment
2222
to the existing issue instead.
2323

24-
--------------------------------------------------------------------------------
24+
---
2525

2626
## Bug report information
2727

@@ -52,7 +52,7 @@ Describe the results you expected
5252
- distribution/OS,
5353
- optional: anything else you deem helpful to us.
5454

55-
--------------------------------------------------------------------------------
55+
---
5656

5757
## Feature Request
5858

@@ -78,10 +78,10 @@ Please provide use cases for changing the current behavior
7878
### Additional information
7979

8080
- Is this request for your company? Y/N
81-
- If Y: Company name:
82-
- Are you using any Scality Enterprise Edition products (RING, Zenko EE)? Y/N
81+
- If Y: Company name:
82+
- Are you using any Scality Enterprise Edition products (RING, Zenko EE)? Y/N
8383
- Are you willing to contribute this feature yourself?
8484
- Position/Title:
8585
- How did you hear about us?
8686

87-
--------------------------------------------------------------------------------
87+
---

.github/actions/cleanup-and-coverage/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
env:
3131
INPUT_PROFILES: ${{ inputs.profiles }}
3232
working-directory: .github/docker
33-
33+
3434
- name: Upload coverage reports to Codecov
3535
uses: codecov/codecov-action@v5
3636
with:

.github/actions/setup-ci/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
name: "Setup CI environment"
3-
description: "Setup Cloudserver CI environment"
2+
name: 'Setup CI environment'
3+
description: 'Setup Cloudserver CI environment'
44

55
runs:
66
using: composite

.github/codeql/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: scality/cloudserver-async-migration
22
version: 0.0.1
33
dependencies:
4-
codeql/javascript-all: "*"
4+
codeql/javascript-all: '*'

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ updates:
66
interval: weekly
77
open-pull-requests-limit: 5
88
ignore:
9-
- dependency-name: "scality/vault"
10-
update-types: ["version-update:semver-major"]
11-
- dependency-name: "scality/metadata"
12-
update-types: ["version-update:semver-major"]
9+
- dependency-name: 'scality/vault'
10+
update-types: ['version-update:semver-major']
11+
- dependency-name: 'scality/metadata'
12+
update-types: ['version-update:semver-major']

.github/docker/config.s3c.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,17 @@
3535
"dumpLevel": "error"
3636
},
3737
"replicationEndpoints": [
38-
{"site": "zenko", "servers": ["127.0.0.1:9080"], "echo": false, "default": true},
39-
{"site": "us-east-2", "servers": ["127.0.0.1:9080"]}
38+
{ "site": "zenko", "servers": ["127.0.0.1:9080"], "echo": false, "default": true },
39+
{ "site": "us-east-2", "servers": ["127.0.0.1:9080"] }
4040
],
4141
"requests": {
4242
"extractClientIPFromHeader": "x-forwarded-for",
4343
"extractProtocolFromHeader": "x-forwarded-proto",
44-
"trustedProxyCIDRs": [
45-
"127.0.0.1/32",
46-
"::ffff:127.0.0.1/128",
47-
"127.0.0.1"
48-
],
44+
"trustedProxyCIDRs": ["127.0.0.1/32", "::ffff:127.0.0.1/128", "127.0.0.1"],
4945
"viaProxy": true
5046
},
5147
"multiObjectDeleteEnableOptimizations": false,
52-
"supportedLifecycleRules": [
53-
"Expiration",
54-
"NoncurrentVersionExpiration",
55-
"AbortIncompleteMultipartUpload"
56-
],
48+
"supportedLifecycleRules": ["Expiration", "NoncurrentVersionExpiration", "AbortIncompleteMultipartUpload"],
5749
"bucketNotificationDestinations": [
5850
{
5951
"resource": "target1",

.github/docker/docker-compose.sse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
# root because S3C images needs ownership permission on files and mounted paths
66
user: root
77
command: sh -c "chmod 400 tests/utils/keyfile && yarn start > /artifacts/vault.log 2> /artifacts/vault-stderr.log"
8-
network_mode: "host"
8+
network_mode: 'host'
99
volumes:
1010
- /tmp/artifacts/${JOB_NAME}:/artifacts
1111
- ./vault-config.json:/conf/config.json:ro

.github/docker/docker-compose.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
cloudserver:
33
image: ${CLOUDSERVER_IMAGE}
4-
network_mode: "host"
4+
network_mode: 'host'
55
volumes:
66
- /tmp/ssl:/ssl
77
- /tmp/ssl-kmip:/tmp/ssl-kmip
@@ -56,13 +56,13 @@ services:
5656
depends_on:
5757
- redis
5858
extra_hosts:
59-
- "bucketwebsitetester.s3-website-us-east-1.amazonaws.com:127.0.0.1"
60-
- "pykmip.local:127.0.0.1"
59+
- 'bucketwebsitetester.s3-website-us-east-1.amazonaws.com:127.0.0.1'
60+
- 'pykmip.local:127.0.0.1'
6161
redis:
6262
image: redis:alpine
63-
network_mode: "host"
63+
network_mode: 'host'
6464
squid:
65-
network_mode: "host"
65+
network_mode: 'host'
6666
profiles: ['ci-proxy']
6767
image: scality/ci-squid
6868
command: >-
@@ -76,7 +76,7 @@ services:
7676
volumes:
7777
- /tmp/ssl:/ssl
7878
pykmip:
79-
network_mode: "host"
79+
network_mode: 'host'
8080
profiles: ['pykmip']
8181
image: ${PYKMIP_IMAGE:-ghcr.io/scality/cloudserver/pykmip}
8282
volumes:
@@ -86,17 +86,17 @@ services:
8686
- ../pykmip/policy.json:/etc/pykmip/policies/policy.json
8787
- ../pykmip/server.conf:/etc/pykmip/server.conf
8888
localkms:
89-
network_mode: "host"
89+
network_mode: 'host'
9090
profiles: ['localkms']
9191
image: ${KMS_IMAGE:-nsmithuk/local-kms:3.11.7}
9292
mongo:
93-
network_mode: "host"
93+
network_mode: 'host'
9494
profiles: ['mongo']
9595
image: ${MONGODB_IMAGE}
9696
volumes:
9797
- /tmp/artifacts/${JOB_NAME}:/logs
9898
sproxyd:
99-
network_mode: "host"
99+
network_mode: 'host'
100100
profiles: ['sproxyd']
101101
image: sproxyd-standalone
102102
build: ./sproxyd
@@ -109,7 +109,7 @@ services:
109109
profiles: ['vault']
110110
user: root
111111
command: sh -c "chmod 400 tests/utils/keyfile && yarn start > /artifacts/vault.log 2> /artifacts/vault-stderr.log"
112-
network_mode: "host"
112+
network_mode: 'host'
113113
volumes:
114114
- /tmp/artifacts/${JOB_NAME}:/artifacts
115115
- ./vault-config.json:/conf/config.json:ro

.github/docker/md-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"logLevel": "info",
1212
"env": {
1313
"METADATA_NEW_BUCKETS_VFORMAT": "v0",
14-
"S3_VERSION_ID_ENCODING_TYPE":"hex"
14+
"S3_VERSION_ID_ENCODING_TYPE": "hex"
1515
},
1616
"migration": {
1717
"deploy": false,

0 commit comments

Comments
 (0)