Skip to content

Commit b4f56b9

Browse files
author
Gusted
committed
Merge branch 'main' into publickey-auth-push-mirror
2 parents 26a486c + eaf653f commit b4f56b9

File tree

1,031 files changed

+25059
-16075
lines changed

Some content is hidden

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

1,031 files changed

+25059
-16075
lines changed

.drone.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ volumes:
1919

2020
steps:
2121
- name: deps-frontend
22-
image: node:16
22+
image: node:18
2323
pull: always
2424
commands:
2525
- make deps-frontend
@@ -34,7 +34,7 @@ steps:
3434
path: /go
3535

3636
- name: lint-frontend
37-
image: node:16
37+
image: node:18
3838
commands:
3939
- make lint-frontend
4040
depends_on: [deps-frontend]
@@ -82,7 +82,7 @@ steps:
8282
path: /go
8383

8484
- name: checks-frontend
85-
image: node:16
85+
image: node:18
8686
commands:
8787
- make checks-frontend
8888
depends_on: [deps-frontend]
@@ -97,19 +97,19 @@ steps:
9797
path: /go
9898

9999
- name: test-frontend
100-
image: node:16
100+
image: node:18
101101
commands:
102102
- make test-frontend
103103
depends_on: [lint-frontend]
104104

105105
- name: build-frontend
106-
image: node:16
106+
image: node:18
107107
commands:
108108
- make frontend
109109
depends_on: [test-frontend]
110110

111111
- name: build-backend-no-gcc
112-
image: golang:1.17 # this step is kept as the lowest version of golang that we support
112+
image: golang:1.18 # this step is kept as the lowest version of golang that we support
113113
pull: always
114114
environment:
115115
GO111MODULE: on
@@ -634,7 +634,7 @@ steps:
634634
- git fetch --tags --force
635635

636636
- name: deps-frontend
637-
image: node:16
637+
image: node:18
638638
pull: always
639639
commands:
640640
- make deps-frontend
@@ -652,6 +652,7 @@ steps:
652652
image: techknowlogick/xgo:go-1.18.x
653653
pull: always
654654
commands:
655+
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved
655656
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
656657
- export PATH=$PATH:$GOPATH/bin
657658
- make release
@@ -753,7 +754,7 @@ steps:
753754
- git fetch --tags --force
754755

755756
- name: deps-frontend
756-
image: node:16
757+
image: node:18
757758
pull: always
758759
commands:
759760
- make deps-frontend
@@ -771,6 +772,7 @@ steps:
771772
image: techknowlogick/xgo:go-1.18.x
772773
pull: always
773774
commands:
775+
# Upgrade to node 18 once https://github.com/techknowlogick/xgo/issues/163 is resolved
774776
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
775777
- export PATH=$PATH:$GOPATH/bin
776778
- make release

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,3 @@ indent_style = tab
2626

2727
[*.svg]
2828
insert_final_newline = false
29-
30-
[*.md]
31-
trim_trailing_whitespace = false

.eslintrc renamed to .eslintrc.yaml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ parserOptions:
1111
plugins:
1212
- eslint-plugin-unicorn
1313
- eslint-plugin-import
14-
- eslint-plugin-vue
15-
- eslint-plugin-html
1614
- eslint-plugin-jquery
17-
18-
extends:
19-
- plugin:vue/recommended
15+
- eslint-plugin-sonarjs
2016

2117
env:
2218
es2022: true
@@ -25,18 +21,11 @@ env:
2521
globals:
2622
__webpack_public_path__: true
2723

