diff --git a/.dockerignore b/.dockerignore index 600e365e..cf709889 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1 @@ -**/node_modules \ No newline at end of file +**/node_modules diff --git a/.github/workflows/publish-autopilot-utils.yaml b/.github/workflows/publish-autopilot-utils.yaml index 87a517a3..c6259493 100644 --- a/.github/workflows/publish-autopilot-utils.yaml +++ b/.github/workflows/publish-autopilot-utils.yaml @@ -2,7 +2,7 @@ name: Publish Autopilot Utils to PyPI on: workflow_dispatch: - + env: PYTHON_APPS_FOLDER: yaku-apps-python @@ -13,25 +13,25 @@ jobs: - uses: actions/checkout@v4 with: sparse-checkout: ${{ env.PYTHON_APPS_FOLDER }} - + - name: Put all files from ${{ env.PYTHON_APPS_FOLDER }} in cwd run: | mv ${{ env.PYTHON_APPS_FOLDER }}/* . - + - uses: actions/setup-python@v5 with: python-version: "3.10" - + - name: Setup pants uses: pantsbuild/actions/init-pants@v8 with: gha-cache-key: cache0 named-caches-hash: ${{ hashFiles('/3rdparty/*.txt') }} - + - name: Build wheel run: | pants package ./packages/autopilot-utils/:: - + - name: Store the distribution packages uses: actions/upload-artifact@v4 with: @@ -57,4 +57,4 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - verify-metadata: false \ No newline at end of file + verify-metadata: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..3963641a --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +--- +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files +# Docker-specific hooks +- repo: https://github.com/hadolint/hadolint + rev: v2.10.0 + hooks: + - id: hadolint # Lints Dockerfiles +# Conventional commit hooks for commit messages +- repo: https://github.com/compilerla/conventional-pre-commit + rev: v3.6.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] + args: [] diff --git a/README.md b/README.md index 93cd623e..e86d4e4d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ !! THIS PROJECT IS UNDER CONSTRUCTION !! -Under Construction +Under Construction
Foto from Mabel Amber from Pexels
diff --git a/chart/HELM_CHANGELOG.md b/chart/HELM_CHANGELOG.md index 32b91a58..cf7b2f6e 100644 --- a/chart/HELM_CHANGELOG.md +++ b/chart/HELM_CHANGELOG.md @@ -125,4 +125,4 @@ When a new official version is created to be delivered to external customers, th ### Changed -- Updated db_cacert_secret_name to cacert_secret_name in sandbox-migration-job \ No newline at end of file +- Updated db_cacert_secret_name to cacert_secret_name in sandbox-migration-job diff --git a/chart/README.md b/chart/README.md index f36037c6..bc704fb9 100644 --- a/chart/README.md +++ b/chart/README.md @@ -1 +1 @@ -# yaku-helm-chart \ No newline at end of file +# yaku-helm-chart diff --git a/chart/charts/yaku-core-api/Chart.yaml b/chart/charts/yaku-core-api/Chart.yaml index b983c4f7..259918d9 100644 --- a/chart/charts/yaku-core-api/Chart.yaml +++ b/chart/charts/yaku-core-api/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: yaku-core-api description: Yaku core api type: application -version: 0.1.0 \ No newline at end of file +version: 0.1.0 diff --git a/chart/charts/yaku-core-api/templates/api-deployment.yaml b/chart/charts/yaku-core-api/templates/api-deployment.yaml index 7d6f4c7d..cee88480 100644 --- a/chart/charts/yaku-core-api/templates/api-deployment.yaml +++ b/chart/charts/yaku-core-api/templates/api-deployment.yaml @@ -57,7 +57,7 @@ spec: {{- with .Values.securityContext }} securityContext: {{- toYaml . | nindent 12 }} - {{- end }} + {{- end }} image: {{ .Values.global.images.yakuCoreApi }} imagePullPolicy: {{ .Values.imagePullPolicy | default "IfNotPresent" }} ports: @@ -86,8 +86,8 @@ spec: timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.livenessProbe.successThreshold }} failureThreshold: {{ .Values.livenessProbe.failureThreshold }} - {{- end }} - env: + {{- end }} + env: - name: NODE_TLS_REJECT_UNAUTHORIZED value: {{ .Values.env.node_tls_reject_unauthorized | default "0" | quote }} - name: PATH_PREFIX @@ -330,4 +330,3 @@ spec: path: cacert.crt {{- end }} {{- end }} - diff --git a/chart/charts/yaku-core-api/templates/api-encryption-key-secret.yaml b/chart/charts/yaku-core-api/templates/api-encryption-key-secret.yaml index 19223fde..f6df6719 100644 --- a/chart/charts/yaku-core-api/templates/api-encryption-key-secret.yaml +++ b/chart/charts/yaku-core-api/templates/api-encryption-key-secret.yaml @@ -12,4 +12,4 @@ data: {{ else }} default_key: {{ index (lookup "v1" "Secret" .Release.Namespace "yaku-default-key").data "default_key" }} {{ end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-core-api/templates/api-service.yaml b/chart/charts/yaku-core-api/templates/api-service.yaml index 6daf068b..c7ffac46 100644 --- a/chart/charts/yaku-core-api/templates/api-service.yaml +++ b/chart/charts/yaku-core-api/templates/api-service.yaml @@ -21,4 +21,4 @@ spec: {{- include "yaku.selectorLabels" . | nindent 4 }} {{- with .Values.additionalSelectorLabels}} {{- toYaml . | nindent 4 }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/chart/charts/yaku-core-api/templates/minio-secret.yaml b/chart/charts/yaku-core-api/templates/minio-secret.yaml index 06a57fd9..4084587e 100644 --- a/chart/charts/yaku-core-api/templates/minio-secret.yaml +++ b/chart/charts/yaku-core-api/templates/minio-secret.yaml @@ -9,4 +9,4 @@ metadata: data: rootUser: bWluaW9hZG1pbg== rootPassword: bWluaW9hZG1pbg== -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-core-api/templates/sandbox-db-migration-config.yaml b/chart/charts/yaku-core-api/templates/sandbox-db-migration-config.yaml index 9fc0b447..a996634c 100644 --- a/chart/charts/yaku-core-api/templates/sandbox-db-migration-config.yaml +++ b/chart/charts/yaku-core-api/templates/sandbox-db-migration-config.yaml @@ -18,4 +18,4 @@ data: PGPASSWORD=$SANDBOX_DB_PASS pg_dump -d {{ .Values.env.db_name }} -h {{ .Values.global.database.db_host }} -U $SANDBOX_DB_USER --schema-only -O -x > /tmp/database-sandbox.db cat /tmp/database-sandbox.db -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-core-api/templates/sandbox-db-migration-job.yaml b/chart/charts/yaku-core-api/templates/sandbox-db-migration-job.yaml index c14177d2..00c4559d 100644 --- a/chart/charts/yaku-core-api/templates/sandbox-db-migration-job.yaml +++ b/chart/charts/yaku-core-api/templates/sandbox-db-migration-job.yaml @@ -70,4 +70,4 @@ spec: - key: {{ .Values.env.cacert_key_name | quote }} path: postgres.crt {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-core-api/templates/yaku-postgres.yaml b/chart/charts/yaku-core-api/templates/yaku-postgres.yaml index bddebdb1..fb28486e 100644 --- a/chart/charts/yaku-core-api/templates/yaku-postgres.yaml +++ b/chart/charts/yaku-core-api/templates/yaku-postgres.yaml @@ -60,7 +60,7 @@ spec: - SELECT 1 initialDelaySeconds: 15 timeoutSeconds: 2 - volumes: + volumes: - name: pvc-data persistentVolumeClaim: claimName: {{ .Values.postgres.persistence.name }} @@ -78,4 +78,4 @@ spec: targetPort: 5432 selector: app: {{ include "yaku.name" . }}-postgres-db -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-core-api/values.yaml b/chart/charts/yaku-core-api/values.yaml index df5fce17..09294ae5 100644 --- a/chart/charts/yaku-core-api/values.yaml +++ b/chart/charts/yaku-core-api/values.yaml @@ -1 +1 @@ -# Default values for yaku-core-api \ No newline at end of file +# Default values for yaku-core-api diff --git a/chart/charts/yaku-labs/Chart.yaml b/chart/charts/yaku-labs/Chart.yaml index faab2660..8028268a 100644 --- a/chart/charts/yaku-labs/Chart.yaml +++ b/chart/charts/yaku-labs/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: yaku-labs description: Yaku Labs type: application -version: 0.1.0 \ No newline at end of file +version: 0.1.0 diff --git a/chart/charts/yaku-labs/templates/labs-configmap.yaml b/chart/charts/yaku-labs/templates/labs-configmap.yaml index 62b0a069..24f376c4 100644 --- a/chart/charts/yaku-labs/templates/labs-configmap.yaml +++ b/chart/charts/yaku-labs/templates/labs-configmap.yaml @@ -9,4 +9,4 @@ data: probe.sh: | #!/bin/sh curl -X POST -d "{\"model\":\"llama3\"}" http://yaku-labs:11434/api/chat -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-labs/templates/labs-deployment.yaml b/chart/charts/yaku-labs/templates/labs-deployment.yaml index 7e2825ea..9a1fce04 100644 --- a/chart/charts/yaku-labs/templates/labs-deployment.yaml +++ b/chart/charts/yaku-labs/templates/labs-deployment.yaml @@ -6,7 +6,7 @@ metadata: labels: {{- include "yaku.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount | default 1 }} + replicas: {{ .Values.replicaCount | default 1 }} selector: matchLabels: {{- include "yaku.selectorLabels" . | nindent 6 }} @@ -79,7 +79,7 @@ spec: volumeMounts: - name: probe-script mountPath: /tmp/probe.sh - subPath: probe.sh + subPath: probe.sh volumes: - name: pvc-data persistentVolumeClaim: @@ -87,4 +87,4 @@ spec: - name: probe-script configMap: name: yaku-probe-config -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-labs/templates/labs-ingress.yaml b/chart/charts/yaku-labs/templates/labs-ingress.yaml index bf052b58..c752d308 100644 --- a/chart/charts/yaku-labs/templates/labs-ingress.yaml +++ b/chart/charts/yaku-labs/templates/labs-ingress.yaml @@ -59,4 +59,3 @@ spec: {{- end }} {{- end }} {{- end }} - diff --git a/chart/charts/yaku-labs/templates/labs-service.yaml b/chart/charts/yaku-labs/templates/labs-service.yaml index 5e262599..176a95e0 100644 --- a/chart/charts/yaku-labs/templates/labs-service.yaml +++ b/chart/charts/yaku-labs/templates/labs-service.yaml @@ -23,4 +23,4 @@ spec: {{- with .Values.additionalSelectorLabels}} {{- toYaml . | nindent 4 }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-labs/values.yaml b/chart/charts/yaku-labs/values.yaml index dfdd2079..525453ba 100644 --- a/chart/charts/yaku-labs/values.yaml +++ b/chart/charts/yaku-labs/values.yaml @@ -1 +1 @@ -# Default values for yaku-ui \ No newline at end of file +# Default values for yaku-ui diff --git a/chart/charts/yaku-ui/Chart.yaml b/chart/charts/yaku-ui/Chart.yaml index 83dc551d..df2f67cf 100644 --- a/chart/charts/yaku-ui/Chart.yaml +++ b/chart/charts/yaku-ui/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: yaku-ui description: Yaku ui type: application -version: 0.1.0 \ No newline at end of file +version: 0.1.0 diff --git a/chart/charts/yaku-ui/templates/ui-configmap.yaml b/chart/charts/yaku-ui/templates/ui-configmap.yaml index f67804f9..aa20095b 100644 --- a/chart/charts/yaku-ui/templates/ui-configmap.yaml +++ b/chart/charts/yaku-ui/templates/ui-configmap.yaml @@ -8,4 +8,4 @@ metadata: data: ui-config.json: | {{ .Values.config.backendEnvironments | indent 4 -}} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-ui/templates/ui-deployment.yaml b/chart/charts/yaku-ui/templates/ui-deployment.yaml index c1051665..03cecd4f 100644 --- a/chart/charts/yaku-ui/templates/ui-deployment.yaml +++ b/chart/charts/yaku-ui/templates/ui-deployment.yaml @@ -6,7 +6,7 @@ metadata: labels: {{- include "yaku.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount | default 1 }} + replicas: {{ .Values.replicaCount | default 1 }} selector: matchLabels: {{- include "yaku.selectorLabels" . | nindent 6 }} @@ -74,4 +74,4 @@ spec: configMap: name: {{ .Chart.Name }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-ui/templates/ui-ingress.yaml b/chart/charts/yaku-ui/templates/ui-ingress.yaml index bf052b58..c752d308 100644 --- a/chart/charts/yaku-ui/templates/ui-ingress.yaml +++ b/chart/charts/yaku-ui/templates/ui-ingress.yaml @@ -59,4 +59,3 @@ spec: {{- end }} {{- end }} {{- end }} - diff --git a/chart/charts/yaku-ui/templates/ui-service.yaml b/chart/charts/yaku-ui/templates/ui-service.yaml index 5e262599..176a95e0 100644 --- a/chart/charts/yaku-ui/templates/ui-service.yaml +++ b/chart/charts/yaku-ui/templates/ui-service.yaml @@ -23,4 +23,4 @@ spec: {{- with .Values.additionalSelectorLabels}} {{- toYaml . | nindent 4 }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/chart/charts/yaku-ui/values.yaml b/chart/charts/yaku-ui/values.yaml index dfdd2079..525453ba 100644 --- a/chart/charts/yaku-ui/values.yaml +++ b/chart/charts/yaku-ui/values.yaml @@ -1 +1 @@ -# Default values for yaku-ui \ No newline at end of file +# Default values for yaku-ui diff --git a/chart/crds/argo-workflows-crds.yaml b/chart/crds/argo-workflows-crds.yaml index 8c70c659..aa346190 100644 --- a/chart/crds/argo-workflows-crds.yaml +++ b/chart/crds/argo-workflows-crds.yaml @@ -871,4 +871,4 @@ spec: - spec type: object served: true - storage: true \ No newline at end of file + storage: true diff --git a/chart/documentation/configure-keycloak.md b/chart/documentation/configure-keycloak.md index 0f485db9..c4b128f7 100644 --- a/chart/documentation/configure-keycloak.md +++ b/chart/documentation/configure-keycloak.md @@ -26,7 +26,7 @@ Based on your used Keycloak instance, please follow one of the option below. 1. Login with a user that have admin access to your realm `kcadm.sh config credentials --server --realm --user admin ` - 2. Run `./tools/setup-realm.sh` + 2. Run `./tools/setup-realm.sh` 3. Go to `Client scopes`, change `global` Assigned type to `optional` and `namespace_1` Assigned type to `Default` @@ -36,7 +36,7 @@ Based on your used Keycloak instance, please follow one of the option below. Under (Choose the resources you want to import:), check: Clients, Realm roles and client roles. - Under (If a resource already exists, specify what should be done:) check: skip + Under (If a resource already exists, specify what should be done:) check: skip You will then need to perform some manual steps to customize it and get the configuration working with your Yaku instance. @@ -50,7 +50,7 @@ The pre-configured realm imported from [yaku-realm-configmap.yaml file](./tools/ A users in Keycloak is any entity that can login into your system. Yaku access is based on two users groups: - **Admin users** - Admins have permissions to create and modify namespaces in a Yaku instance. + Admins have permissions to create and modify namespaces in a Yaku instance. - **Namespace users** Normal users that have access to one or multiple namespaces and can run Yaku assessments @@ -61,7 +61,7 @@ After configuring your identity provider in Keycloak, users will be able to logi ### Configure Identity Provider Keycloak acts as an Identity Broker to connect Yaku services with identity providers. It uses the provider’s identities to access Yaku services. -Keycloak bases identity providers on SAML v2.0, OpenID Connect v1.0 and OAuth v2.0 protocols. You can configure Keycloak to use any of these protocols to connect with your identity provider. +Keycloak bases identity providers on SAML v2.0, OpenID Connect v1.0 and OAuth v2.0 protocols. You can configure Keycloak to use any of these protocols to connect with your identity provider. To add an identity provider, click on the `Identity Providers` tab in the left side menu and select the identity provider type you want to add. Keycloak displays the configuration page for the identity provider you selected. @@ -70,7 +70,7 @@ We provide below two configuration examples for OpenID Connect and SAML. #### OpenID Connect -This identity provider uses an Azure Entra ID OpenID Connect app registration created and configured in an Azure subscription. +This identity provider uses an Azure Entra ID OpenID Connect app registration created and configured in an Azure subscription. 1. Fill up the configuration page of the OpenID connect identity provider with the following values. You can find the `clientId` and `clientSecret` in your App registration details. @@ -124,7 +124,7 @@ You can find more information about configuring OpenID Connect identity provider #### SAML -This identity provider uses an Azure Entra ID SAML app registration created and configured in an Azure subscription. +This identity provider uses an Azure Entra ID SAML app registration created and configured in an Azure subscription. 1. Fill up the configuration page of the OpenID connect identity provider with the following values. You can find the `clientId` and `clientSecret` in your App registration details. diff --git a/chart/documentation/core-api.md b/chart/documentation/core-api.md index b8e6363a..7686a71d 100644 --- a/chart/documentation/core-api.md +++ b/chart/documentation/core-api.md @@ -6,13 +6,13 @@ Yaku uses Argo Workflows workflow engine for orchestrating qg assessment jobs on With Yaku helm chart, we ship Argo Workflows public helm chart as a sub chart. To get you started, we have configured Argo Workflows default values. In your production environment, you can tweak the Argo values based on your requirements. -A MinIO helm chart is also included as a sub chart to start Minio as an S3 artifact storage for Argo workflows. +A MinIO helm chart is also included as a sub chart to start Minio as an S3 artifact storage for Argo workflows. Out of the box, the Minio deployment uses default credentials that are stored in a Kubernetes secret called **minio-creds**. To use different credentials, you need to create a new secret with your own credentials and add the secret name in the helm chart value _credentialsSecretName_. Read the variables documentation in the **values.yaml** file. ## Encryption Keys -**Important Notes** +**Important Notes** The API has an internal mechanism to encrypt user sensitive data (yaku secrets) before storing them in tha database. You need to set up your own encryption key and create a Kubernetes secret that contains this key. The secret name and key should then be added in the following helm chart values: @@ -37,7 +37,7 @@ The values in the helm chart should be: - `encryption_secret_name: "my_yaku_encryption_secret"` - `encryption_secret_key: "my_yaku_encryption_key"` -Out of the box, for trying Yaku in a playground setup, a predefined encryption key is generated that you can use. We recommend that you create your own value and deploy it as kuberenets secret, then add the kubernetes secret info in values file under `encryption_secret_name` and `encryption_secret_key` +Out of the box, for trying Yaku in a playground setup, a predefined encryption key is generated that you can use. We recommend that you create your own value and deploy it as kuberenets secret, then add the kubernetes secret info in values file under `encryption_secret_name` and `encryption_secret_key` ## Database diff --git a/chart/documentation/deploy-keycloak.md b/chart/documentation/deploy-keycloak.md index a3c98eff..bbb81b20 100644 --- a/chart/documentation/deploy-keycloak.md +++ b/chart/documentation/deploy-keycloak.md @@ -2,7 +2,7 @@ Yaku depends on Keycloak for the management of user authentication and authorization. Keycloak is a an open-source Identity and Access Management (IAM) solution that supports various protocols such as OpenID Connect, OAuth 2.0, and SAML. Official documentation for Keycloak can be found [here](https://www.keycloak.org/documentation.html). -In this document, we will provide you with a step-by-step guide on how to deploy a Keycloak instance on a Kubernetes cluster and how to configure the instance for Yaku. +In this document, we will provide you with a step-by-step guide on how to deploy a Keycloak instance on a Kubernetes cluster and how to configure the instance for Yaku. ## Deploying Keycloak @@ -91,7 +91,7 @@ spec: mountPath: /var/lib/postgresql/data ports: - containerPort: 5432 - volumes: + volumes: - name: pvc-data persistentVolumeClaim: claimName: keycloak-postgres @@ -200,7 +200,7 @@ spec: `KC_HOSTNAME_URL` and `KC_HOSTNAME_ADMIN_URL` need to be changed based on the hostname you have in your ingress resource. #### service.yml - + ```yaml apiVersion: v1 kind: Service @@ -247,9 +247,3 @@ spec: If the pod is up and running, you can access keycloak on: https://your-domain.com/keycloak/auth/ - - - - - - diff --git a/chart/documentation/get-started.md b/chart/documentation/get-started.md index 5e1e4061..da4681df 100644 --- a/chart/documentation/get-started.md +++ b/chart/documentation/get-started.md @@ -37,6 +37,5 @@ Before you start, you need: - Free storage if you'll be using persistent storage - A namespace where you'll deploy Yaku. - A Docker pull Kubernetes secret, with the value of the access token to Yaku's Azure container registry, created in the namespace. -- A Kubernetes secret for yaku service secret objects encryption is created. This value is needed to encrypt sensitive data stored in the db. Learn [here](./core-api.md#encryption-keys) why you need that. If you want to try Yaku in a playground setup, you can skip this requirement. This will generate a predefined encryption key which you can use. We recommend that you create your own value and deploy it as kuberenets secret, then add the kubernetes secret info in values file under `encryption_secret_name` and `encryption_secret_key` +- A Kubernetes secret for yaku service secret objects encryption is created. This value is needed to encrypt sensitive data stored in the db. Learn [here](./core-api.md#encryption-keys) why you need that. If you want to try Yaku in a playground setup, you can skip this requirement. This will generate a predefined encryption key which you can use. We recommend that you create your own value and deploy it as kuberenets secret, then add the kubernetes secret info in values file under `encryption_secret_name` and `encryption_secret_key` - Helm deployment values are configured. All configurations are documented in the **values.yaml** file. - diff --git a/chart/documentation/tools/create_namespace_client.sh b/chart/documentation/tools/create_namespace_client.sh index 1edc368b..0850f011 100755 --- a/chart/documentation/tools/create_namespace_client.sh +++ b/chart/documentation/tools/create_namespace_client.sh @@ -75,19 +75,19 @@ echo "Client scope id: $client_scope_id" # Create role mapper -kcadm.sh create client-scopes/$client_scope_id/protocol-mappers/models -r $realm -b '{ - "name": "client roles", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-client-role-mapper", - "consentRequired": false, - "config": { - "multivalued": true, - "userinfo.token.claim": false, - "id.token.claim": false, - "access.token.claim": true, - "claim.name": "resource_access.${client_id}.roles", - "usermodel.clientRoleMapping.clientId": "'$client_name'" - } +kcadm.sh create client-scopes/$client_scope_id/protocol-mappers/models -r $realm -b '{ + "name": "client roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-client-role-mapper", + "consentRequired": false, + "config": { + "multivalued": true, + "userinfo.token.claim": false, + "id.token.claim": false, + "access.token.claim": true, + "claim.name": "resource_access.${client_id}.roles", + "usermodel.clientRoleMapping.clientId": "'$client_name'" + } }' # Add client scope to clients: clients: yaku-cli, yaku-core, yaku-core-swagger and yaku-portal @@ -103,4 +103,4 @@ kcadm.sh update clients/$yaku_core_swagger_id/default-client-scopes/$client_scop kcadm.sh update clients/$yaku_cli_id/default-client-scopes/$client_scope_id -r $realm -b "{\"defaultClientScopes\": [\"$client_scope_name\"]}" kcadm.sh update clients/$yaku_portal_id/default-client-scopes/$client_scope_id -r $realm -b "{\"defaultClientScopes\": [\"$client_scope_name\"]}" -echo "Client ${client_name} was created successfully!" \ No newline at end of file +echo "Client ${client_name} was created successfully!" diff --git a/chart/documentation/tools/setup_realm.sh b/chart/documentation/tools/setup_realm.sh index d60c8833..4684ce19 100755 --- a/chart/documentation/tools/setup_realm.sh +++ b/chart/documentation/tools/setup_realm.sh @@ -18,19 +18,19 @@ global_client_scope_id=$(kcadm.sh get client-scopes -r $realm | jq -r --arg NAME echo "Global client scope id: $global_client_scope_id" # Create role mapper -kcadm.sh create client-scopes/$global_client_scope_id/protocol-mappers/models -r $realm -b '{ - "name": "client roles", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-client-role-mapper", - "consentRequired": false, - "config": { - "multivalued": true, - "userinfo.token.claim": false, - "id.token.claim": false, - "access.token.claim": true, - "claim.name": "resource_access.${client_id}.roles", - "usermodel.clientRoleMapping.clientId": "GLOBAL" - } +kcadm.sh create client-scopes/$global_client_scope_id/protocol-mappers/models -r $realm -b '{ + "name": "client roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-client-role-mapper", + "consentRequired": false, + "config": { + "multivalued": true, + "userinfo.token.claim": false, + "id.token.claim": false, + "access.token.claim": true, + "claim.name": "resource_access.${client_id}.roles", + "usermodel.clientRoleMapping.clientId": "GLOBAL" + } }' @@ -41,17 +41,17 @@ namespace_1_client_scope_id=$(kcadm.sh get client-scopes -r $realm | jq -r --arg echo "NAMESPACE_1 client scope id: $namespace_1_client_scope_id" # Create role mapper -kcadm.sh create client-scopes/$namespace_1_client_scope_id/protocol-mappers/models -r $realm -b '{ - "name": "client roles", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-client-role-mapper", - "consentRequired": false, - "config": { - "multivalued": true, - "userinfo.token.claim": false, - "id.token.claim": false, - "access.token.claim": true, - "claim.name": "resource_access.${client_id}.roles", - "usermodel.clientRoleMapping.clientId": "NAMESPACE_1" - } - }' \ No newline at end of file +kcadm.sh create client-scopes/$namespace_1_client_scope_id/protocol-mappers/models -r $realm -b '{ + "name": "client roles", + "protocol": "openid-connect", + "protocolMapper": "oidc-usermodel-client-role-mapper", + "consentRequired": false, + "config": { + "multivalued": true, + "userinfo.token.claim": false, + "id.token.claim": false, + "access.token.claim": true, + "claim.name": "resource_access.${client_id}.roles", + "usermodel.clientRoleMapping.clientId": "NAMESPACE_1" + } + }' diff --git a/chart/documentation/tools/yaku-realm-configmap.yaml b/chart/documentation/tools/yaku-realm-configmap.yaml index c4d6ab3e..cf86bf21 100644 --- a/chart/documentation/tools/yaku-realm-configmap.yaml +++ b/chart/documentation/tools/yaku-realm-configmap.yaml @@ -2600,4 +2600,4 @@ data: "clientPolicies": { "policies": [] } - } \ No newline at end of file + } diff --git a/chart/documentation/tools/yaku-realm.json b/chart/documentation/tools/yaku-realm.json index dd8f80d1..40a3e0fb 100644 --- a/chart/documentation/tools/yaku-realm.json +++ b/chart/documentation/tools/yaku-realm.json @@ -2594,4 +2594,4 @@ "clientPolicies": { "policies": [] } -} \ No newline at end of file +} diff --git a/chart/documentation/yaku-cli.md b/chart/documentation/yaku-cli.md index e3c783b2..7708929c 100644 --- a/chart/documentation/yaku-cli.md +++ b/chart/documentation/yaku-cli.md @@ -49,14 +49,14 @@ A user that have the role `ADMIN` of Keycloak client `GLOBAL` can perform admin If you run the followng command: ```bash -yaku login --admin +yaku login --admin ``` You will be asked if you want to create a new environment. - If you answer `Y`, you will be asked to provide the new environment information: - Name of the environment - URL of the environment: this is your Yaku api instance URL. e.g. `https://yaku.growpat.com/api/v1` - - The cli will provide you a device code. If you have the configured `.yaku-auth` file successfully in previous configuration step, a login page will be opened in your default browser. You will be asked to login to the Keycloak realm with the device code that the cli provides you. After successful login, you will be asked to login. Choose to login with the identity provide you have setup in keycloak. + - The cli will provide you a device code. If you have the configured `.yaku-auth` file successfully in previous configuration step, a login page will be opened in your default browser. You will be asked to login to the Keycloak realm with the device code that the cli provides you. After successful login, you will be asked to login. Choose to login with the identity provide you have setup in keycloak. - click `yes` to answer the prompt `Do you grant these access privileges?`in your browser. After successful login, the cli will save the environment information in the `$HOME/.yakurc` file. - If you answer `n`, you will be asked to choose an existing environment to login to. @@ -64,12 +64,12 @@ You will be asked if you want to create a new environment. #### Create namespace - + ```bash yaku ns create ``` -You can't create an empty namespace. You have to add one user at least to be able to create a namespace. +You can't create an empty namespace. You have to add one user at least to be able to create a namespace. The user should be a valid user in the Keycloak realm. @@ -88,5 +88,3 @@ Then it is similar to the steps in [admin login](#login-as-admin). You will be a To manage configs and runs, check the help of the command `yaku configs --help` and `yaku runs --help`. You can also check [yaku user docs](https://docs.bswf.tech/cli/index.html) - - diff --git a/chart/documentation/yaku-components.drawio.svg b/chart/documentation/yaku-components.drawio.svg index 33ed9fbe..dfaaa6ec 100644 --- a/chart/documentation/yaku-components.drawio.svg +++ b/chart/documentation/yaku-components.drawio.svg @@ -220,4 +220,4 @@ - \ No newline at end of file + diff --git a/chart/documentation/yaku-components.svg b/chart/documentation/yaku-components.svg index 570b2f42..66250b2f 100644 --- a/chart/documentation/yaku-components.svg +++ b/chart/documentation/yaku-components.svg @@ -1 +1 @@ -
UI
UI
Yaku API
Yaku API
Argo Workflow controller
Argo Workflow contro...
Minio S3
Minio S3
1
1
1
1
2
2
Postgres
Postgres
3
3
Keycloak
Keycloak
4
4
Text is not SVG - cannot display
\ No newline at end of file +
UI
UI
Yaku API
Yaku API
Argo Workflow controller
Argo Workflow contro...
Minio S3
Minio S3
1
1
1
1
2
2
Postgres
Postgres
3
3
Keycloak
Keycloak
4
4
Text is not SVG - cannot display
diff --git a/chart/tools/semver b/chart/tools/semver index 33bede89..f5fa8d08 100755 --- a/chart/tools/semver +++ b/chart/tools/semver @@ -418,8 +418,8 @@ function command_get { function command_validate { if [[ "$#" -ne "1" ]]; then usage_help - fi - + fi + if [[ "$1" =~ $SEMVER_REGEX ]]; then echo "valid" else diff --git a/chart/tools/semver.metadata b/chart/tools/semver.metadata index 47d39d0f..666f5b36 100644 --- a/chart/tools/semver.metadata +++ b/chart/tools/semver.metadata @@ -1,4 +1,4 @@ # semver License: Apache 2.0 -Origin: https://github.com/fsaintjacques/semver-tool/releases/tag/3.4.0 \ No newline at end of file +Origin: https://github.com/fsaintjacques/semver-tool/releases/tag/3.4.0 diff --git a/chart/values.yaml b/chart/values.yaml index 2dd9279e..b18b6611 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -253,8 +253,8 @@ yaku-core-api: minio_use_ssl: false # NOTE: if minio_use_ssl=true and you are running inside your enterprise intranet and you use custom ssl # root certificates. You need to specify the kubernetes secret name that contains the SSL cert required to connect to object storage. - # This can be done be configuring helm values: - # - cacert_secret_name + # This can be done be configuring helm values: + # - cacert_secret_name # - cacert_key_name # Which are also used to connect to postgres server in you enterprise diff --git a/onyx/.github/workflows/build-and-run-test-base.yml b/onyx/.github/workflows/build-and-run-test-base.yml index 0ba4a3fc..49cc6cc1 100644 --- a/onyx/.github/workflows/build-and-run-test-base.yml +++ b/onyx/.github/workflows/build-and-run-test-base.yml @@ -76,4 +76,4 @@ jobs: gh gist edit ${{ env.COVERAGE_BADGE_GIST_ID }} -a onyx-coverage-badge.json env: COVERAGE_BADGE_GIST_ID: 819f17e6f8166534e73c8acf9ee58726 - GITHUB_TOKEN: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }} diff --git a/onyx/.github/workflows/merge-check.yml b/onyx/.github/workflows/merge-check.yml index f87e9961..6b793126 100644 --- a/onyx/.github/workflows/merge-check.yml +++ b/onyx/.github/workflows/merge-check.yml @@ -12,4 +12,4 @@ jobs: pull-requests: write contents: read uses: ./.github/workflows/build-and-run-test-base.yml - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/onyx/.github/workflows/pr-check.yml b/onyx/.github/workflows/pr-check.yml index 931a06e1..2516a6c0 100644 --- a/onyx/.github/workflows/pr-check.yml +++ b/onyx/.github/workflows/pr-check.yml @@ -11,4 +11,4 @@ jobs: pull-requests: write contents: read uses: ./.github/workflows/build-and-run-test-base.yml - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/onyx/.golangci.yml b/onyx/.golangci.yml index 379b6951..29cd34d2 100644 --- a/onyx/.golangci.yml +++ b/onyx/.golangci.yml @@ -1,2 +1,2 @@ run: - tests: false \ No newline at end of file + tests: false diff --git a/onyx/.pre-commit-config.yaml b/onyx/.pre-commit-config.yaml index d0cfbaf4..10330cdd 100644 --- a/onyx/.pre-commit-config.yaml +++ b/onyx/.pre-commit-config.yaml @@ -3,4 +3,4 @@ repos: rev: v8.0.0 hooks: - id: commitlint - stages: [commit-msg] \ No newline at end of file + stages: [commit-msg] diff --git a/onyx/.vscode/launch.json b/onyx/.vscode/launch.json index 50f01124..fd04d41b 100644 --- a/onyx/.vscode/launch.json +++ b/onyx/.vscode/launch.json @@ -12,7 +12,7 @@ "program": "cmd/cli/main.go", "cwd": "${workspaceFolder}", "args": [ - "exec", + "exec", "${workspaceFolder}/examples", "--output-dir=${workspaceFolder}/output", "--check-timeout=5" @@ -27,7 +27,7 @@ "program": "cmd/cli/main.go", "cwd": "${workspaceFolder}", "args": [ - "schema", + "schema", ], "envFile": "${workspaceFolder}/.env" }, @@ -39,11 +39,11 @@ "program": "cmd/cli/main.go", "cwd": "${workspaceFolder}", "args": [ - "migrate", + "migrate", "${workspaceFolder}/examples/old-qg-config.yaml", "--output=${workspaceFolder}/examples/new-qg-config.yaml" ], "envFile": "${workspaceFolder}/.env" }, ] -} \ No newline at end of file +} diff --git a/onyx/DEVELOPMENT.md b/onyx/DEVELOPMENT.md index 4efe26da..742484b9 100644 --- a/onyx/DEVELOPMENT.md +++ b/onyx/DEVELOPMENT.md @@ -1,4 +1,4 @@ -# Developer docs +# Developer docs ## Setup @@ -8,7 +8,7 @@ ### Vscode integration -Go vscode integration is pretty good. +Go vscode integration is pretty good. Just install the [go extension](https://marketplace.visualstudio.com/items?itemName=golang.Go) and you are good to go. ### Makefile @@ -42,13 +42,13 @@ make help ├── cmd # Contains all executables │ └── cli # Contains the cli executable (could also be split into multiple executables) │ ├── exec # Contains the cli exec logic -│ │ └── exec.go +│ │ └── exec.go │ ├── main.go │ └── translate # Contains the cli translate logic │ └── translate.go ├── internal # Contains all internal code (buisness logic) -> e.g. creating the execution matrix out of a config and dispatching it to some executor └── pkg # Contains all library code (e.g. configuration, logger, executor, etc.) - ├── configuration + ├── configuration │ ├── config.go │ └── versions │ ├── v1 @@ -111,4 +111,4 @@ In order to build a release run `make release` and the binaries will be availabl ## Help - [cobra](https://github.com/spf13/cobra/blob/main/user_guide.md) -- [viper](https://github.com/spf13/viper) \ No newline at end of file +- [viper](https://github.com/spf13/viper) diff --git a/onyx/Dockerfile b/onyx/Dockerfile index 3fbb2f30..cc8ef216 100644 --- a/onyx/Dockerfile +++ b/onyx/Dockerfile @@ -12,4 +12,4 @@ RUN go build -o onyx ./cmd/cli/main.go FROM alpine:3 AS runtime COPY --from=build --chmod=755 /go/src/onyx onyx -ENTRYPOINT [ "./onyx", "exec", "qg-config.yaml", "--log-level", "debug" ] \ No newline at end of file +ENTRYPOINT [ "./onyx", "exec", "qg-config.yaml", "--log-level", "debug" ] diff --git a/onyx/Makefile b/onyx/Makefile index 463a3c25..8834de4e 100644 --- a/onyx/Makefile +++ b/onyx/Makefile @@ -34,7 +34,7 @@ test-coverage: unit-tests-coverage integration-tests-coverage .PHONY: unit-tests unit-tests: go test --tags unit -v ./... - + .PHONY: unit-tests-coverage unit-tests-coverage: mkdir -p $(RESULTS_FOLDER) @@ -55,7 +55,7 @@ integration-tests-coverage: go test -tags integration -coverpkg=./... -race -coverprofile=$(COVERAGE_FOLDER)/int-cover.out -covermode=atomic -v 2>&1 ./... | go-junit-report -set-exit-code > $(RESULTS_FOLDER)/integration-tests.xml gocov convert $(COVERAGE_FOLDER)/int-cover.out > $(COVERAGE_FOLDER)/integration-coverage.json cat $(COVERAGE_FOLDER)/integration-coverage.json | gocov report > $(COVERAGE_FOLDER)/integration-coverage.txt - echo "$(shell go tool cover -func=$(COVERAGE_FOLDER)/int-cover.out | grep total | awk '{print $$3}' | sed 's/%//')" > $(COVERAGE_FOLDER)/integration-totalcoverage.txt + echo "$(shell go tool cover -func=$(COVERAGE_FOLDER)/int-cover.out | grep total | awk '{print $$3}' | sed 's/%//')" > $(COVERAGE_FOLDER)/integration-totalcoverage.txt cat $(COVERAGE_FOLDER)/integration-coverage.json | gocov-xml > $(COVERAGE_FOLDER)/integration-coverage.xml .PHONY: tidy @@ -81,7 +81,7 @@ setup: go install github.com/AlekSi/gocov-xml@latest go install github.com/jstemmer/go-junit-report/v2@latest # Testing tools for the future - # go get -u github.com/golang/mock/mockgen + # go get -u github.com/golang/mock/mockgen # go get -u github.com/onsi/ginkgo/ginkgo # go get -u github.com/onsi/gomega/... @@ -96,4 +96,4 @@ remove-hooks: .PHONY: release release: - goreleaser release --clean \ No newline at end of file + goreleaser release --clean diff --git a/onyx/README.md b/onyx/README.md index 7a30dde2..6220779c 100644 --- a/onyx/README.md +++ b/onyx/README.md @@ -38,7 +38,7 @@ The order of precedence for configuration sources is as follows: ### Execute a qg-config.yaml ```bash -./bin/onyx exec path/to/folder +./bin/onyx exec path/to/folder ### example ./bin/onyx exec ./examples ``` diff --git a/onyx/cmd/cli/exec/testdata/v1/configuration/.secrets b/onyx/cmd/cli/exec/testdata/v1/configuration/.secrets index 4bb37783..13dd2d05 100644 --- a/onyx/cmd/cli/exec/testdata/v1/configuration/.secrets +++ b/onyx/cmd/cli/exec/testdata/v1/configuration/.secrets @@ -3,4 +3,4 @@ "SECRET_2": "secret 2", "SECRET_3": "secret 3\nnew line", "ADDITIONAL_CONFIG_SECRET": "additional config secret" -} \ No newline at end of file +} diff --git a/onyx/cmd/cli/exec/testdata/v1/configuration/.vars b/onyx/cmd/cli/exec/testdata/v1/configuration/.vars index 793eee5f..97927534 100644 --- a/onyx/cmd/cli/exec/testdata/v1/configuration/.vars +++ b/onyx/cmd/cli/exec/testdata/v1/configuration/.vars @@ -9,4 +9,4 @@ "REQUIREMENT_TITLE": "here", "REQUIREMENT_TEXT": "This is a\nrequirement text\n", "ADDITIONAL_CONFIG_VAR": "additional config var" -} \ No newline at end of file +} diff --git a/onyx/cmd/cli/exec/testdata/v1/configuration/additional-config.yaml b/onyx/cmd/cli/exec/testdata/v1/configuration/additional-config.yaml index 52af9f9e..f4411cb1 100644 --- a/onyx/cmd/cli/exec/testdata/v1/configuration/additional-config.yaml +++ b/onyx/cmd/cli/exec/testdata/v1/configuration/additional-config.yaml @@ -1,3 +1,3 @@ env: ${{ env.ADDITIONAL_CONFIG_ENV }} var: ${{ vars.ADDITIONAL_CONFIG_VAR }} -secret: ${{ secrets.ADDITIONAL_CONFIG_SECRET }} \ No newline at end of file +secret: ${{ secrets.ADDITIONAL_CONFIG_SECRET }} diff --git a/onyx/cmd/cli/exec/testdata/v1/configuration/qg-result.golden b/onyx/cmd/cli/exec/testdata/v1/configuration/qg-result.golden index 86bfb4e3..192acd31 100644 --- a/onyx/cmd/cli/exec/testdata/v1/configuration/qg-result.golden +++ b/onyx/cmd/cli/exec/testdata/v1/configuration/qg-result.golden @@ -3,7 +3,7 @@ metadata: header: name: title version: 1.0.0 - date: + date: toolVersion: "" overallStatus: ERROR statistics: diff --git a/onyx/cmd/cli/exec/testdata/v2/configuration/.secrets b/onyx/cmd/cli/exec/testdata/v2/configuration/.secrets index 4bb37783..13dd2d05 100644 --- a/onyx/cmd/cli/exec/testdata/v2/configuration/.secrets +++ b/onyx/cmd/cli/exec/testdata/v2/configuration/.secrets @@ -3,4 +3,4 @@ "SECRET_2": "secret 2", "SECRET_3": "secret 3\nnew line", "ADDITIONAL_CONFIG_SECRET": "additional config secret" -} \ No newline at end of file +} diff --git a/onyx/cmd/cli/exec/testdata/v2/configuration/.vars b/onyx/cmd/cli/exec/testdata/v2/configuration/.vars index 793eee5f..97927534 100644 --- a/onyx/cmd/cli/exec/testdata/v2/configuration/.vars +++ b/onyx/cmd/cli/exec/testdata/v2/configuration/.vars @@ -9,4 +9,4 @@ "REQUIREMENT_TITLE": "here", "REQUIREMENT_TEXT": "This is a\nrequirement text\n", "ADDITIONAL_CONFIG_VAR": "additional config var" -} \ No newline at end of file +} diff --git a/onyx/cmd/cli/exec/testdata/v2/configuration/additional-config.yaml b/onyx/cmd/cli/exec/testdata/v2/configuration/additional-config.yaml index 52af9f9e..f4411cb1 100644 --- a/onyx/cmd/cli/exec/testdata/v2/configuration/additional-config.yaml +++ b/onyx/cmd/cli/exec/testdata/v2/configuration/additional-config.yaml @@ -1,3 +1,3 @@ env: ${{ env.ADDITIONAL_CONFIG_ENV }} var: ${{ vars.ADDITIONAL_CONFIG_VAR }} -secret: ${{ secrets.ADDITIONAL_CONFIG_SECRET }} \ No newline at end of file +secret: ${{ secrets.ADDITIONAL_CONFIG_SECRET }} diff --git a/onyx/cmd/cli/schema/testdata/config-schema.golden b/onyx/cmd/cli/schema/testdata/config-schema.golden index 39347754..7ae5935e 100644 --- a/onyx/cmd/cli/schema/testdata/config-schema.golden +++ b/onyx/cmd/cli/schema/testdata/config-schema.golden @@ -306,4 +306,4 @@ "description": "Contains a configuration to answer a requirement" } } -} \ No newline at end of file +} diff --git a/onyx/cmd/cli/schema/testdata/result-schema.golden b/onyx/cmd/cli/schema/testdata/result-schema.golden index b23842ac..d3c11849 100644 --- a/onyx/cmd/cli/schema/testdata/result-schema.golden +++ b/onyx/cmd/cli/schema/testdata/result-schema.golden @@ -394,4 +394,4 @@ "type": "object" } } -} \ No newline at end of file +} diff --git a/onyx/goreleaser.yml b/onyx/goreleaser.yml index c6d0e309..c4c9b955 100644 --- a/onyx/goreleaser.yml +++ b/onyx/goreleaser.yml @@ -66,4 +66,4 @@ archives: - README.md format_overrides: - goos: windows - format: zip \ No newline at end of file + format: zip diff --git a/onyx/internal/onyx/exec/exec_test.go b/onyx/internal/onyx/exec/exec_test.go index 91e0a90d..64e7003f 100644 --- a/onyx/internal/onyx/exec/exec_test.go +++ b/onyx/internal/onyx/exec/exec_test.go @@ -54,7 +54,7 @@ metadata: autopilots: autopilot1: run: echo "Hello Autopilot 1!" -chapters: +chapters: '1': title: chapter 1 requirements: diff --git a/onyx/internal/onyx/exec/testdata/config.yaml b/onyx/internal/onyx/exec/testdata/config.yaml index 6d841be3..29cad360 100644 --- a/onyx/internal/onyx/exec/testdata/config.yaml +++ b/onyx/internal/onyx/exec/testdata/config.yaml @@ -1,2 +1,2 @@ metadata: - version: v1 \ No newline at end of file + version: v1 diff --git a/onyx/internal/onyx/exec/testdata/secrets.json b/onyx/internal/onyx/exec/testdata/secrets.json index 785b3666..e4faea0f 100644 --- a/onyx/internal/onyx/exec/testdata/secrets.json +++ b/onyx/internal/onyx/exec/testdata/secrets.json @@ -1,3 +1,3 @@ { "SECRET": "secret" -} \ No newline at end of file +} diff --git a/onyx/internal/onyx/exec/testdata/vars.json b/onyx/internal/onyx/exec/testdata/vars.json index 0cbba33a..6fe97a21 100644 --- a/onyx/internal/onyx/exec/testdata/vars.json +++ b/onyx/internal/onyx/exec/testdata/vars.json @@ -1,3 +1,3 @@ { "VAR": "var" -} \ No newline at end of file +} diff --git a/onyx/onyx.yaml b/onyx/onyx.yaml index 47cdb3f7..6bcdee9b 100644 --- a/onyx/onyx.yaml +++ b/onyx/onyx.yaml @@ -1,3 +1,3 @@ # Example viper configuration -log-level: info \ No newline at end of file +log-level: info diff --git a/onyx/pkg/configuration/versions/v1/config_test.go b/onyx/pkg/configuration/versions/v1/config_test.go index fd8f9264..2d333c34 100644 --- a/onyx/pkg/configuration/versions/v1/config_test.go +++ b/onyx/pkg/configuration/versions/v1/config_test.go @@ -204,8 +204,8 @@ repositories: auth: token: token -autopilots: - autopilot1: +autopilots: + autopilot1: run: | echo "$VAR_1" echo "$VAR_2" @@ -238,7 +238,7 @@ finalize: run: | html-finalizer zip-finalizer -chapters: +chapters: '1': title: chapter 1 requirements: @@ -246,7 +246,7 @@ chapters: title: requirement 1 text: requirement text 1 checks: - '1': + '1': title: check 1 automation: autopilot: autopilot1 @@ -650,7 +650,7 @@ chapters: "1": title: Test checks: - "1": + "1": title: Test automation: autopilot: missing-autopilot` @@ -729,7 +729,7 @@ finalize: run: | html-finalizer zip-finalizer -chapters: +chapters: '1': title: chapter 1 requirements: diff --git a/onyx/pkg/executor/testdata/env.golden b/onyx/pkg/executor/testdata/env.golden index b21039b7..acc2b48c 100644 --- a/onyx/pkg/executor/testdata/env.golden +++ b/onyx/pkg/executor/testdata/env.golden @@ -1 +1 @@ -{"FOO":"bar","PASSWORD":"***password***","TOKEN":"***token***"} \ No newline at end of file +{"FOO":"bar","PASSWORD":"***password***","TOKEN":"***token***"} diff --git a/onyx/pkg/executor/testdata/secrets.golden b/onyx/pkg/executor/testdata/secrets.golden index f4f9c28d..5a2e3362 100644 --- a/onyx/pkg/executor/testdata/secrets.golden +++ b/onyx/pkg/executor/testdata/secrets.golden @@ -1 +1 @@ -{"password":"*****","token":"*****"} \ No newline at end of file +{"password":"*****","token":"*****"} diff --git a/onyx/pkg/executor/testdata/vars.golden b/onyx/pkg/executor/testdata/vars.golden index 3ba52448..3203a078 100644 --- a/onyx/pkg/executor/testdata/vars.golden +++ b/onyx/pkg/executor/testdata/vars.golden @@ -1 +1 @@ -{"some":"var"} \ No newline at end of file +{"some":"var"} diff --git a/onyx/pkg/helper/parse_test.go b/onyx/pkg/helper/parse_test.go index 2a690040..9e930f0d 100644 --- a/onyx/pkg/helper/parse_test.go +++ b/onyx/pkg/helper/parse_test.go @@ -13,7 +13,7 @@ import ( func TestParseJsonMap(t *testing.T) { t.Run("should return a map of variables", func(t *testing.T) { content := []byte(` -{ +{ "VAR1": "value1", "VAR2": "value2", "VAR3": "file://testdata/configuration/variables.txt" @@ -78,7 +78,7 @@ func TestParseJsonMap(t *testing.T) { content: []byte(` { "VAR1": "value1", - "VAR2: { + "VAR2: { "VAR3": "value3" } } @@ -90,7 +90,7 @@ func TestParseJsonMap(t *testing.T) { { "VAR1": "value1", "VAR2: [ - { + { "VAR3": "value3" } ] diff --git a/onyx/pkg/reader/testdata/config.yaml b/onyx/pkg/reader/testdata/config.yaml index 6d841be3..29cad360 100644 --- a/onyx/pkg/reader/testdata/config.yaml +++ b/onyx/pkg/reader/testdata/config.yaml @@ -1,2 +1,2 @@ metadata: - version: v1 \ No newline at end of file + version: v1 diff --git a/onyx/pkg/reader/testdata/vars.json b/onyx/pkg/reader/testdata/vars.json index 0cbba33a..6fe97a21 100644 --- a/onyx/pkg/reader/testdata/vars.json +++ b/onyx/pkg/reader/testdata/vars.json @@ -1,3 +1,3 @@ { "VAR": "var" -} \ No newline at end of file +} diff --git a/onyx/pkg/schema/testdata/schema.golden b/onyx/pkg/schema/testdata/schema.golden index e86c34a6..e5a5d890 100644 --- a/onyx/pkg/schema/testdata/schema.golden +++ b/onyx/pkg/schema/testdata/schema.golden @@ -16,4 +16,4 @@ "type": "object" } } -} \ No newline at end of file +} diff --git a/onyx/pkg/transformer/testdata/config.yaml b/onyx/pkg/transformer/testdata/config.yaml index 668d2645..238c621a 100644 --- a/onyx/pkg/transformer/testdata/config.yaml +++ b/onyx/pkg/transformer/testdata/config.yaml @@ -1 +1 @@ -config: config \ No newline at end of file +config: config diff --git a/onyx/pkg/v2/transformer/testdata/config.yaml b/onyx/pkg/v2/transformer/testdata/config.yaml index 668d2645..238c621a 100644 --- a/onyx/pkg/v2/transformer/testdata/config.yaml +++ b/onyx/pkg/v2/transformer/testdata/config.yaml @@ -1 +1 @@ -config: config \ No newline at end of file +config: config diff --git a/onyx/pkg/v2/transformer/testdata/config2.yaml b/onyx/pkg/v2/transformer/testdata/config2.yaml index 5fd2da91..a864e062 100644 --- a/onyx/pkg/v2/transformer/testdata/config2.yaml +++ b/onyx/pkg/v2/transformer/testdata/config2.yaml @@ -1 +1 @@ -config: content \ No newline at end of file +config: content diff --git a/onyx/pkg/workdir/testdata/.secrets b/onyx/pkg/workdir/testdata/.secrets index f6e14220..db2fc0de 100644 --- a/onyx/pkg/workdir/testdata/.secrets +++ b/onyx/pkg/workdir/testdata/.secrets @@ -1 +1 @@ -secrets \ No newline at end of file +secrets diff --git a/onyx/pkg/workdir/testdata/file1.txt b/onyx/pkg/workdir/testdata/file1.txt index 08219db9..e2129701 100644 --- a/onyx/pkg/workdir/testdata/file1.txt +++ b/onyx/pkg/workdir/testdata/file1.txt @@ -1 +1 @@ -file1 \ No newline at end of file +file1 diff --git a/onyx/pkg/workdir/testdata/file2.txt b/onyx/pkg/workdir/testdata/file2.txt index 30d67d46..6c493ff7 100644 --- a/onyx/pkg/workdir/testdata/file2.txt +++ b/onyx/pkg/workdir/testdata/file2.txt @@ -1 +1 @@ -file2 \ No newline at end of file +file2 diff --git a/onyx/pkg/zip/testdata/dir/file1.txt b/onyx/pkg/zip/testdata/dir/file1.txt index 08219db9..e2129701 100644 --- a/onyx/pkg/zip/testdata/dir/file1.txt +++ b/onyx/pkg/zip/testdata/dir/file1.txt @@ -1 +1 @@ -file1 \ No newline at end of file +file1 diff --git a/onyx/pkg/zip/testdata/dir/file2.txt b/onyx/pkg/zip/testdata/dir/file2.txt index 30d67d46..6c493ff7 100644 --- a/onyx/pkg/zip/testdata/dir/file2.txt +++ b/onyx/pkg/zip/testdata/dir/file2.txt @@ -1 +1 @@ -file2 \ No newline at end of file +file2 diff --git a/onyx/pkg/zip/testdata/dir/subdir/file3.txt b/onyx/pkg/zip/testdata/dir/subdir/file3.txt index 873fb8d6..7c8ac2f8 100644 --- a/onyx/pkg/zip/testdata/dir/subdir/file3.txt +++ b/onyx/pkg/zip/testdata/dir/subdir/file3.txt @@ -1 +1 @@ -file3 \ No newline at end of file +file3 diff --git a/onyx/pkg/zip/testdata/dir/subdir/file4.txt b/onyx/pkg/zip/testdata/dir/subdir/file4.txt index eed67803..bfd6a658 100644 --- a/onyx/pkg/zip/testdata/dir/subdir/file4.txt +++ b/onyx/pkg/zip/testdata/dir/subdir/file4.txt @@ -1 +1 @@ -file4 \ No newline at end of file +file4 diff --git a/qg-api-service/.vscode/extensions.json b/qg-api-service/.vscode/extensions.json index 9c198690..14ded39f 100644 --- a/qg-api-service/.vscode/extensions.json +++ b/qg-api-service/.vscode/extensions.json @@ -2,4 +2,4 @@ "recommendations": [ "Arjun.swagger-viewer" ] -} \ No newline at end of file +} diff --git a/qg-api-service/api-commons-lib/.npmignore b/qg-api-service/api-commons-lib/.npmignore index 4e7b35c5..ac731f94 100644 --- a/qg-api-service/api-commons-lib/.npmignore +++ b/qg-api-service/api-commons-lib/.npmignore @@ -31,4 +31,4 @@ lerna-debug.log* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json -!.vscode/extensions.json \ No newline at end of file +!.vscode/extensions.json diff --git a/qg-api-service/api-commons-lib/src/testdata/fileForComp1.txt b/qg-api-service/api-commons-lib/src/testdata/fileForComp1.txt index 923e5bf8..9f2275c6 100644 --- a/qg-api-service/api-commons-lib/src/testdata/fileForComp1.txt +++ b/qg-api-service/api-commons-lib/src/testdata/fileForComp1.txt @@ -1 +1 @@ -Component 1 source code \ No newline at end of file +Component 1 source code diff --git a/qg-api-service/api-keycloak-auth-lib/.npmignore b/qg-api-service/api-keycloak-auth-lib/.npmignore index 4e7b35c5..ac731f94 100644 --- a/qg-api-service/api-keycloak-auth-lib/.npmignore +++ b/qg-api-service/api-keycloak-auth-lib/.npmignore @@ -31,4 +31,4 @@ lerna-debug.log* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json -!.vscode/extensions.json \ No newline at end of file +!.vscode/extensions.json diff --git a/qg-api-service/docu/initial-config.puml b/qg-api-service/docu/initial-config.puml index 34f7c3b8..c34165f2 100644 --- a/qg-api-service/docu/initial-config.puml +++ b/qg-api-service/docu/initial-config.puml @@ -31,4 +31,3 @@ cs --> gs : "transform chapter\ninformation\nto initial config" cs --> db : "stores initial config in\nConfigs entity" et -[hidden]right-> gs ec -[hidden]up-> ic - diff --git a/qg-api-service/localdev/pgadmin/deployment.yaml b/qg-api-service/localdev/pgadmin/deployment.yaml index 45162415..bbceb98e 100644 --- a/qg-api-service/localdev/pgadmin/deployment.yaml +++ b/qg-api-service/localdev/pgadmin/deployment.yaml @@ -50,4 +50,4 @@ spec: memory: "1Gi" cpu: "400m" nodeSelector: - kubernetes.io/os: linux \ No newline at end of file + kubernetes.io/os: linux diff --git a/qg-api-service/localdev/pgadmin/kustomization.yaml b/qg-api-service/localdev/pgadmin/kustomization.yaml index f2f8bd63..5d1c1b45 100644 --- a/qg-api-service/localdev/pgadmin/kustomization.yaml +++ b/qg-api-service/localdev/pgadmin/kustomization.yaml @@ -3,4 +3,4 @@ kind: Kustomization namespace: aqua resources: - service-pgadmin.yaml - - deployment.yaml \ No newline at end of file + - deployment.yaml diff --git a/qg-api-service/localdev/pgadmin/service-pgadmin.yaml b/qg-api-service/localdev/pgadmin/service-pgadmin.yaml index 8313f377..640b80e1 100644 --- a/qg-api-service/localdev/pgadmin/service-pgadmin.yaml +++ b/qg-api-service/localdev/pgadmin/service-pgadmin.yaml @@ -12,4 +12,4 @@ spec: protocol: TCP targetPort: 5050 selector: - app: yaku-pgadmin \ No newline at end of file + app: yaku-pgadmin diff --git a/qg-api-service/opstools/user-migration/.dockerignore b/qg-api-service/opstools/user-migration/.dockerignore index a91c842d..b015564c 100644 --- a/qg-api-service/opstools/user-migration/.dockerignore +++ b/qg-api-service/opstools/user-migration/.dockerignore @@ -3,4 +3,4 @@ Dockerfile .venv *.json .envrc -envrc-sample \ No newline at end of file +envrc-sample diff --git a/qg-api-service/opstools/user-migration/1-precondition-check.py b/qg-api-service/opstools/user-migration/1-precondition-check.py index 4be8254f..a9b1140a 100755 --- a/qg-api-service/opstools/user-migration/1-precondition-check.py +++ b/qg-api-service/opstools/user-migration/1-precondition-check.py @@ -68,4 +68,3 @@ for elem in broken: print(f'Broken: {str(elem[0]).ljust(20)} Reason: {str(elem[1]).ljust(30)} Enabled: {str(elem[2]).ljust(40)}') - diff --git a/qg-api-service/opstools/user-migration/3-data-evaluation.py b/qg-api-service/opstools/user-migration/3-data-evaluation.py index a6c1c8d6..040d2778 100755 --- a/qg-api-service/opstools/user-migration/3-data-evaluation.py +++ b/qg-api-service/opstools/user-migration/3-data-evaluation.py @@ -294,7 +294,7 @@ def check_comment_audit_table(conn: Connection, logger: Logger) -> int: for mention in possible_mentions: if not UUID_PATTERN.match(mention): error_count += 1 - + if last_error_count != error_count: logger.error( f"mentions in row with id: {id} of comment_audit.modified may not be valid UUIDs: {content}" diff --git a/qg-api-service/qg-api-service/Dockerfile b/qg-api-service/qg-api-service/Dockerfile index 6824792a..bd0dba20 100644 --- a/qg-api-service/qg-api-service/Dockerfile +++ b/qg-api-service/qg-api-service/Dockerfile @@ -38,7 +38,7 @@ RUN npm ci -ws --include-workspace-root --omit=dev && npm cache clean --force RUN chown -R node:node /home/node/app USER node - + ################### # PRODUCTION @@ -74,4 +74,4 @@ EXPOSE ${PORT} RUN chown -R node:node /home/node/app USER node -CMD ["node", "qg-api-service/dist/main.js" ] \ No newline at end of file +CMD ["node", "qg-api-service/dist/main.js" ] diff --git a/qg-api-service/qg-api-service/Dockerfile_original b/qg-api-service/qg-api-service/Dockerfile_original index f3363736..fcd696d8 100644 --- a/qg-api-service/qg-api-service/Dockerfile_original +++ b/qg-api-service/qg-api-service/Dockerfile_original @@ -147,4 +147,4 @@ RUN chown -R ${APP_USER_ID}:${APP_USER_ID} ${USER_HOME}/app # switch to app user USER ${APP_USER_ID} -CMD [ "node", "dist/main.js" ] \ No newline at end of file +CMD [ "node", "dist/main.js" ] diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/LICENSE b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/LICENSE index c33dcc7c..82b4de97 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/LICENSE +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/LICENSE @@ -351,4 +351,3 @@ Exhibit B - “Incompatible With Secondary Licenses” Notice This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0. - diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/array_comment_2.hcl b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/array_comment_2.hcl index f9166773..67d5b77d 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/array_comment_2.hcl +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/array_comment_2.hcl @@ -2,5 +2,5 @@ provisioner "remote-exec" { scripts = [ "${path.module}/scripts/install-consul.sh" // missing comma "${path.module}/scripts/install-haproxy.sh" - ] + ] } diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/comment_lastline.hcl b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/comment_lastline.hcl index 5529b9b4..37bee45e 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/comment_lastline.hcl +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/parser/test-fixtures/comment_lastline.hcl @@ -1 +1 @@ -#foo \ No newline at end of file +#foo diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.golden b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.golden index 192c26aa..51dd20ad 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.golden +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.golden @@ -32,7 +32,7 @@ variable = { // lead comment foo { - bar = "fatih" // line comment 2 + bar = "fatih" // line comment 2 } // line comment 3 // comment diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.input b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.input index c4b29de7..402dba78 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.input +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment.input @@ -23,16 +23,16 @@ numbers = [1,2] // another line here # Another comment variable = { description = "bar" # another yooo - foo { + foo { # Nested standalone - + bar = "fatih" - } + } } // lead comment -foo { - bar = "fatih" // line comment 2 +foo { + bar = "fatih" // line comment 2 } // line comment 3 multiline = // comment diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_crlf.input b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_crlf.input index 49550864..e0286f1d 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_crlf.input +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_crlf.input @@ -23,16 +23,16 @@ numbers = [1,2] // another line here # Another comment variable = { description = "bar" # another yooo - foo { + foo { # Nested standalone bar = "fatih" - } + } } // lead comment -foo { - bar = "fatih" // line comment 2 +foo { + bar = "fatih" // line comment 2 } // line comment 3 multiline = // comment diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_end_file.golden b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_end_file.golden index dbeae36a..68c4c282 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_end_file.golden +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_end_file.golden @@ -3,4 +3,3 @@ resource "blah" "blah" {} // // // - diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_multiline_no_stanza.golden b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_multiline_no_stanza.golden index 7ad7ca29..8b818e91 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_multiline_no_stanza.golden +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_multiline_no_stanza.golden @@ -4,4 +4,3 @@ # ami-abcd1234 # # Do not delete this comment - diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_newline.golden b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_newline.golden index 2162c884..aa56a988 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_newline.golden +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_newline.golden @@ -1,3 +1,2 @@ # Hello # World - diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.golden b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.golden index 3236d9e6..a4837e6c 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.golden +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.golden @@ -1,4 +1,4 @@ -// A standalone comment +// A standalone comment aligned { # Standalone 1 @@ -14,4 +14,3 @@ aligned { numbers = [1, 2] // another line here # Standalone 4 - diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.input b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.input index 4436cb16..fa7be07c 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.input +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/comment_standalone.input @@ -1,4 +1,4 @@ -// A standalone comment +// A standalone comment aligned { # Standalone 1 diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/list_of_objects.input b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/list_of_objects.input index f2adcf01..0a4bd2fd 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/list_of_objects.input +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/hcl/printer/testdata/list_of_objects.input @@ -7,4 +7,4 @@ list_of_objects = [ key3 = "value3" key4 = "value4" } -] \ No newline at end of file +] diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/list_of_lists.hcl b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/list_of_lists.hcl index 8af34584..f3865566 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/list_of_lists.hcl +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/list_of_lists.hcl @@ -1,2 +1 @@ foo = [["foo"], ["bar"]] - diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal.hcl b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal.hcl index f89fdfc7..5252ab5e 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal.hcl +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal.hcl @@ -1,2 +1,2 @@ multiline_literal = "hello - world" \ No newline at end of file + world" diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal_with_hil.hcl b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal_with_hil.hcl index b55a361c..f2cc9f6d 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal_with_hil.hcl +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/multiline_literal_with_hil.hcl @@ -1,2 +1,2 @@ multiline_literal_with_hil = "${hello - world}" \ No newline at end of file + world}" diff --git a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/structure_list_deep.json b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/structure_list_deep.json index 46e98bef..0308f647 100644 --- a/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/structure_list_deep.json +++ b/qg-api-service/qg-api-service/oss/src/golang_hashicorp-hcl_v1.0.0/test-fixtures/structure_list_deep.json @@ -13,4 +13,3 @@ } } } - diff --git a/qg-api-service/qg-api-service/oss/src/python_tqdm_v4.66.4/README.rst b/qg-api-service/qg-api-service/oss/src/python_tqdm_v4.66.4/README.rst index a2b626df..ccb92bed 100644 --- a/qg-api-service/qg-api-service/oss/src/python_tqdm_v4.66.4/README.rst +++ b/qg-api-service/qg-api-service/oss/src/python_tqdm_v4.66.4/README.rst @@ -369,12 +369,12 @@ Documentation Parameters ~~~~~~~~~~ -* iterable : iterable, optional +* iterable : iterable, optional Iterable to decorate with a progressbar. Leave blank to manually manage the updates. -* desc : str, optional +* desc : str, optional Prefix for the progressbar. -* total : int or float, optional +* total : int or float, optional The number of expected iterations. If unspecified, len(iterable) is used if possible. If float("inf") or as a last resort, only basic progress statistics are displayed @@ -382,28 +382,28 @@ Parameters If ``gui`` is True and this parameter needs subsequent updating, specify an initial arbitrary large positive number, e.g. 9e9. -* leave : bool, optional +* leave : bool, optional If [default: True], keeps all traces of the progressbar upon termination of iteration. If ``None``, will leave only if ``position`` is ``0``. -* file : ``io.TextIOWrapper`` or ``io.StringIO``, optional +* file : ``io.TextIOWrapper`` or ``io.StringIO``, optional Specifies where to output the progress messages (default: sys.stderr). Uses ``file.write(str)`` and ``file.flush()`` methods. For encoding, see ``write_bytes``. -* ncols : int, optional +* ncols : int, optional The width of the entire output message. If specified, dynamically resizes the progressbar to stay within this bound. If unspecified, attempts to use environment width. The fallback is a meter width of 10 and no limit for the counter and statistics. If 0, will not print any meter (only stats). -* mininterval : float, optional +* mininterval : float, optional Minimum progress display update interval [default: 0.1] seconds. -* maxinterval : float, optional +* maxinterval : float, optional Maximum progress display update interval [default: 10] seconds. Automatically adjusts ``miniters`` to correspond to ``mininterval`` after long display update lag. Only works if ``dynamic_miniters`` or monitor thread is enabled. -* miniters : int or float, optional +* miniters : int or float, optional Minimum progress display update interval, in iterations. If 0 and ``dynamic_miniters``, will automatically adjust to equal ``mininterval`` (more CPU efficient, good for tight loops). @@ -411,29 +411,29 @@ Parameters Tweak this and ``mininterval`` to get very efficient loops. If your progress is erratic with both fast and slow iterations (network, skipping items, etc) you should set miniters=1. -* ascii : bool or str, optional +* ascii : bool or str, optional If unspecified or False, use unicode (smooth blocks) to fill the meter. The fallback is to use ASCII characters " 123456789#". -* disable : bool, optional +* disable : bool, optional Whether to disable the entire progressbar wrapper [default: False]. If set to None, disable on non-TTY. -* unit : str, optional +* unit : str, optional String that will be used to define the unit of each iteration [default: it]. -* unit_scale : bool or int or float, optional +* unit_scale : bool or int or float, optional If 1 or True, the number of iterations will be reduced/scaled automatically and a metric prefix following the International System of Units standard will be added (kilo, mega, etc.) [default: False]. If any other non-zero number, will scale ``total`` and ``n``. -* dynamic_ncols : bool, optional +* dynamic_ncols : bool, optional If set, constantly alters ``ncols`` and ``nrows`` to the environment (allowing for window resizes) [default: False]. -* smoothing : float, optional +* smoothing : float, optional Exponential moving average smoothing factor for speed estimates (ignored in GUI mode). Ranges from 0 (average speed) to 1 (current/instantaneous speed) [default: 0.3]. -* bar_format : str, optional +* bar_format : str, optional Specify a custom bar string formatting. May impact performance. [default: '{l_bar}{bar}{r_bar}'], where l_bar='{desc}: {percentage:3.0f}%|' and @@ -446,68 +446,68 @@ Parameters remaining, remaining_s, eta. Note that a trailing ": " is automatically removed after {desc} if the latter is empty. -* initial : int or float, optional +* initial : int or float, optional The initial counter value. Useful when restarting a progress bar [default: 0]. If using float, consider specifying ``{n:.3f}`` or similar in ``bar_format``, or specifying ``unit_scale``. -* position : int, optional +* position : int, optional Specify the line offset to print this bar (starting from 0) Automatic if unspecified. Useful to manage multiple bars at once (eg, from threads). -* postfix : dict or ``*``, optional +* postfix : dict or ``*``, optional Specify additional stats to display at the end of the bar. Calls ``set_postfix(**postfix)`` if possible (dict). -* unit_divisor : float, optional +* unit_divisor : float, optional [default: 1000], ignored unless ``unit_scale`` is True. -* write_bytes : bool, optional +* write_bytes : bool, optional Whether to write bytes. If (default: False) will write unicode. -* lock_args : tuple, optional +* lock_args : tuple, optional Passed to ``refresh`` for intermediate output (initialisation, iterating, and updating). -* nrows : int, optional +* nrows : int, optional The screen height. If specified, hides nested bars outside this bound. If unspecified, attempts to use environment height. The fallback is 20. -* colour : str, optional +* colour : str, optional Bar colour (e.g. 'green', '#00ff00'). -* delay : float, optional +* delay : float, optional Don't display until [default: 0] seconds have elapsed. Extra CLI Options ~~~~~~~~~~~~~~~~~ -* delim : chr, optional +* delim : chr, optional Delimiting character [default: '\n']. Use '\0' for null. N.B.: on Windows systems, Python converts '\n' to '\r\n'. -* buf_size : int, optional +* buf_size : int, optional String buffer size in bytes [default: 256] used when ``delim`` is specified. -* bytes : bool, optional +* bytes : bool, optional If true, will count bytes, ignore ``delim``, and default ``unit_scale`` to True, ``unit_divisor`` to 1024, and ``unit`` to 'B'. -* tee : bool, optional +* tee : bool, optional If true, passes ``stdin`` to both ``stderr`` and ``stdout``. -* update : bool, optional +* update : bool, optional If true, will treat input as newly elapsed iterations, i.e. numbers to pass to ``update()``. Note that this is slow (~2e5 it/s) since every input must be decoded as a number. -* update_to : bool, optional +* update_to : bool, optional If true, will treat input as total elapsed iterations, i.e. numbers to assign to ``self.n``. Note that this is slow (~2e5 it/s) since every input must be decoded as a number. -* null : bool, optional +* null : bool, optional If true, will discard input (no stdout). -* manpath : str, optional +* manpath : str, optional Directory in which to install tqdm man pages. -* comppath : str, optional +* comppath : str, optional Directory in which to place tqdm completion. -* log : str, optional +* log : str, optional CRITICAL|FATAL|ERROR|WARN(ING)|[default: 'INFO']|DEBUG|NOTSET. Returns ~~~~~~~ -* out : decorated iterator. +* out : decorated iterator. .. code:: python diff --git a/qg-api-service/qg-api-service/src/gp-services/fixtures/test.txt b/qg-api-service/qg-api-service/src/gp-services/fixtures/test.txt index 0499afaa..4393b0a4 100644 --- a/qg-api-service/qg-api-service/src/gp-services/fixtures/test.txt +++ b/qg-api-service/qg-api-service/src/gp-services/fixtures/test.txt @@ -1 +1 @@ -Foo: Bar \ No newline at end of file +Foo: Bar diff --git a/qg-api-service/qg-api-service/src/gp-services/fixtures/test_incorrect_format.txt b/qg-api-service/qg-api-service/src/gp-services/fixtures/test_incorrect_format.txt index b20322d7..d49845c9 100644 --- a/qg-api-service/qg-api-service/src/gp-services/fixtures/test_incorrect_format.txt +++ b/qg-api-service/qg-api-service/src/gp-services/fixtures/test_incorrect_format.txt @@ -1 +1 @@ -this is a simple string! \ No newline at end of file +this is a simple string! diff --git a/qg-api-service/qg-api-service/src/mailing/templates/approval_status.mjml b/qg-api-service/qg-api-service/src/mailing/templates/approval_status.mjml index f778d184..13d19888 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/approval_status.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/approval_status.mjml @@ -108,4 +108,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/mailing/templates/approver.mjml b/qg-api-service/qg-api-service/src/mailing/templates/approver.mjml index 98acf52e..71e6f0b0 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/approver.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/approver.mjml @@ -107,4 +107,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/mailing/templates/check_override.mjml b/qg-api-service/qg-api-service/src/mailing/templates/check_override.mjml index 5cce4727..0b8bdfdd 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/check_override.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/check_override.mjml @@ -118,4 +118,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/mailing/templates/comment.mjml b/qg-api-service/qg-api-service/src/mailing/templates/comment.mjml index beeb24ef..42151f6c 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/comment.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/comment.mjml @@ -114,4 +114,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/mailing/templates/finding.mjml b/qg-api-service/qg-api-service/src/mailing/templates/finding.mjml index 3a1822b2..20d1f2a9 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/finding.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/finding.mjml @@ -103,4 +103,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/mailing/templates/mention.mjml b/qg-api-service/qg-api-service/src/mailing/templates/mention.mjml index 9668163d..4c243803 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/mention.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/mention.mjml @@ -108,4 +108,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/mailing/templates/task_assigned.mjml b/qg-api-service/qg-api-service/src/mailing/templates/task_assigned.mjml index 210b928d..b9777792 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/task_assigned.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/task_assigned.mjml @@ -62,7 +62,7 @@

Open task - <%=task_title%> + <%=task_title%>

@@ -71,7 +71,7 @@

- This message is sent by Yaku because you are assigned to the task + This message is sent by Yaku because you are assigned to the task <%=task_title%>.

@@ -79,4 +79,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/mailing/templates/task_recurring.mjml b/qg-api-service/qg-api-service/src/mailing/templates/task_recurring.mjml index fbd9ddb0..bab13e7c 100644 --- a/qg-api-service/qg-api-service/src/mailing/templates/task_recurring.mjml +++ b/qg-api-service/qg-api-service/src/mailing/templates/task_recurring.mjml @@ -62,7 +62,7 @@

Open task - <%=task_title%> + <%=task_title%>

@@ -71,7 +71,7 @@

- This message is sent by Yaku because you are assigned to the task + This message is sent by Yaku because you are assigned to the task <%=task_title%>.

@@ -79,4 +79,4 @@ - \ No newline at end of file + diff --git a/qg-api-service/qg-api-service/src/namespace/configs/generator.service.spec.ts b/qg-api-service/qg-api-service/src/namespace/configs/generator.service.spec.ts index 1eb0e5bf..86d678cd 100644 --- a/qg-api-service/qg-api-service/src/namespace/configs/generator.service.spec.ts +++ b/qg-api-service/qg-api-service/src/namespace/configs/generator.service.spec.ts @@ -23,7 +23,7 @@ chapters: Time schedule was coordinated with all parties involved. The target dates are up to date and can be realized. Interactions with schedules for the system or components are taken into account. - + Customer milestones were considered. checks: '1': @@ -88,7 +88,7 @@ chapters: Time schedule was coordinated with all parties involved. The target dates are up to date and can be realized. Interactions with schedules for the system or components are taken into account. - + Customer milestones were considered. checks: '1': diff --git a/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.spec.ts b/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.spec.ts index e6d6aa16..d30bda3f 100644 --- a/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.spec.ts +++ b/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.spec.ts @@ -44,8 +44,8 @@ autopilots: set -ex docupedia-fetcher env: - DOCUPEDIA_SCHEME_ID: - DOCUPEDIA_USER: + DOCUPEDIA_SCHEME_ID: + DOCUPEDIA_USER: sharepoint-pdf-signature-check: run: | set -ex diff --git a/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.ts b/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.ts index 5302a6bc..5f4d0386 100644 --- a/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.ts +++ b/qg-api-service/qg-api-service/src/namespace/explanations/prompts/apps.prompts.ts @@ -8,7 +8,7 @@ const generalFewShotExamples: { input: `#### Code Section #### title: >- Service Level Agreement is available for BPC deployment. - Comment: + Comment: No SLA for OnPrem deployment, since we do not operate the service for the OnPrem customers. Support and Updates are part part of the OnPrem contract (see 1.2) https://bosch.sharepoint.com/:w:/r/sites/msteams_6298865/Shared%20Documents/General/60_Customers/Legal_Documents/Contract%20SaaS/English%20(not%20approved)/Service%20Level%20Agreement%20EN.docx? d=wfa6fec680d9a42cb96a6cbb32a5b09df&csf=1&web=1&e=Aa2BT6 run: | @@ -41,7 +41,7 @@ const generalFewShotExamples: { In summary, this Autopilot fetches a file from a Sharepoint site and validates that the file was modified in the past year.`, }, { - input: `#### Code Section #### + input: `#### Code Section #### title: >- Requirements in product roadmap for milestone \${{ env.PIS }} are closed. https://github.com/orgs/B-S-F/projects/80 @@ -61,10 +61,10 @@ const generalFewShotExamples: { printf '%s\n' "\${issue_details[@]}" | jq -s . > $PARSED_ISSUES_FILENAME if [[ $(cat $PARSED_ISSUES_FILENAME | jq 'length > 0') == false ]]; then echo '{ "status": "RED", "reason": "There are no features in column PI-\${{ env.PI }} of the [Yaku Product Roadmap](https://github.com/orgs/B-S-F/projects/80)"}' - echo '{"result": {"criterion": "There are features in column PI-\${{ env.PI }} of the [Yaku Product Roadmap](https://github.com/orgs/B-S-F/projects/80)", "justification": "List of fetched features is empty", "fulfilled": false}}' + echo '{"result": {"criterion": "There are features in column PI-\${{ env.PI }} of the [Yaku Product Roadmap](https://github.com/orgs/B-S-F/projects/80)", "justification": "List of fetched features is empty", "fulfilled": false}}' exit 0 else - echo '{"result": {"criterion": "There are features in column PI-\${{ env.PI }} of the [Yaku Product Roadmap](https://github.com/orgs/B-S-F/projects/80)", "justification": "List of fetched features is not empty", "fulfilled": true}}' + echo '{"result": {"criterion": "There are features in column PI-\${{ env.PI }} of the [Yaku Product Roadmap](https://github.com/orgs/B-S-F/projects/80)", "justification": "List of fetched features is not empty", "fulfilled": true}}' fi export JSON_INPUT_FILE=parsed_issues_pi_\${{ env.PI }}.json json-evaluator @@ -89,8 +89,8 @@ const generalFewShotExamples: { In summary, this Autopilot fetches a list of issues from a Github project board, filters out issues not labeled 'type:feature' or not in the specified PI column, writes the filtered issues to a JSON file, and then evaluates the file against a "is-not-older-than 1 year" rule.`, }, { - input: `#### Code Section #### - title: >- + input: `#### Code Section #### + title: >- SBOM (Software Bill of Materials) is available for core api. run: | set -ex diff --git a/qg-api-service/qg-api-service/src/namespace/explanations/prompts/system.prompt.ts b/qg-api-service/qg-api-service/src/namespace/explanations/prompts/system.prompt.ts index 4a30c402..59eb5da6 100644 --- a/qg-api-service/qg-api-service/src/namespace/explanations/prompts/system.prompt.ts +++ b/qg-api-service/qg-api-service/src/namespace/explanations/prompts/system.prompt.ts @@ -5,34 +5,34 @@ const systemPrompt = { role: 'system' as Roles, content: `## Role ## You are an explainer agent, using simple non-technical language, explain what the provided autopilot configuration files do, while refraining from asking any additional questions. - + ## Context ## You will receive a bash script and possibly a short autopilot description (if the autopilot functionality is not defined in the script), along with any other script referenced files used that help with the explanation. - + ## Input Format ## ### Code Section ### - \`bash script\` - filename.extension: \`file contents\` - + ### Autopilots Section ### Autopilots: - name: \`description\` - + ## General Guidance ## When reviewing the autopilot configuration, consider the descriptions, environmental variables, other files and what they aim to achieve or what their role is, and any other specific information in the bash script. The output must be concise, between 2-5 sentences, and must include the main steps in a numbered list, including a brief explanation of what each file does. - + ## Handling Additional Files ## In some autopilots, additional files might be referenced, either for extra configuration, external scripts, data, or other options. Those additional files may or may not be given. If they are given, they must be used in the explanation, mentioning what they do. If they are not given, simply mention their existence and that they are used, but do not go into explaining their contents. - + ## Output Format ## - The following Autopilot runs the following steps {explain the steps, MUST use a vertical numbered list, highlighting the general flow and purpose of each step including what extra file does} : + The following Autopilot runs the following steps {explain the steps, MUST use a vertical numbered list, highlighting the general flow and purpose of each step including what extra file does} : 1. {First step in non-technical terms, including what extra file is used for} 2. {Second step in non-technical terms, including what extra file is used for} 3. {Third step in non-technical terms, including what extra file is used for} 4. {Additional steps if any} - + In summary, {briefly summarize the main idea/flow and the end goal of the run}. - + ## Fewshot examples ##`, } diff --git a/qg-api-service/scale-run-test/.eslintrc.cjs b/qg-api-service/scale-run-test/.eslintrc.cjs index 7198f02d..326a9707 100644 --- a/qg-api-service/scale-run-test/.eslintrc.cjs +++ b/qg-api-service/scale-run-test/.eslintrc.cjs @@ -2,7 +2,7 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', - tsconfigRootDir : __dirname, + tsconfigRootDir : __dirname, sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], @@ -34,7 +34,7 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', - tsconfigRootDir : __dirname, + tsconfigRootDir : __dirname, sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], diff --git a/qg-api-service/scripts/check-when-last-release-triggered.sh b/qg-api-service/scripts/check-when-last-release-triggered.sh index 529f41e1..af48af6c 100755 --- a/qg-api-service/scripts/check-when-last-release-triggered.sh +++ b/qg-api-service/scripts/check-when-last-release-triggered.sh @@ -32,4 +32,3 @@ days_difference=$((time_difference / 86400)) # Set the output variable echo "$days_difference" - diff --git a/qg-api-service/yaku-cli/.eslintrc.cjs b/qg-api-service/yaku-cli/.eslintrc.cjs index 7198f02d..326a9707 100644 --- a/qg-api-service/yaku-cli/.eslintrc.cjs +++ b/qg-api-service/yaku-cli/.eslintrc.cjs @@ -2,7 +2,7 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', - tsconfigRootDir : __dirname, + tsconfigRootDir : __dirname, sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], @@ -34,7 +34,7 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', - tsconfigRootDir : __dirname, + tsconfigRootDir : __dirname, sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], diff --git a/qg-api-service/yaku-cli/.prettierrc b/qg-api-service/yaku-cli/.prettierrc index 2eed64c9..264dd54a 100644 --- a/qg-api-service/yaku-cli/.prettierrc +++ b/qg-api-service/yaku-cli/.prettierrc @@ -1,4 +1,4 @@ { "semi": false, "singleQuote": true -} \ No newline at end of file +} diff --git a/qg-api-service/yaku-cli/create-installation-package.sh b/qg-api-service/yaku-cli/create-installation-package.sh index 1b99f86d..a5c03671 100755 --- a/qg-api-service/yaku-cli/create-installation-package.sh +++ b/qg-api-service/yaku-cli/create-installation-package.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ -z "$1" ] +if [ -z "$1" ] then echo "Please specify either a version or ask to upgrade major, minor or patch version for the created package" exit 1 diff --git a/qg-api-service/yaku-cli/integration-test/testdata/qg-config.yaml b/qg-api-service/yaku-cli/integration-test/testdata/qg-config.yaml index 4623aca1..745f0ff0 100644 --- a/qg-api-service/yaku-cli/integration-test/testdata/qg-config.yaml +++ b/qg-api-service/yaku-cli/integration-test/testdata/qg-config.yaml @@ -23,7 +23,7 @@ reports: finalize: run: | - html-finalizer + html-finalizer zip-finalizer allocations: diff --git a/qg-api-service/yaku-client-lib/.eslintrc.cjs b/qg-api-service/yaku-client-lib/.eslintrc.cjs index 022966f2..fd05d880 100644 --- a/qg-api-service/yaku-client-lib/.eslintrc.cjs +++ b/qg-api-service/yaku-client-lib/.eslintrc.cjs @@ -2,7 +2,7 @@ module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', - tsconfigRootDir : __dirname, + tsconfigRootDir : __dirname, sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], diff --git a/qg-api-service/yaku-client-lib/.prettierrc b/qg-api-service/yaku-client-lib/.prettierrc index 2eed64c9..264dd54a 100644 --- a/qg-api-service/yaku-client-lib/.prettierrc +++ b/qg-api-service/yaku-client-lib/.prettierrc @@ -1,4 +1,4 @@ { "semi": false, "singleQuote": true -} \ No newline at end of file +} diff --git a/user-documentation/README.md b/user-documentation/README.md index 0e2a948f..133c1ef9 100644 --- a/user-documentation/README.md +++ b/user-documentation/README.md @@ -1 +1 @@ -# user-documentation \ No newline at end of file +# user-documentation diff --git a/yaku-apps-python/.bandit b/yaku-apps-python/.bandit index 777c418e..d8692e68 100644 --- a/yaku-apps-python/.bandit +++ b/yaku-apps-python/.bandit @@ -1,2 +1,2 @@ [bandit] -skips = B101,B404,B602,B603,B607 \ No newline at end of file +skips = B101,B404,B602,B603,B607 diff --git a/yaku-apps-python/.flake8 b/yaku-apps-python/.flake8 index 0df15f57..5ba386dc 100644 --- a/yaku-apps-python/.flake8 +++ b/yaku-apps-python/.flake8 @@ -7,4 +7,4 @@ per-file-ignores = **/tests-integration/*: D100,D101,D102,D103,D104,TAE001,T101 apps/sharepoint/src/yaku/sharepoint/cli.py: TAE001 min-coverage-percents = 50 -min-python-version = 3.9.0 \ No newline at end of file +min-python-version = 3.9.0 diff --git a/yaku-apps-python/README.md b/yaku-apps-python/README.md index d31a9cb4..4ab503ff 100644 --- a/yaku-apps-python/README.md +++ b/yaku-apps-python/README.md @@ -1 +1 @@ -# yaku-apps-python \ No newline at end of file +# yaku-apps-python diff --git a/yaku-apps-python/apps/artifactory-fetcher/.env.sample b/yaku-apps-python/apps/artifactory-fetcher/.env.sample index b4bbac64..72e742bc 100644 --- a/yaku-apps-python/apps/artifactory-fetcher/.env.sample +++ b/yaku-apps-python/apps/artifactory-fetcher/.env.sample @@ -3,4 +3,4 @@ export ARTIFACTORY_API_KEY=APIKey export ARTIFACTORY_URL=https://artifactory.some-enterprise.com/ export REPOSITORY_NAME=repo1 export ARTIFACT_PATH=path/to/1.0.0/app-1.0.0.tar.gz -export evidence_path=/tmp \ No newline at end of file +export evidence_path=/tmp diff --git a/yaku-apps-python/apps/artifactory-fetcher/src/test/resources/test-artifact b/yaku-apps-python/apps/artifactory-fetcher/src/test/resources/test-artifact index 612240fd..7410e641 100644 --- a/yaku-apps-python/apps/artifactory-fetcher/src/test/resources/test-artifact +++ b/yaku-apps-python/apps/artifactory-fetcher/src/test/resources/test-artifact @@ -1 +1 @@ -artifact-content \ No newline at end of file +artifact-content diff --git a/yaku-apps-python/apps/excel-tools/README.md b/yaku-apps-python/apps/excel-tools/README.md index cbf57c7a..f15ed73b 100644 --- a/yaku-apps-python/apps/excel-tools/README.md +++ b/yaku-apps-python/apps/excel-tools/README.md @@ -31,7 +31,7 @@ excel-tools aggregate --csv-path ./csvs --glob-pattern "*.txt" --output-path agg ```bash # create a mapping column in the aggregate.xlsx file based on the mapping.xlsx that uses the values from the -excel-tools add-mapping --xlsx-path aggregate.xlsx --mapping-path other.xlsx --sheet-name "Sheet1" --key-column "A" --value-column "B" --mapping-column-name "col" +excel-tools add-mapping --xlsx-path aggregate.xlsx --mapping-path other.xlsx --sheet-name "Sheet1" --key-column "A" --value-column "B" --mapping-column-name "col" ``` or diff --git a/yaku-apps-python/apps/security-scanner/README.md b/yaku-apps-python/apps/security-scanner/README.md index 75a5124a..c7b03a3f 100644 --- a/yaku-apps-python/apps/security-scanner/README.md +++ b/yaku-apps-python/apps/security-scanner/README.md @@ -14,13 +14,13 @@ A valid personal access token that has access to the git repo or that has proper Remote git repository URL. ### `VUL_SEVERITY` -Severities of security issues to be displayed (comma separated). +Severities of security issues to be displayed (comma separated). Default value: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL" ### `LOCAL_REPO_SCANNER` If set to TRUE, the app will clone the repository, run `npm install` and run a local fs scan on the repo directory. Default value: "FALSE" - + ### `PRIVATE_REGISTRY` If the repository installs packages from a private registry, set this to TRUE. Default value: "FALSE" @@ -35,4 +35,4 @@ If the repository installs packages from a private registry, set this to a valid If the repository installs scoped packages from a private registry, set this to the registry scope. ### `OUTPUT_FINDINGS_TO_COMMENTS` -If set, the app will output the findings also as comments. \ No newline at end of file +If set, the app will output the findings also as comments. diff --git a/yaku-apps-python/apps/sharepoint-evaluator/env.sample b/yaku-apps-python/apps/sharepoint-evaluator/env.sample index 6d146d15..556b0ae5 100644 --- a/yaku-apps-python/apps/sharepoint-evaluator/env.sample +++ b/yaku-apps-python/apps/sharepoint-evaluator/env.sample @@ -1 +1 @@ -export SHAREPOINT_EVALUATOR_CONFIG_FILE=path_to_config_file \ No newline at end of file +export SHAREPOINT_EVALUATOR_CONFIG_FILE=path_to_config_file diff --git a/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx b/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx index eb3a1dc5..8f70e15c 100644 --- a/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx +++ b/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx @@ -1 +1 @@ -Nothing here! \ No newline at end of file +Nothing here! diff --git a/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx.__properties__.json b/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx.__properties__.json index a239a0c9..0167caa4 100644 --- a/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx.__properties__.json +++ b/yaku-apps-python/apps/sharepoint-evaluator/tests/data/ProcessStatus.docx.__properties__.json @@ -3,4 +3,4 @@ "SomeStatusId": null, "RevisionStatusId": 2, "CSC": "1" -} \ No newline at end of file +} diff --git a/yaku-apps-python/apps/sharepoint-evaluator/tests/data/subfolder/SomeOtherData.xlsx.__attributes__.json b/yaku-apps-python/apps/sharepoint-evaluator/tests/data/subfolder/SomeOtherData.xlsx.__attributes__.json index bb238111..4293cd96 100644 --- a/yaku-apps-python/apps/sharepoint-evaluator/tests/data/subfolder/SomeOtherData.xlsx.__attributes__.json +++ b/yaku-apps-python/apps/sharepoint-evaluator/tests/data/subfolder/SomeOtherData.xlsx.__attributes__.json @@ -1,3 +1,3 @@ { "Title": "SomeOtherData.xslx" -} \ No newline at end of file +} diff --git a/yaku-apps-python/apps/sharepoint-fetcher/README.md b/yaku-apps-python/apps/sharepoint-fetcher/README.md index 465fc8bd..f39373be 100644 --- a/yaku-apps-python/apps/sharepoint-fetcher/README.md +++ b/yaku-apps-python/apps/sharepoint-fetcher/README.md @@ -1,5 +1,5 @@ # sharepoint-fetcher -A fetcher to download the evidence files from the given URL of a SharePoint instance. The fetcher works both with the on-premise and cloud instances. +A fetcher to download the evidence files from the given URL of a SharePoint instance. The fetcher works both with the on-premise and cloud instances. -For more information regarding the sharepoint-fetcher, please check the official [documentation](https://docs.bswf.tech/autopilots/sharepoint/index.html) \ No newline at end of file +For more information regarding the sharepoint-fetcher, please check the official [documentation](https://docs.bswf.tech/autopilots/sharepoint/index.html) diff --git a/yaku-apps-python/apps/splunk-fetcher/env.sample b/yaku-apps-python/apps/splunk-fetcher/env.sample index 0eebc8cd..63fa61df 100644 --- a/yaku-apps-python/apps/splunk-fetcher/env.sample +++ b/yaku-apps-python/apps/splunk-fetcher/env.sample @@ -10,4 +10,4 @@ export SPLUNK_ONEQ_UPLOAD=false # optional export SPLUNK_ONE_SHOT=true # optional export SPLUNK_START_TIME=MM-DD-YY # optional export SPLUNK_END_TIME=MM-DD-YY -export SPLUNK_RESULT_FILE=output_path # optional \ No newline at end of file +export SPLUNK_RESULT_FILE=output_path # optional diff --git a/yaku-apps-python/pants-plugins/BUILD b/yaku-apps-python/pants-plugins/BUILD index 973223b0..3e7ef4e4 100644 --- a/yaku-apps-python/pants-plugins/BUILD +++ b/yaku-apps-python/pants-plugins/BUILD @@ -7,4 +7,3 @@ # we currently have Python `interpreter_constraints` set to Python 3.10. # pants_requirements(name="pants") - diff --git a/yaku-apps-python/pants.ci.toml b/yaku-apps-python/pants.ci.toml index 14da85bd..3b945b3a 100644 --- a/yaku-apps-python/pants.ci.toml +++ b/yaku-apps-python/pants.ci.toml @@ -1,3 +1,2 @@ [stats] log = true - diff --git a/yaku-apps-typescript/.prettierignore b/yaku-apps-typescript/.prettierignore index 3d8818fd..a56eb1f5 100644 --- a/yaku-apps-typescript/.prettierignore +++ b/yaku-apps-typescript/.prettierignore @@ -4,4 +4,4 @@ node_modules dist *.js -apps/json-evaluator/test/samples/bad_JSON_data.json \ No newline at end of file +apps/json-evaluator/test/samples/bad_JSON_data.json diff --git a/yaku-apps-typescript/apps/ado-work-items-evaluator/.env.sample b/yaku-apps-typescript/apps/ado-work-items-evaluator/.env.sample index e2dbc085..05457602 100644 --- a/yaku-apps-typescript/apps/ado-work-items-evaluator/.env.sample +++ b/yaku-apps-typescript/apps/ado-work-items-evaluator/.env.sample @@ -1,2 +1,2 @@ export ADO_WORK_ITEMS_JSON_NAME="data.json" -export ADO_CONFIG_FILE_PATH="sample/task_config.yaml" \ No newline at end of file +export ADO_CONFIG_FILE_PATH="sample/task_config.yaml" diff --git a/yaku-apps-typescript/apps/ado-work-items-evaluator/.eslintrc.cjs b/yaku-apps-typescript/apps/ado-work-items-evaluator/.eslintrc.cjs index 502509d7..9ef0a5d9 100644 --- a/yaku-apps-typescript/apps/ado-work-items-evaluator/.eslintrc.cjs +++ b/yaku-apps-typescript/apps/ado-work-items-evaluator/.eslintrc.cjs @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ -module.exports = require("@B-S-F/eslint-config/eslint-preset"); \ No newline at end of file +module.exports = require("@B-S-F/eslint-config/eslint-preset"); diff --git a/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/config.yaml b/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/config.yaml index e5914588..acdc5d75 100644 --- a/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/config.yaml +++ b/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/config.yaml @@ -10,17 +10,17 @@ workItems: state: fieldName: "State" conditions: - resolvedValues: + resolvedValues: - "Closed" assignees: fieldName: "AssignedTo" conditions: - expectedValues: + expectedValues: - "Name" bugType: fieldName: "BugType" conditions: illegalValues: - - "Critical" - resolvedValues: - - "Resolved" \ No newline at end of file + - "Critical" + resolvedValues: + - "Resolved" diff --git a/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/review_config.yaml b/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/review_config.yaml index 81bd48af..7ba6174c 100644 --- a/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/review_config.yaml +++ b/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/review_config.yaml @@ -27,14 +27,14 @@ workItems: fieldName: "AssignedTo" closedAfterDate: '2022.01.01' conditions: - expected: + expected: - 'Name' reviewers: - fieldName: "Reviewer" + fieldName: "Reviewer" closedAfterDate: '2022.01.01' conditions: - expected: + expected: - 'Name' children: get: true diff --git a/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/task_config.yaml b/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/task_config.yaml index 99ea8dcc..d1e32759 100644 --- a/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/task_config.yaml +++ b/yaku-apps-typescript/apps/ado-work-items-evaluator/sample/task_config.yaml @@ -17,7 +17,7 @@ workItems: assignees: fieldName: "AssignedTo" conditions: - expected: + expected: - "Name" bugType: fieldName: "BugType" diff --git a/yaku-apps-typescript/apps/ado-work-items-fetcher/.env.sample b/yaku-apps-typescript/apps/ado-work-items-fetcher/.env.sample index 6d30ceb0..c93c2049 100644 --- a/yaku-apps-typescript/apps/ado-work-items-fetcher/.env.sample +++ b/yaku-apps-typescript/apps/ado-work-items-fetcher/.env.sample @@ -3,4 +3,4 @@ export ADO_API_PROJECT="" export ADO_API_PERSONAL_ACCESS_TOKEN="" export ADO_CONFIG_FILE_PATH="./sample/config.yaml" export ADO_APPLY_PROXY_SETTINGS="" -export evidence_path="" \ No newline at end of file +export evidence_path="" diff --git a/yaku-apps-typescript/apps/ado-work-items-fetcher/.eslintrc.cjs b/yaku-apps-typescript/apps/ado-work-items-fetcher/.eslintrc.cjs index 502509d7..9ef0a5d9 100644 --- a/yaku-apps-typescript/apps/ado-work-items-fetcher/.eslintrc.cjs +++ b/yaku-apps-typescript/apps/ado-work-items-fetcher/.eslintrc.cjs @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ -module.exports = require("@B-S-F/eslint-config/eslint-preset"); \ No newline at end of file +module.exports = require("@B-S-F/eslint-config/eslint-preset"); diff --git a/yaku-apps-typescript/apps/ado-work-items-fetcher/sample/config.yaml b/yaku-apps-typescript/apps/ado-work-items-fetcher/sample/config.yaml index 81bd48af..7ba6174c 100644 --- a/yaku-apps-typescript/apps/ado-work-items-fetcher/sample/config.yaml +++ b/yaku-apps-typescript/apps/ado-work-items-fetcher/sample/config.yaml @@ -27,14 +27,14 @@ workItems: fieldName: "AssignedTo" closedAfterDate: '2022.01.01' conditions: - expected: + expected: - 'Name' reviewers: - fieldName: "Reviewer" + fieldName: "Reviewer" closedAfterDate: '2022.01.01' conditions: - expected: + expected: - 'Name' children: get: true diff --git a/yaku-apps-typescript/apps/ado-work-items-fetcher/src/work-item/work-item.ts b/yaku-apps-typescript/apps/ado-work-items-fetcher/src/work-item/work-item.ts index 2705ff0b..75b37940 100644 --- a/yaku-apps-typescript/apps/ado-work-items-fetcher/src/work-item/work-item.ts +++ b/yaku-apps-typescript/apps/ado-work-items-fetcher/src/work-item/work-item.ts @@ -136,7 +136,7 @@ export class WorkItem { reference.id }" - "${ reference.url - }" at depth "${this.configData.getHierarchyDepth()}" + }" at depth "${this.configData.getHierarchyDepth()}" , following error occurred: "${errorMessage}"`) } } diff --git a/yaku-apps-typescript/apps/defender-for-cloud/src/run.ts b/yaku-apps-typescript/apps/defender-for-cloud/src/run.ts index aa1c4efb..967a6e98 100644 --- a/yaku-apps-typescript/apps/defender-for-cloud/src/run.ts +++ b/yaku-apps-typescript/apps/defender-for-cloud/src/run.ts @@ -209,7 +209,7 @@ export function getUnhealthyRecommendations( for (const recommendation of recommendations) { if (recommendation.properties.status?.code === 'Unhealthy') { unhealthyRecommendations.push(recommendation) - } + } } return unhealthyRecommendations } diff --git a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/alertsRetriever.test.ts b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/alertsRetriever.test.ts index e4c38f07..1fa9c721 100644 --- a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/alertsRetriever.test.ts +++ b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/alertsRetriever.test.ts @@ -72,8 +72,8 @@ describe('Test "getDefenderForCloudAlerts()" from "alertsRetriever.ts"', async ( }) it('Should throw a specific error if status is not 200', async () => { - mockedAxiosGet.mockRejectedValueOnce({ - response: { + mockedAxiosGet.mockRejectedValueOnce({ + response: { status: 400 } }) diff --git a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/auth.test.ts b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/auth.test.ts index 00c63b01..1db7074d 100644 --- a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/auth.test.ts +++ b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/auth.test.ts @@ -24,7 +24,7 @@ describe('Test "generateAzureAccessToken()" from "auth.ts"', async () => { access_token: 'mockAccesstoken', }, }) - + const result = await generateAzureAccessToken( 'mockTenantId', 'mockClientId', @@ -33,13 +33,13 @@ describe('Test "generateAzureAccessToken()" from "auth.ts"', async () => { ) expect(result).toEqual('mockAccesstoken') }) - + it('Should throw a specific error if status is not 200', async () => { - mockedAxiosPost.mockRejectedValueOnce({ - response: { - status: 400, + mockedAxiosPost.mockRejectedValueOnce({ + response: { + status: 400, } }) - + await expect( generateAzureAccessToken( 'mockTenantId', @@ -51,7 +51,7 @@ describe('Test "generateAzureAccessToken()" from "auth.ts"', async () => { 'Request for Azure access token does not have status code 200. Status code: 400' ) }) - + it('Should throw a specific error if field "access_token" does not exist on the response returned by Azure authenticator', async () => { mockedAxiosPost.mockResolvedValueOnce({ status: 200, @@ -59,7 +59,7 @@ describe('Test "generateAzureAccessToken()" from "auth.ts"', async () => { random_field: 'mockAccesstoken', }, }) - + await expect( generateAzureAccessToken( 'mockTenantId', @@ -71,4 +71,4 @@ describe('Test "generateAzureAccessToken()" from "auth.ts"', async () => { 'Field "access_token" does not exist on response returned by Azure authenticator' ) }) - }) \ No newline at end of file + }) diff --git a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/recommendationsRetriever.test.ts b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/recommendationsRetriever.test.ts index 3d52dcfd..e4f99564 100644 --- a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/recommendationsRetriever.test.ts +++ b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/recommendationsRetriever.test.ts @@ -21,7 +21,7 @@ vi.mock('axios', () => ({ const mockedAxiosGet = vi.mocked(axios.get) -describe('Test "getDefenderForCloudRecommendations" from "recommendationsRetriever.ts"', async () => { +describe('Test "getDefenderForCloudRecommendations" from "recommendationsRetriever.ts"', async () => { afterEach(() => { vi.clearAllMocks() }) @@ -76,8 +76,8 @@ describe('Test "getDefenderForCloudRecommendations" from "recommendationsRetriev }) it('Should throw a specific error if status is not 200', async () => { - mockedAxiosGet.mockRejectedValueOnce({ - response: { + mockedAxiosGet.mockRejectedValueOnce({ + response: { status: 400 } }) @@ -89,7 +89,7 @@ describe('Test "getDefenderForCloudRecommendations" from "recommendationsRetriev }) }) -describe('Test "getDefenderForCloudRecommendationsMetadata" from "recommendationsRetriever.ts"', async () => { +describe('Test "getDefenderForCloudRecommendationsMetadata" from "recommendationsRetriever.ts"', async () => { afterEach(() => { vi.clearAllMocks() }) @@ -142,8 +142,8 @@ describe('Test "getDefenderForCloudRecommendationsMetadata" from "recommendation }) it('Should throw a specific error if status is not 200', async () => { - mockedAxiosGet.mockRejectedValueOnce({ - response: { + mockedAxiosGet.mockRejectedValueOnce({ + response: { status: 400 } }) @@ -153,4 +153,4 @@ describe('Test "getDefenderForCloudRecommendationsMetadata" from "recommendation 'Request for Azure recommendations metadata does not have status code 200. Status code: 400' ) }) -}) \ No newline at end of file +}) diff --git a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/run.test.ts b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/run.test.ts index 67f94dbc..b3681154 100644 --- a/yaku-apps-typescript/apps/defender-for-cloud/test/unit/run.test.ts +++ b/yaku-apps-typescript/apps/defender-for-cloud/test/unit/run.test.ts @@ -14,7 +14,7 @@ import { } from '../../src/run' import { mockedAlertsUnitTestsFirstSet } from '../fixtures/alerts' -import { +import { mockedHealthyRecommendation1, mockedHealthyRecommendation2, mockedUnhealthyRecommendation1, @@ -39,8 +39,8 @@ describe('Test "parseFilterValues()" from "run.ts"', () => { }) it('Should correctly split an "input filter string" and return the array of input values even when newlines and multiple spaces are present', () => { - const inputFilterString = `Kubernetes , - critical , + const inputFilterString = `Kubernetes , + critical , latest` const result = parseFilterValues(inputFilterString) expect(result).toEqual(['Kubernetes', 'critical', 'latest']) @@ -600,7 +600,7 @@ describe('Test "getUnhealthyRecommendations()" from "run.ts"', () => { mockedUnhealthyRecommendation1, mockedUnhealthyRecommendation2 ] - + const result = getUnhealthyRecommendations(mockedMixedRecommendations) expect(result).toEqual(mockedUnhealthyRecommendations) }) @@ -1055,7 +1055,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1102,7 +1102,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1122,7 +1122,7 @@ describe('Test "run()" from "run.ts"', async () => { expect(spyReason).toHaveBeenCalledWith( 'Retrieved 1 security recommendations based on given filters' ) - }) + }) it('Should return status RED with 1 retrieved unhealthy recommendation when there is KEY_WORDS_FILTER filter', async () => { delete process.env.SEVERITY @@ -1149,7 +1149,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1169,7 +1169,7 @@ describe('Test "run()" from "run.ts"', async () => { expect(spyReason).toHaveBeenCalledWith( 'Retrieved 1 security recommendations based on given filters' ) - }) + }) it('Should return status RED with 1 retrieved unhealthy recommendation when there is CATEGORIES_FILTER filter', async () => { delete process.env.KEY_WORDS_FILTER @@ -1196,7 +1196,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1243,7 +1243,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1290,7 +1290,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1310,7 +1310,7 @@ describe('Test "run()" from "run.ts"', async () => { expect(spyReason).toHaveBeenCalledWith( 'Retrieved 1 security recommendations based on given filters' ) - }) + }) it('Should return status RED with 2 retrieved unhealthy recommendations when there is IMPLEMENTATION_EFFORT_FILTER filter', async () => { delete process.env.SEVERITY_FILTER @@ -1337,7 +1337,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1357,7 +1357,7 @@ describe('Test "run()" from "run.ts"', async () => { expect(spyReason).toHaveBeenCalledWith( 'Retrieved 2 security recommendations based on given filters' ) - }) + }) it('Should return status GREEN with 0 retrieved unhealthy recommendations when all the filter are present', async () => { const generateAzureAccessTokenSpy = vi.spyOn( @@ -1378,7 +1378,7 @@ describe('Test "run()" from "run.ts"', async () => { recommendationsRetriever, 'getDefenderForCloudRecommendationsMetadata' ) - + generateAzureAccessTokenSpy.mockResolvedValueOnce(mockedToken) const mockedRecommendationsMetadata = mockedRecommendationsMetadataUnitTestsFirstSet getDefenderForCloudRecommendationsMetadataSpy.mockResolvedValueOnce(mockedRecommendationsMetadata) @@ -1398,6 +1398,6 @@ describe('Test "run()" from "run.ts"', async () => { expect(spyReason).toHaveBeenCalledWith( 'No security recommendations found based on given filters' ) - }) + }) }) }) diff --git a/yaku-apps-typescript/apps/gh-app/.eslintrc.cjs b/yaku-apps-typescript/apps/gh-app/.eslintrc.cjs index 87d861fe..d5ab934f 100644 --- a/yaku-apps-typescript/apps/gh-app/.eslintrc.cjs +++ b/yaku-apps-typescript/apps/gh-app/.eslintrc.cjs @@ -12,4 +12,4 @@ module.exports = { ], "no-control-regex": 0 }, -} \ No newline at end of file +} diff --git a/yaku-apps-typescript/apps/git-fetcher/.eslintrc.cjs b/yaku-apps-typescript/apps/git-fetcher/.eslintrc.cjs index 502509d7..9ef0a5d9 100644 --- a/yaku-apps-typescript/apps/git-fetcher/.eslintrc.cjs +++ b/yaku-apps-typescript/apps/git-fetcher/.eslintrc.cjs @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ -module.exports = require("@B-S-F/eslint-config/eslint-preset"); \ No newline at end of file +module.exports = require("@B-S-F/eslint-config/eslint-preset"); diff --git a/yaku-apps-typescript/apps/html-finalizer/.eslintrc.cjs b/yaku-apps-typescript/apps/html-finalizer/.eslintrc.cjs index e446520f..52cb395c 100644 --- a/yaku-apps-typescript/apps/html-finalizer/.eslintrc.cjs +++ b/yaku-apps-typescript/apps/html-finalizer/.eslintrc.cjs @@ -34,4 +34,4 @@ module.exports = { '**/tsconfig.json', '**/dist', ], - } \ No newline at end of file + } diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template-old.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template-old.ejs index e1af437e..1b5f23ae 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template-old.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template-old.ejs @@ -6,7 +6,7 @@ <%_ for (const subCheck of utils.sortedObjectValues(check.checks)) { _%> <%- include('qg-check-template-old.ejs', { check: subCheck }) %> <%_ } _%> -<%_ } else { +<%_ } else { _%> <%_ for (const report of check.reports) { _%> <%_ const rowspan = report.componentResults.length _%> @@ -32,7 +32,7 @@ <%_ } _%> <%_ if (componentResult.comments?.length) { _%> <%_ for (const comment of componentResult.comments) { _%> - <%- utils.markdown.render(comment) %> + <%- utils.markdown.render(comment) %> <%_ } _%> <%_ } _%> <%_ if (componentResult.sources?.length) { _%> diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template.ejs index 46828aa5..4b0c34dd 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-check-template.ejs @@ -10,7 +10,7 @@ <%_ if (check.evaluation.reason != "") { _%> - <%- utils.markdown.render(check.evaluation.reason) %> + <%- utils.markdown.render(check.evaluation.reason) %> <%_ } else { _%> None @@ -53,7 +53,7 @@ <%_ } _%> - + <%_ } else { _%> <%_ } _%> @@ -103,4 +103,4 @@ -<%_ } _%> \ No newline at end of file +<%_ } _%> diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section-old.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section-old.ejs index fab81d02..77210a14 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section-old.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section-old.ejs @@ -1,4 +1,4 @@ -<%_ +<%_ const labels = { auto: 'Automatically', manual: 'Manually', diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section.ejs index 227e4c2f..b261fde6 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-dashboard-section.ejs @@ -1,4 +1,4 @@ -<%_ +<%_ const labels = { auto: 'Automatically', manual: 'Manually', diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-section-old.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-section-old.ejs index de6f1063..8503fb5b 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-section-old.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-section-old.ejs @@ -7,7 +7,7 @@ <%_ if (requirement.manualStatus) { _%>*<%_ } _%> <%= requirement.id %> <%= requirement.title %> - <%_ if (requirement.reason) { _%>

