Skip to content

Commit 351e17c

Browse files
authored
Chore: add more pre-commit hook for consistency of source files (#1932)
* enable more hooks * apply prek on all file with latest hooks
1 parent 44c68c4 commit 351e17c

307 files changed

Lines changed: 1701 additions & 1763 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.

.devfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ commands:
247247
commandLine: |
248248
export CHECLUSTER_NAME="$(kubectl get checluster --all-namespaces -o json | jq -r '.items[0].metadata.name')" &&
249249
export CHECLUSTER_NAMESPACE="$(kubectl get checluster --all-namespaces -o json | jq -r '.items[0].metadata.namespace')" &&
250-
export OPENVSX_ROUTE_URL="$(oc get route internal -n "$OPENVSX_NAMESPACE" -o jsonpath='{.spec.host}')" &&
250+
export OPENVSX_ROUTE_URL="$(oc get route internal -n "$OPENVSX_NAMESPACE" -o jsonpath='{.spec.host}')" &&
251251
export PATCH='{"spec":{"components":{"pluginRegistry":{"openVSXURL":"https://'"$OPENVSX_ROUTE_URL"'"}}}}' &&
252252
kubectl patch checluster "${CHECLUSTER_NAME}" --type=merge --patch "${PATCH}" -n "${CHECLUSTER_NAMESPACE}"
253253

.pre-commit-config.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
exclude: '^((cli|webui)/.yarn|server/src/main/resources/db/migration)'
12
repos:
2-
#- repo: https://github.com/pre-commit/pre-commit-hooks
3-
# rev: v6.0.0
4-
# hooks:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v6.0.0
5+
hooks:
56
# - id: check-yaml
6-
# - id: end-of-file-fixer
7-
# - id: mixed-line-ending
8-
# - id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- id: mixed-line-ending
9+
- id: trailing-whitespace
910
#- repo: https://github.com/Lucas-C/pre-commit-hooks
1011
# rev: v1.5.5
1112
# hooks:

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"richardwillis.vscode-gradle",
88
"redhat.vscode-yaml"
99
]
10-
}
10+
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
"processId": "${command:PickProcess}"
2323
}
2424
]
25-
}
25+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
]
1515
},
1616
"java.saveActions.organizeImports": true
17-
}
17+
}

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Community Code of Conduct
22

3-
**Version 2.0
3+
**Version 2.0
44
January 1, 2023**
55

66
## Our Pledge

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ No third-party beneficiary rights are created under this Agreement.
261261

262262
Exhibit A - Form of Secondary Licenses Notice
263263

264-
"This Source Code may also be made available under the following
265-
Secondary Licenses when the conditions for such availability set forth
264+
"This Source Code may also be made available under the following
265+
Secondary Licenses when the conditions for such availability set forth
266266
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
267267
version(s), and exceptions or additional permissions here}."
268268

@@ -274,4 +274,4 @@ version(s), and exceptions or additional permissions here}."
274274
file in a relevant directory) where a recipient would be likely to
275275
look for such a notice.
276276

277-
You may add additional accurate notices of copyright ownership.
277+
You may add additional accurate notices of copyright ownership.

NOTICE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,4 @@ may have restrictions on the import, possession, and use, and/or re-export to
266266
another country, of encryption software. BEFORE using any encryption software,
267267
please check the country's laws, regulations and policies concerning the import,
268268
possession, or use, and re-export of encryption software, to see if this is
269-
permitted.
269+
permitted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Open VSX is a [vendor-neutral](https://projects.eclipse.org/projects/ecd.openvsx
3131

3232
A public instance of Open VSX is running at [open-vsx.org](https://open-vsx.org/). Please report issues related to that instance at [EclipseFdn/open-vsx.org](https://github.com/EclipseFdn/open-vsx.org).
3333

34-
For information on publishing and managing extensions at open-vsx.org, please see
34+
For information on publishing and managing extensions at open-vsx.org, please see
3535
the [EclipseFdn/open-vsx.org wiki](https://github.com/EclipseFdn/open-vsx.org/wiki).
3636

3737
## Getting Started

cli/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
node_modules/
1010
yarn-error.log
1111
/scripts/downloads
12-
/src/version.ts
12+
/src/version.ts

0 commit comments

Comments
 (0)