Checkout Config
imports:
- javascript
checks:
javascript:
code_rating: true
duplicate_code: true
wrap_iife: true
no_process_exit: true
no_process_env: true
no_extra_semi: true
no_extra_bind: true
no_eval: true
no_else_return: true
dot_notation: true
camelcase: true
wrap_regex: true
valid_typeof: true
no_wrap_func: true
no_use_before_define: true
no_unreachable: true
no_undefined: true
no_trailing_spaces: true
no_reserved_keys: true
no_redeclare: true
no_obj_calls: true
no_loop_func: true
no_lonely_if: true
no_lone_blocks: true
no_inner_declarations: true
no_floating_decimal: true
no_extra_boolean_cast: true
no_empty: true
no_dupe_keys: true
no_var: true
no_param_assign: true
no_loop_var_assign: true
no_implicit_undefined_return: true
eqeqeq: true
no_alert: true
build:
nodes:
analysis:
root_path: './backend'
project_setup:
before:
- nvm install 17
- nvm use 17
override:
- npm install
tests:
override:
- js-scrutinizer-run
- command: npm run lint:report-checkstyle
analysis:
file: eslint-report.xml
format: eslint-checkstyle
# Run tests with coverage
- command: npm run test:full-cov
coverage:
file: coverage-combined/clover.xml
format: clover
frontend:
root_path: './frontend'
project_setup:
before:
- nvm install 17
- nvm use 17
override:
- npm install
tests:
override:
- js-scrutinizer-run
- command: npm run lint:report-checkstyle-frontend
analysis:
file: eslint-report-frontend.xml
format: eslint-checkstyle
# Run tests with coverage
- command: npm run test:coverage
coverage:
file: coverage/clover.xml
format: clover
tools:
eslint:
enabled: true
config:
extensions:
- .ts
filter:
excluded_paths:
- 'backend/tests/**/*'
- 'backend/node_modules/**/*'
- 'backend/dist/**/*'
- 'backend/coverage/**/*'
- 'backend/coverage-e2e/**/*'
- 'backend/coverage-combined/**/*'
- 'frontend/tests/**/*'
- 'frontend/node_modules/**/*'
- 'frontend/public/**/*'
- 'frontend/dist/**/*'
paths:
- 'backend/src/**/*'
- 'frontend/src/**/*'
Repository Config
checks:
javascript:
no_var: true
no_param_assign: true
no_loop_var_assign: true
no_implicit_undefined_return: true
no_else_return: true
no_alert: true
eqeqeq: true