Manual status: <%- utils.markdown.render(requirement.reason) %>

<%_ } _%> + <%_ if (requirement.reason) { _%>

Manual status: <%- utils.markdown.render(requirement.reason) %>

<%_ } _%> <%_ if (requirement.checks && Object.keys(requirement.checks).length !== 0) { _%> diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-template.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-template.ejs index b2339cf9..875d1cc8 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-template.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-evidence-template.ejs @@ -9,7 +9,7 @@ <%- include('qg-report-body.ejs') %>

<%= header.name %>

- + <%- include('qg-header.ejs') %> <% if (locals.metadata && locals.metadata.version) { %> diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-full-report-template.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-full-report-template.ejs index 758e0482..c202129c 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-full-report-template.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-full-report-template.ejs @@ -8,11 +8,11 @@ <%- include('qg-report-body.ejs') %> - +

<%= header.name %>

- + <%- include('qg-header.ejs') %> - + <% if (locals.metadata && locals.metadata.version) { %> <%- include('qg-dashboard-section.ejs') %> <%- include('qg-result-section.ejs') %> diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-report-head.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-report-head.ejs index bca83b8b..009f7b2b 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-report-head.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-report-head.ejs @@ -24,14 +24,14 @@ margin: 0; padding: 0; - -webkit-print-color-adjust: exact; + -webkit-print-color-adjust: exact; color-adjust: exact; } .minor-signal-neutral { fill: var(--blue-90); - } - + } + .minor-signal-error { fill: var(--red-90); } @@ -46,12 +46,12 @@ .major-signal-neutral { fill: var(--blue-50); - } - + } + .major-signal-neutral__front { fill: #fff; } - + .major-signal-error { fill: var(--red-50); } @@ -177,7 +177,7 @@ height: 1.5rem; margin-top: 0; margin-bottom: -0.5rem; - vertical-align: top; + vertical-align: top; } .icon[data-icon^="text-"] { @@ -380,4 +380,4 @@ source.classList.toggle("toggle-expanded") source.nextElementSibling.classList.toggle("hidden") } - \ No newline at end of file + diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section-old.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section-old.ejs index 15200e8f..d476ba81 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section-old.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section-old.ejs @@ -1,6 +1,6 @@

Summary of Findings

-<%- include('qg-result-table-old.ejs', { +<%- include('qg-result-table-old.ejs', { emptyListMessage: 'There are no findings.', sortedAllocations: utils.sortedObjectValues(allocations).map((allocation) => ({ ...allocation, @@ -10,7 +10,7 @@

Details

-<%- include('qg-result-table-old.ejs', { +<%- include('qg-result-table-old.ejs', { sortedAllocations: utils.sortedObjectValues(allocations), showRequirementText: true }) %> diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section.ejs index a56798fb..3e903bc1 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-section.ejs @@ -1,7 +1,7 @@

Summary

-

Overall Status: <%- include('status-icon.ejs', { status: overallStatus }) %>

-<%- include('qg-result-table.ejs', { +

Overall Status: <%- include('status-icon.ejs', { status: overallStatus }) %>

+<%- include('qg-result-table.ejs', { emptyListMessage: 'All checks passed.', sortedChapters: utils.sortedObjectEntries(chapters).map(([id, chapter]) => ({ ...chapter, @@ -12,7 +12,7 @@

Details

-<%- include('qg-result-table.ejs', { +<%- include('qg-result-table.ejs', { sortedChapters: utils.sortedObjectEntries(chapters).map(([id, chapter]) => ({ ...chapter, id, diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table-old.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table-old.ejs index 193a62d0..6d0981c4 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table-old.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table-old.ejs @@ -1,4 +1,4 @@ -<%_ const filterPrefix = `filter${++utils.filterCount}` +<%_ const filterPrefix = `filter${++utils.filterCount}` const filterIcons = [] for (const allocation of sortedAllocations) { for (const requirement of Object.values(allocation.requirements)) { diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table.ejs index 8f1ff34f..4e6135f2 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-table.ejs @@ -1,4 +1,4 @@ -<%_ const filterPrefix = `filter${++utils.filterCount}` +<%_ const filterPrefix = `filter${++utils.filterCount}` const filterIcons = [] for (const chapter of sortedChapters) { for (const requirement of Object.values(chapter.requirements)) { diff --git a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-template.ejs b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-template.ejs index ebf42f54..66fe19ba 100644 --- a/yaku-apps-typescript/apps/html-finalizer/src/qg-result-template.ejs +++ b/yaku-apps-typescript/apps/html-finalizer/src/qg-result-template.ejs @@ -11,7 +11,7 @@

<%= header.name %>

<%- include('qg-header.ejs') %> - + <% if (locals.metadata && locals.metadata.version) { %> <%- include('qg-dashboard-section.ejs') %> <%- include('qg-result-section.ejs') %> diff --git a/yaku-apps-typescript/apps/jira-finalizer/.eslintrc.cjs b/yaku-apps-typescript/apps/jira-finalizer/.eslintrc.cjs index 502509d7..9ef0a5d9 100644 --- a/yaku-apps-typescript/apps/jira-finalizer/.eslintrc.cjs +++ b/yaku-apps-typescript/apps/jira-finalizer/.eslintrc.cjs @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ -module.exports = require("@B-S-F/eslint-config/eslint-preset"); \ No newline at end of file +module.exports = require("@B-S-F/eslint-config/eslint-preset"); diff --git a/yaku-apps-typescript/apps/jira-finalizer/README.md b/yaku-apps-typescript/apps/jira-finalizer/README.md index 449abbd2..e5a424bd 100644 --- a/yaku-apps-typescript/apps/jira-finalizer/README.md +++ b/yaku-apps-typescript/apps/jira-finalizer/README.md @@ -40,7 +40,7 @@ In order to use the finalizer in your qg configuration add the following code to ```yaml finalize: run: | - export JIRA_USERNAME= + export JIRA_USERNAME= export JIRA_PASSWORD= jira-finalizer update-issues ``` diff --git a/yaku-apps-typescript/apps/jira-finalizer/jira-finalizer-config.yaml b/yaku-apps-typescript/apps/jira-finalizer/jira-finalizer-config.yaml index eaac6101..750a66b7 100644 --- a/yaku-apps-typescript/apps/jira-finalizer/jira-finalizer-config.yaml +++ b/yaku-apps-typescript/apps/jira-finalizer/jira-finalizer-config.yaml @@ -1,4 +1,4 @@ requirements: '1.15': issues: - - AQUATEST-3 \ No newline at end of file + - AQUATEST-3 diff --git a/yaku-apps-typescript/apps/jira-finalizer/samples/jira-finalizer-config.yaml b/yaku-apps-typescript/apps/jira-finalizer/samples/jira-finalizer-config.yaml index eaac6101..750a66b7 100644 --- a/yaku-apps-typescript/apps/jira-finalizer/samples/jira-finalizer-config.yaml +++ b/yaku-apps-typescript/apps/jira-finalizer/samples/jira-finalizer-config.yaml @@ -1,4 +1,4 @@ requirements: '1.15': issues: - - AQUATEST-3 \ No newline at end of file + - AQUATEST-3 diff --git a/yaku-apps-typescript/apps/json-evaluator/test/samples/bad_JSON_data.json b/yaku-apps-typescript/apps/json-evaluator/test/samples/bad_JSON_data.json index c7acd82c..66941e3a 100644 --- a/yaku-apps-typescript/apps/json-evaluator/test/samples/bad_JSON_data.json +++ b/yaku-apps-typescript/apps/json-evaluator/test/samples/bad_JSON_data.json @@ -1,3 +1,3 @@ { "bad_property":{ -} \ No newline at end of file +} diff --git a/yaku-apps-typescript/apps/manual-answer-evaluator/.env.sample b/yaku-apps-typescript/apps/manual-answer-evaluator/.env.sample index b32f1cdc..152dfe18 100644 --- a/yaku-apps-typescript/apps/manual-answer-evaluator/.env.sample +++ b/yaku-apps-typescript/apps/manual-answer-evaluator/.env.sample @@ -1,3 +1,3 @@ export manual_answer_file=sample-data/manual-answer.md export expiration_time='10m' -export expiry_reminder_period='10d' \ No newline at end of file +export expiry_reminder_period='10d' diff --git a/yaku-apps-typescript/apps/manual-answer-evaluator/.eslintrc.cjs b/yaku-apps-typescript/apps/manual-answer-evaluator/.eslintrc.cjs index de074677..9ef0a5d9 100644 --- a/yaku-apps-typescript/apps/manual-answer-evaluator/.eslintrc.cjs +++ b/yaku-apps-typescript/apps/manual-answer-evaluator/.eslintrc.cjs @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ module.exports = require("@B-S-F/eslint-config/eslint-preset"); diff --git a/yaku-apps-typescript/apps/sonarqube/.env.sample b/yaku-apps-typescript/apps/sonarqube/.env.sample index 08bb73c1..0d4208a3 100644 --- a/yaku-apps-typescript/apps/sonarqube/.env.sample +++ b/yaku-apps-typescript/apps/sonarqube/.env.sample @@ -2,4 +2,4 @@ export SONARQUBE_ACCESS_TOKEN=7f59986804d56523d35240e982b89044019fab13 export SONARQUBE_PROJECT_KEY=qg-cli-demo export SONARQUBE_PROTOCOL=http export SONARQUBE_HOST=localhost -export SONARQUBE_PORT=9000 \ No newline at end of file +export SONARQUBE_PORT=9000 diff --git a/yaku-apps-typescript/packages/autopilot-utils/.eslintrc.cjs b/yaku-apps-typescript/packages/autopilot-utils/.eslintrc.cjs index 87d861fe..d5ab934f 100644 --- a/yaku-apps-typescript/packages/autopilot-utils/.eslintrc.cjs +++ b/yaku-apps-typescript/packages/autopilot-utils/.eslintrc.cjs @@ -12,4 +12,4 @@ module.exports = { ], "no-control-regex": 0 }, -} \ No newline at end of file +} diff --git a/yaku-apps-typescript/packages/autopilot-utils/test/integration/app.js b/yaku-apps-typescript/packages/autopilot-utils/test/integration/app.js index 73313af0..b9899e52 100644 --- a/yaku-apps-typescript/packages/autopilot-utils/test/integration/app.js +++ b/yaku-apps-typescript/packages/autopilot-utils/test/integration/app.js @@ -53,4 +53,4 @@ const app = new AutopilotApp( [evaluateCommand, fetchCommand] ) -app.run() \ No newline at end of file +app.run() diff --git a/yaku-apps-typescript/packages/eslint-config/eslint-preset.js b/yaku-apps-typescript/packages/eslint-config/eslint-preset.js index 8ebbadb3..6d0620e6 100644 --- a/yaku-apps-typescript/packages/eslint-config/eslint-preset.js +++ b/yaku-apps-typescript/packages/eslint-config/eslint-preset.js @@ -1,5 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ module.exports = { diff --git a/yaku-apps-typescript/packages/issue-validators/.eslintrc.cjs b/yaku-apps-typescript/packages/issue-validators/.eslintrc.cjs index cc850e07..d7a96d23 100644 --- a/yaku-apps-typescript/packages/issue-validators/.eslintrc.cjs +++ b/yaku-apps-typescript/packages/issue-validators/.eslintrc.cjs @@ -1,6 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ module.exports = require("@B-S-F/eslint-config/eslint-preset") - \ No newline at end of file diff --git a/yaku-apps-typescript/packages/json-evaluator-lib/.eslintrc.cjs b/yaku-apps-typescript/packages/json-evaluator-lib/.eslintrc.cjs index 87d861fe..d5ab934f 100644 --- a/yaku-apps-typescript/packages/json-evaluator-lib/.eslintrc.cjs +++ b/yaku-apps-typescript/packages/json-evaluator-lib/.eslintrc.cjs @@ -12,4 +12,4 @@ module.exports = { ], "no-control-regex": 0 }, -} \ No newline at end of file +} diff --git a/yaku-apps-typescript/packages/lint-staged-config/lint-staged-preset.js b/yaku-apps-typescript/packages/lint-staged-config/lint-staged-preset.js index b5944c2f..455662e9 100644 --- a/yaku-apps-typescript/packages/lint-staged-config/lint-staged-preset.js +++ b/yaku-apps-typescript/packages/lint-staged-config/lint-staged-preset.js @@ -1,8 +1,8 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ module.exports = { "*.{json,yml,md}": ["prettier --write"], "*.ts": ["prettier --write"], -} \ No newline at end of file +} diff --git a/yaku-apps-typescript/packages/log-utils/.eslintrc.cjs b/yaku-apps-typescript/packages/log-utils/.eslintrc.cjs index cc850e07..d7a96d23 100644 --- a/yaku-apps-typescript/packages/log-utils/.eslintrc.cjs +++ b/yaku-apps-typescript/packages/log-utils/.eslintrc.cjs @@ -1,6 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ module.exports = require("@B-S-F/eslint-config/eslint-preset") - \ No newline at end of file diff --git a/yaku-apps-typescript/packages/markdown-utils/.eslintrc.cjs b/yaku-apps-typescript/packages/markdown-utils/.eslintrc.cjs index cc850e07..d7a96d23 100644 --- a/yaku-apps-typescript/packages/markdown-utils/.eslintrc.cjs +++ b/yaku-apps-typescript/packages/markdown-utils/.eslintrc.cjs @@ -1,6 +1,5 @@ /** - * Copyright (c) 2022, 2023 by grow platform GmbH + * Copyright (c) 2022, 2023 by grow platform GmbH */ module.exports = require("@B-S-F/eslint-config/eslint-preset") - \ No newline at end of file diff --git a/yaku-apps-typescript/packages/sync-versions/src/index.js b/yaku-apps-typescript/packages/sync-versions/src/index.js index deee929e..ddd8c496 100755 --- a/yaku-apps-typescript/packages/sync-versions/src/index.js +++ b/yaku-apps-typescript/packages/sync-versions/src/index.js @@ -1,7 +1,7 @@ #! /usr/bin/env node -/* - * Copyright (c) 2022, 2023 by grow platform GmbH +/* + * Copyright (c) 2022, 2023 by grow platform GmbH */ const replace = require('replace-in-file')