Skip to content

Commit 3b6f1bf

Browse files
committed
run prettier --write .
1 parent 9b8d21f commit 3b6f1bf

File tree

156 files changed

+28520
-13814
lines changed

Some content is hidden

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

156 files changed

+28520
-13814
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,37 @@ requests. For general questions, please use the Couchbase forums:
33
https://forums.couchbase.com/c/mobile/sync-gateway. Thank you!
44

55
### Sync Gateway version
6+
67
Version information is written on startup to the Sync Gateway log, or can
78
be obtained by accessing the root endpoint (`/`) on the Sync Gateway Admin REST API.
89

910
### Operating system
11+
1012
The operating system you're running Sync Gateway on.
1113

1214
### Config file
15+
1316
```javascript
1417
# When relevant, copy-paste your sync gateway config here. Remove any sensitive information
1518
as appropriate (including addresses, passwords, etc).
1619
```
1720

1821
### Log output
22+
1923
Provide a link to a GitHub Gist containing relevant Sync Gateway log output when
2024
the error occured. Do NOT paste the log output in the issue, just paste the
2125
link to the Gist.
2226

2327
### Expected behavior
28+
2429
What should have happened?
2530

2631
### Actual behavior
32+
2733
What actually happened?
2834

2935
### Steps to reproduce
36+
3037
1.
3138
2.
3239
3.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
CBG-0000
22

33
Describe your PR here...
4+
45
- Use bullet points if there's more than one thing changed
56

67
## Pre-review checklist
8+
79
- [ ] Removed debug logging (`fmt.Print`, `log.Print`, ...)
810
- [ ] Logging sensitive data? Make sure it's tagged (e.g. `base.UD(docID)`, `base.MD(dbName)`)
911
- [ ] Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in `docs/api`
1012

1113
## Dependencies (if applicable)
14+
1215
- [ ] Link upstream PRs
1316
- [ ] Update Go module dependencies when merged
1417

1518
## [Integration Tests](https://jenkins.sgwdev.com/job/SyncGatewayIntegration/build?delay=0sec)
19+
1620
- [ ] `GSI=true,xattrs=true` https://jenkins.sgwdev.com/job/SyncGatewayIntegration/0000/

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ When performing a code review, if a log message includes User Data, ensure the v
66

77
When performing a code review, be mindful of performance implications, such as mutex contention, race conditions, and other concurrency-related issues.
88

9-
When performing a code review, ensure code comments explain the *intent* or *reasoning* behind an implementation, rather than just restating what the code does.
9+
When performing a code review, ensure code comments explain the _intent_ or _reasoning_ behind an implementation, rather than just restating what the code does.
1010

1111
When performing a code review, ensure `for` loops have sufficient exit conditions and are not prone to infinite loops. Prefer expressing the exit condition in the loop declaration itself, rather than relying on `break` statements within the loop body.

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
version: 2
1010
updates:
11-
- package-ecosystem: "gomod"
12-
directory: "/"
11+
- package-ecosystem: 'gomod'
12+
directory: '/'
1313
schedule:
14-
interval: "weekly"
14+
interval: 'weekly'
1515
registries:
1616
- gh-private
1717
registries:

.github/workflows/prettier.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ concurrency:
2222
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2323
cancel-in-progress: ${{ !contains(github.ref, 'release/')}}
2424

25-
2625
jobs:
2726
prettier:
2827
runs-on: ubuntu-latest
@@ -33,9 +32,9 @@ jobs:
3332
- name: Prettier validation
3433
uses: creyD/[email protected]
3534
with:
36-
prettier_plugins: |
37-
"@prettier/plugin-xml"
38-
dry: True
35+
prettier_options: "--check ."
36+
prettier_plugins: "@prettier/plugin-xml"
37+
dry: true
3938
- name: Find Comment
4039
if: failure() && github.event_name == 'pull_request'
4140
uses: peter-evans/find-comment@v3

.github/workflows/service.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/setup-go@v5
4949
with:
5050
go-version: 1.23.3
51-
- name: "Build Sync Gateway"
51+
- name: 'Build Sync Gateway'
5252
run: mkdir -p ./bin && go build -o ./bin ./...
53-
- name: "Run test scripts"
53+
- name: 'Run test scripts'
5454
run: ./integration-test/service-install-tests.sh

.golangci-strict.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# software will be governed by the Apache License, Version 2.0, included in
77
# the file licenses/APL2.txt.
88

