Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
.vscode
node_modules
release
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.{sql,cql,hql,file,txt}]
insert_final_newline = false
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ You have no Jira task for this PR? Describe your changes here...

You feel the need to provide technical explanations? You can do it here...

...
...
30 changes: 15 additions & 15 deletions .github/workflows/jira_link_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
# follow the pattern: <username>:<api token from jira>
name: jira-description-action
on:
pull_request:
types: [opened, reopened]
pull_request:
types: [opened, reopened]
jobs:
add-jira-description:
runs-on: ubuntu-latest
steps:
- uses: cakeinpanic/jira-description-action@v0.9.0
name: jira-description-action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-token: ${{ secrets.JIRA_TOKEN }}
jira-base-url: https://hackolade.atlassian.net
skip-branches: '^(develop|main|master)$' #optional
jira-project-key: 'HCK' #optional
use: 'both'
fail-when-jira-issue-not-found: false
add-jira-description:
runs-on: ubuntu-latest
steps:
- uses: cakeinpanic/jira-description-action@v0.9.0
name: jira-description-action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-token: ${{ secrets.JIRA_TOKEN }}
jira-base-url: https://hackolade.atlassian.net
skip-branches: '^(develop|main|master)$' #optional
jira-project-key: 'HCK' #optional
use: 'both'
fail-when-jira-issue-not-found: false
58 changes: 29 additions & 29 deletions .github/workflows/notif-push-to-slack.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
#https://docs.github.com/en/webhooks/webhook-events-and-payloads#push
name: notify-push
on:
push:
branches:
- develop
push:
branches:
- develop
jobs:
notify:
runs-on: ubuntu-latest
env:
AUTHOR: ${{ github.event.pusher.name }}
COMMIT_PUSH_SOURCE: ${{ secrets.COMMIT_PUSH_SOURCE }}
steps:
- name: notify slack
id: slack
if: ${{ env.AUTHOR == env.COMMIT_PUSH_SOURCE }}
uses: slackapi/slack-github-action@v1.26.0
with:
channel-id: 'develop-direct-pushes'
payload: |
{
"text": " ${{ github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Push: ${{ github.event.head_commit.url }}"
}
}
]
}
notify:
runs-on: ubuntu-latest
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
AUTHOR: ${{ github.event.pusher.name }}
COMMIT_PUSH_SOURCE: ${{ secrets.COMMIT_PUSH_SOURCE }}
steps:
- name: notify slack
id: slack
if: ${{ env.AUTHOR == env.COMMIT_PUSH_SOURCE }}
uses: slackapi/slack-github-action@v1.26.0
with:
channel-id: 'develop-direct-pushes'
payload: |
{
"text": " ${{ github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Push: ${{ github.event.head_commit.url }}"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
28 changes: 14 additions & 14 deletions .github/workflows/trigger-pr-tests-plugins.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Trigger PR tests (Plugins)

on:
pull_request:
types: [auto_merge_enabled]
pull_request:
types: [auto_merge_enabled]

jobs:
trigger-pr-tests-plugins:
name: Trigger PR tests (Plugins)
runs-on: ubuntu-latest
steps:
- name: Call TeamCity API endpoint
run: |
curl \
-X POST \
-H 'Authorization: Bearer ${{ secrets.TEAMCITY_TRIGGER_TESTS_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{"branchName": "pull/${{ github.event.number }}", "buildType": {"id": "${{ vars.TEAMCITY_BUILD_ID_FOR_TESTING_PLUGIN_PR }}"}, "properties": { "property": [ {"name": "BUILD_BRANCH", "value": "${{ github.event.pull_request.head.ref }}" }] }}' \
${{ vars.TEAMCITY_API_URL }}/buildQueue
trigger-pr-tests-plugins:
name: Trigger PR tests (Plugins)
runs-on: ubuntu-latest
steps:
- name: Call TeamCity API endpoint
run: |
curl \
-X POST \
-H 'Authorization: Bearer ${{ secrets.TEAMCITY_TRIGGER_TESTS_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{"branchName": "pull/${{ github.event.number }}", "buildType": {"id": "${{ vars.TEAMCITY_BUILD_ID_FOR_TESTING_PLUGIN_PR }}"}, "properties": { "property": [ {"name": "BUILD_BRANCH", "value": "${{ github.event.pull_request.head.ref }}" }] }}' \
${{ vars.TEAMCITY_API_URL }}/buildQueue
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json
.antlr
.idea
node_modules
.DS_Store
release
tscDist
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
32 changes: 32 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 120,
"tabWidth": 4,
"useTabs": true,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": false,
"quoteProps": "preserve",
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"endOfLine": "lf",
"jsdoc": true,
"sortPackageJson": false,
"sortImports": {
"ignoreCase": true,
"newlinesBetween": true,
"groups": ["builtin", "external", ["parent", "sibling", "index"]]
},
"ignorePatterns": [
".git",
".vscode",
".idea",
".sonarlint",
"release",
"node_modules",
"package.json",
"package-lock.json"
]
}
62 changes: 62 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "jsdoc"],
"jsPlugins": [
{
"name": "jsdoc-js",
"specifier": "eslint-plugin-jsdoc"
}
],
"categories": {
"correctness": "error",
"suspicious": "error",
"perf": "error",
"pedantic": "warn"
},
"rules": {
"eslint/no-inline-comments": "off",
"max-classes-per-file": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"no-bitwise": "warn",
"require-await": "off",
"typescript/prefer-readonly-parameter-types": "off",
"typescript/strict-boolean-expressions": "off",
"typescript/no-unsafe-assignment": "error",
"unicorn/require-module-specifiers": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/prefer-module": "off",
"jsdoc-js/require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}
],
"jsdoc-js/check-param-names": "error",
"jsdoc-js/check-types": "error",
"jsdoc-js/no-undefined-types": "error",
"jsdoc-js/require-returns-check": "error",
"jsdoc/require-param": "error",
"jsdoc/require-param-name": "error",
"jsdoc/require-param-type": "error",
"jsdoc/require-returns": "error",
"jsdoc/require-returns-type": "error"
},
"ignorePatterns": [
"**/*.config.*",
"**/*.d.ts",
".git",
".idea",
".vscode",
"build",
"node_modules",
"out/**/*",
"release"
]
}
4 changes: 4 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# IMPORTANT: DO NOT MODIFY THIS FILE!
# We configure SonarCloud through its web UI, not through this file. The property `sonar.tests` is an exception because
# there is no UI for it. See documentation here: https://docs.sonarsource.com/sonarcloud/advanced-setup/analysis-scope/
#sonar.tests=test
1 change: 1 addition & 0 deletions .sonarlint/connectedMode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "sonarCloudOrganization": "hck", "projectKey": "hackolade_Db2-zOS" }
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"oxc.oxc-vscode",
"sonarsource.sonarlint-vscode",
"streetsidesoftware.code-spell-checker",
"vitest.explorer"
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.defaultFormatter": "oxc.oxc-vscode",
"oxc.enable": true,
"oxc.typeAware": false,
"editor.codeActionsOnSave": {
"source.fixAll.oxlint": "always"
},
"cSpell.words": ["jridgewell", "oxfmt", "oxlint", "tsgolint"]
}
Loading