Skip to content

Commit 47aa173

Browse files
author
lorisadmin
committed
Merge remote-tracking branch 'origin/main' into 2021-11-08-bvl-feedback-summary
2 parents 3166c2b + 31d664d commit 47aa173

File tree

832 files changed

+76736
-45003
lines changed

Some content is hidden

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

832 files changed

+76736
-45003
lines changed

.eslintignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ babel.config.js
55

66
# compiled js ignored since it is run on the jsx directory
77
modules/*/js/*
8-
modules/*/js/*/*
98
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/protocol-buffers/chunk_pb.js
109
htdocs/js/components/*
1110

@@ -23,3 +22,6 @@ htdocs/js/FileSaver.min.js
2322
htdocs/vendor/
2423
htdocs/fontawesome/
2524
htdocs/bootstrap/
25+
26+
# ignore until eslint errors are fixed
27+
modules/electrophysiology_browser/jsx/react-series-data-viewer/src/series/components/**

.eslintrc.json

+58-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@babel/eslint-parser",
33
"plugins": [
44
"react",
5-
"no-jquery"
5+
"no-jquery",
6+
"jsdoc"
7+
68
],
79
"settings": {
810
"react": {
911
"version": "detect"
12+
},
13+
"jsdoc": {
14+
"tagNamePreference": {
15+
"return": "return",
16+
"tag constructor": "constructor"
17+
},
18+
"preferredTypes": {
19+
"Function": "function",
20+
"function": "Function",
21+
"Array": "array",
22+
"array": "Array"
23+
}
1024
}
1125
},
1226
"env": {
1327
"browser": true,
1428
"jquery": true,
15-
"node": true
29+
"node": true,
30+
"es6": true
1631
},
1732
"parserOptions": {
1833
"sourceType": "module",
@@ -21,7 +36,12 @@
2136
"globalReturn": false
2237
}
2338
},
24-
"extends": ["eslint:recommended", "plugin:react/recommended", "google"],
39+
"extends": [
40+
"eslint:recommended",
41+
"plugin:react/recommended",
42+
"plugin:jsdoc/recommended",
43+
"google"
44+
],
2545
"rules": {
2646
"max-len": ["error", {
2747
"code": 80,
@@ -44,15 +64,16 @@
4464
"no-fallthrough": "off",
4565
"react/jsx-no-undef": "off",
4666
"react/prop-types": "off",
47-
"no-undef": "off",
67+
"no-undef": "error",
4868
"react/jsx-key": "off",
4969
"no-extra-semi": "off",
5070
"no-prototype-builtins": "off",
5171
"react/jsx-uses-react": "error",
5272
"react/jsx-uses-vars": "error",
5373
"prefer-rest-params": "error",
5474
"array-callback-return": "off",
55-
"require-jsdoc": "error",
75+
"require-jsdoc": "off",
76+
"valid-jsdoc": "off",
5677
"no-implicit-globals": "off",
5778
"no-invalid-this": "off",
5879
"no-alert": "off",
@@ -61,9 +82,36 @@
6182
}],
6283
"no-console": ["warn", {
6384
"allow": ["info", "warn", "error"]
64-
}]
85+
}],
86+
"jsdoc/require-param-description": "off",
87+
"jsdoc/require-returns": "off",
88+
"jsdoc/require-returns-description": "off"
6589
},
6690
"overrides": [
91+
{
92+
"files": "**/*.+(ts|tsx)",
93+
"plugins": ["@typescript-eslint"],
94+
"extends": [
95+
"plugin:@typescript-eslint/recommended"
96+
],
97+
"rules": {
98+
"jsdoc/require-jsdoc": [
99+
"error",
100+
{"require": {
101+
"ArrowFunctionExpression": true,
102+
"FunctionExpression": true,
103+
"ClassDeclaration": true,
104+
"MethodDefinition": true
105+
}}
106+
],
107+
"jsdoc/require-param-description": "error",
108+
"jsdoc/require-returns": "error",
109+
"jsdoc/require-returns-description": "error",
110+
"no-undef": "off",
111+
"@typescript-eslint/ban-ts-comment": "off",
112+
"@typescript-eslint/no-explicit-any": "off"
113+
}
114+
},
67115
{
68116
"files": [
69117
"modules/**"
@@ -234,6 +282,8 @@
234282
"ReactDOM": true,
235283
"loris": true,
236284
"QueryString": true,
237-
"swal": true
285+
"swal": true,
286+
"schema_urls": true,
287+
"JSX": true
238288
}
239289
}