9-
version: "2"
9+
version: '2'
1010
linters:
1111
enable:
1212
- gocritic # The most opinionated Go source code linter
@@ -95,16 +95,16 @@ linters:
9595
- linters:
9696
- unused
9797
path: rest/debug.go
98-
- text: "ST1000:" # at least one file in a package should have a package comment
98+
- text: 'ST1000:' # at least one file in a package should have a package comment
9999
linters:
100100
- staticcheck
101-
- text: "ST1020:" # comment on exported method should be of the form "MethodName ..."
101+
- text: 'ST1020:' # comment on exported method should be of the form "MethodName ..."
102102
linters:
103103
- staticcheck
104-
- text: "ST1021:" # comment on exported type should be of the form "TypeName ..."
104+
- text: 'ST1021:' # comment on exported type should be of the form "TypeName ..."
105105
linters:
106106
- staticcheck
107-
- text: "ST1022:" # comment on exported type should be of the form "TypeName ..."
107+
- text: 'ST1022:' # comment on exported type should be of the form "TypeName ..."
108108
linters:
109109
- staticcheck
110110
formatters:

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# software will be governed by the Apache License, Version 2.0, included in
77
# the file licenses/APL2.txt.
88

9-
version: "2"
9+
version: '2'
1010
linters:
1111
enable:
1212
- bodyclose # checks whether HTTP response body is closed successfully

.redocly.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,47 @@
1010

1111
apis:
1212
admin:
13-
root: "./docs/api/admin.yaml"
13+
root: './docs/api/admin.yaml'
1414
decorators:
1515
remove-x-internal: on
1616
admin-internal:
17-
root: "./docs/api/admin.yaml"
17+
root: './docs/api/admin.yaml'
1818
admin-capella:
19-
root: "./docs/api/admin-capella.yaml"
19+
root: './docs/api/admin-capella.yaml'
2020
decorators:
2121
plugin/excise-rbac-capella: on
2222
filter-out:
2323
property: x-capella
2424
value: false
2525
remove-x-internal: on
2626
public:
27-
root: "./docs/api/public.yaml"
27+
root: './docs/api/public.yaml'
2828
decorators:
2929
remove-x-internal: on
3030
public-internal:
31-
root: "./docs/api/public.yaml"
31+
root: './docs/api/public.yaml'
3232
public-capella:
33-
root: "./docs/api/public.yaml"
33+
root: './docs/api/public.yaml'
3434
decorators:
3535
filter-out:
3636
property: x-capella
3737
value: false
3838
info-override:
39-
description: "App Services manages access and synchronization between Couchbase Lite and Couchbase Capella"
40-
title: "App Services"
39+
description: 'App Services manages access and synchronization between Couchbase Lite and Couchbase Capella'
40+
title: 'App Services'
4141
plugin/excise-rbac-capella: on
4242
plugin/replace-description-capella: on
4343
plugin/replace-server-capella:
4444
serverUrl: 'https://{hostname}:4984'
4545
remove-x-internal: on
4646
metric:
47-
root: "./docs/api/metric.yaml"
47+
root: './docs/api/metric.yaml'
4848
decorators:
4949
remove-x-internal: on
5050
metric-internal:
51-
root: "./docs/api/metric.yaml"
51+
root: './docs/api/metric.yaml'
5252
metric-capella:
53-
root: "./docs/api/metric-capella.yaml"
53+
root: './docs/api/metric-capella.yaml'
5454
decorators:
5555
filter-out:
5656
property: x-capella
@@ -59,11 +59,11 @@ apis:
5959
plugin/replace-description-capella: on
6060
remove-x-internal: on
6161
diagnostic:
62-
root: "./docs/api/diagnostic.yaml"
62+
root: './docs/api/diagnostic.yaml'
6363
decorators:
6464
remove-x-internal: on
6565
diagnostic-internal:
66-
root: "./docs/api/diagnostic.yaml"
66+
root: './docs/api/diagnostic.yaml'
6767

6868
plugins:
6969
- './docs/api/plugins/plugin.js'
@@ -75,11 +75,11 @@ rules:
7575
# disable unnecessary/invalid warnings
7676
operation-2xx-response: off # _blipsync 101 Upgrade ...
7777
operation-4xx-response: off # do not require a 4xx response
78-
operation-summary: off # Optional field
79-
no-ambiguous-paths: off # /{db}/{doc} != /_debug/expvar
80-
no-identical-paths: off # /{db} != /{targetdb}
78+
operation-summary: off # Optional field
79+
no-ambiguous-paths: off # /{db}/{doc} != /_debug/expvar
80+
no-identical-paths: off # /{db} != /{targetdb}
8181
no-path-trailing-slash: off # Some endpoints require a trailing slash
82-
security-defined: off # TODO: Denote public and authenticated API endpoints with https://redocly.com/docs/cli/rules/security-defined
82+
security-defined: off # TODO: Denote public and authenticated API endpoints with https://redocly.com/docs/cli/rules/security-defined
8383
custom-rules/typecheck-defaults: error
8484
custom-rules/check-additional-properties-names: error
8585
custom-rules/check-properties-sorted: error

.yamllint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# the file licenses/APL2.txt.
88

99
---
10-
1110
extends: default
1211

1312
rules:

0 commit comments

Comments
 (0)