28-
settings:
29-
html/html-extensions: [".tmpl"]
30-
3124
overrides:
32-
- files: ["web_src/**/*.js", "web_src/**/*.vue", "templates/**/*.tmpl"]
25+
- files: ["web_src/**/*.js", "docs/**/*.js"]
3326
env:
3427
browser: true
3528
node: false
36-
- files: ["templates/**/*.tmpl"]
37-
rules:
38-
no-tabs: [0]
39-
indent: [2, tab, {SwitchCase: 1}]
4029
- files: ["web_src/**/*worker.js"]
4130
env:
4231
worker: true
@@ -381,6 +370,38 @@ rules:
381370
semi-spacing: [2, {before: false, after: true}]
382371
semi-style: [2, last]
383372
semi: [2, always, {omitLastInOneLineBlock: true}]
373+
sonarjs/cognitive-complexity: [0]
374+
sonarjs/elseif-without-else: [0]
375+
sonarjs/max-switch-cases: [0]
376+
sonarjs/no-all-duplicated-branches: [2]
377+
sonarjs/no-collapsible-if: [0]
378+
sonarjs/no-collection-size-mischeck: [2]
379+
sonarjs/no-duplicate-string: [0]
380+
sonarjs/no-duplicated-branches: [0]
381+
sonarjs/no-element-overwrite: [2]
382+
sonarjs/no-empty-collection: [2]
383+
sonarjs/no-extra-arguments: [0]
384+
sonarjs/no-gratuitous-expressions: [2]
385+
sonarjs/no-identical-conditions: [2]
386+
sonarjs/no-identical-expressions: [0]
387+
sonarjs/no-identical-functions: [0]
388+
sonarjs/no-ignored-return: [2]
389+
sonarjs/no-inverted-boolean-check: [2]
390+
sonarjs/no-nested-switch: [0]
391+
sonarjs/no-nested-template-literals: [0]
392+
sonarjs/no-one-iteration-loop: [2]
393+
sonarjs/no-redundant-boolean: [2]
394+
sonarjs/no-redundant-jump: [0]
395+
sonarjs/no-same-line-conditional: [2]
396+
sonarjs/no-small-switch: [0]
397+
sonarjs/no-unused-collection: [2]
398+
sonarjs/no-use-of-empty-return-value: [2]
399+
sonarjs/no-useless-catch: [0]
400+
sonarjs/non-existent-operator: [2]
401+
sonarjs/prefer-immediate-return: [0]
402+
sonarjs/prefer-object-literal: [0]
403+
sonarjs/prefer-single-boolean-return: [0]
404+
sonarjs/prefer-while: [2]
384405
sort-imports: [0]
385406
sort-keys: [0]
386407
sort-vars: [0]
@@ -459,9 +480,11 @@ rules:
459480
unicorn/prefer-date-now: [2]
460481
unicorn/prefer-default-parameters: [0]
461482
unicorn/prefer-event-key: [2]
483+
unicorn/prefer-event-target: [2]
462484
unicorn/prefer-export-from: [2]
463485
unicorn/prefer-includes: [2]
464486
unicorn/prefer-json-parse-buffer: [0]
487+
unicorn/prefer-logical-operator-over-ternary: [2]
465488
unicorn/prefer-math-trunc: [2]
466489
unicorn/prefer-modern-dom-apis: [0]
467490
unicorn/prefer-modern-math-apis: [2]
@@ -502,11 +525,6 @@ rules:
502525
use-isnan: [2]
503526
valid-typeof: [2, {requireStringLiterals: true}]
504527
vars-on-top: [0]
505-
vue/attributes-order: [0]
506-
vue/component-definition-name-casing: [0]
507-
vue/html-closing-bracket-spacing: [0]
508-
vue/max-attributes-per-line: [0]
509-
vue/one-component-per-file: [0]
510528
wrap-iife: [2, inside]
511529
wrap-regex: [0]
512530
yield-star-spacing: [2, after]

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
* text=auto eol=lf
22
*.tmpl linguist-language=Handlebars
3-
/.eslintrc linguist-language=YAML
4-
/.stylelintrc linguist-language=YAML
53
/public/vendor/** -text -eol linguist-vendored
64
/vendor/** -text -eol linguist-vendored
75
/web_src/fomantic/build/** linguist-generated

.golangci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ linters:
1919
- revive
2020
- gofumpt
2121
- depguard
22+
- nakedret
23+
- unconvert
24+
- wastedassign
25+
- nolintlint
26+
- stylecheck
2227
enable-all: false
2328
disable-all: true
2429
fast: false
@@ -32,6 +37,10 @@ run:
3237
- web_src
3338

3439
linters-settings:
40+
stylecheck:
41+
checks: ["all", "-ST1005", "-ST1003"]
42+
nakedret:
43+
max-func-lines: 0
3544
gocritic:
3645
disabled-checks:
3746
- ifElseChain

.markdownlint.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
commands-show-output: false
2+
fenced-code-language: false
3+
first-line-h1: false
4+
header-increment: false
5+
line-length: {code_blocks: false, tables: false, stern: true, line_length: -1}
6+
no-alt-text: false
7+
no-bare-urls: false
8+
no-blanks-blockquote: false
9+
no-duplicate-header: {allow_different_nesting: true}
10+
no-emphasis-as-header: false
11+
no-empty-links: false
12+
no-hard-tabs: {code_blocks: false}
13+
no-inline-html: false
14+
no-space-in-code: false
15+
no-space-in-emphasis: false
16+
no-trailing-punctuation: false
17+
no-trailing-spaces: {br_spaces: 0}
18+
single-h1: false

.spectral.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extends: [[spectral:oas, all]]
2+
3+
rules:
4+
info-contact: off
5+
oas2-api-host: off
6+
oas2-parameter-description: off
7+
oas2-schema: off
8+
oas2-valid-schema-example: off
9+
openapi-tags: off
10+
operation-description: off
11+
operation-singular-tag: off
12+
operation-tag-defined: off
File renamed without changes.

0 commit comments

Comments
 (0)