.githooks/pre-push

-2
This file was deleted.

.github/workflows/loristest.yml

+31-12
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,32 @@ on:
44
- push
55
- pull_request
66

7+
env:
8+
EEG_VIS_ENABLED: 'true'
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest
1013
strategy:
14+
fail-fast: false
1115
matrix:
12-
testsuite:
13-
- static
14-
- unit
15-
- integration
16-
php:
17-
- 7.4
18-
- 8.0
16+
testsuite: ['integration']
17+
php: ['8.1','8.2']
18+
ci_node_index: [0,1,2,3]
19+
20+
include:
21+
# add a variable but do not display it in the job's name
22+
- ci_node_total: 4
1923

24+
- testsuite: 'static'
25+
php: '8.1'
26+
- testsuite: 'static'
27+
php: '8.2'
28+
- testsuite: 'unit'
29+
php: '8.1'
30+
- testsuite: 'unit'
31+
php: '8.2'
32+
2033
steps:
2134
- uses: actions/checkout@v2
2235

@@ -31,15 +44,16 @@ jobs:
3144

3245
- name: Cache Composer packages
3346
id: composer-cache
47+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
48+
- name: Composer cache
3449
uses: actions/cache@v2
3550
with:
36-
path: vendor
37-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
38-
restore-keys: |
39-
${{ runner.os }}-php-
51+
path: ${{ steps.composer-cache.outputs.dir }}
52+
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
53+
restore-keys: ${{ runner.os }}-composer-
4054

4155
- name: Change PHP Version in Dockerfile
42-
run: sed -i "s/7.4/${{ matrix.php }}/g" Dockerfile.test.php7
56+
run: sed -i "s/8.0/${{ matrix.php }}/g" Dockerfile.test.php8
4357

4458
- name: Install package dependencies
4559
run: sudo apt-get install -y protobuf-compiler
@@ -55,3 +69,8 @@ jobs:
5569

5670
- name: Run Test Suite
5771
run: npm run tests:${{ matrix.testsuite }}
72+
env:
73+
# Specifies how many jobs you would like to run in parallel,
74+
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
75+
# Use the index from matrix as an environment variable
76+
CI_NODE_INDEX: ${{ matrix.ci_node_index }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
project
2+
p_*/
23
smarty/templates_c
34
.gitmodules
45
project-*
@@ -32,5 +33,4 @@ SQL/Archive/autogenerated/single_use/*.sql
3233
SQL/Archive/autogenerated/*.sql
3334
VERSION
3435
.DS_Store
35-
package-lock.json
3636
.eslintcache

.phan/config.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"unused_variable_detection" => true,
3131
"suppress_issue_types" => [
3232
"PhanUnusedPublicNoOverrideMethodParameter",
33-
"PhanTypePossiblyInvalidDimOffset",
3433
],
3534
"analyzed_file_extensions" => ["php", "inc"],
3635
"directory_list" => [
@@ -41,6 +40,9 @@
4140
"vendor",
4241
"test"
4342
],
43+
'exclude_file_list' => [
44+
'vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/DoubleQuotedStringTest.inc'
45+
],
4446
"exclude_analysis_directory_list" => [
4547
"vendor"
4648
],

0 commit comments

Comments
 (0)