Skip to content

Alex/v3.1

Alex/v3.1 #157

Triggered via pull request February 12, 2025 16:23
Status Success
Total duration 32s
Artifacts

pull_request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

41 errors and 3 warnings
src/classes/APIError.mjs#L17
Missing space before function parentheses (space-before-function-paren)
src/classes/APIError.mjs#L20
No magic number: 4 (no-magic-numbers)
src/classes/Authentication.mjs#L260
No magic number: 4 (no-magic-numbers)
src/classes/EventStream.js#L1
`../files/build` import should occur after import of `./StatusCode` (import/order)
src/classes/Localisation.mjs#L7
Caution: `i18next` also has a named export `init`. Check if you meant to write `import {init} from 'i18next'` instead (import/no-named-as-default-member)
src/classes/Permission.mjs#L1
`../files/permissions` import should occur after import of `./Context` (import/order)
src/classes/Sessions.mjs#L2
`../emails/session` import should occur after import of `./TokenGenerators` (import/order)
src/db/Client.mjs#L4
`./Model` import should occur before import of `../helpers/Validators` (import/order)
src/db/Code.mjs#L3
`./Model` import should occur before import of `../classes/Permission` (import/order)
src/db/Decal.mjs#L2
`./Model` import should occur before import of `../helpers/Validators` (import/order)
src/db/Group.mjs#L3
`./Model` import should occur before import of `../classes/Permission` (import/order)
src/db/Rat.mjs#L2
`./Model` import should occur before import of `../helpers/Validators` (import/order)
src/db/Ship.mjs#L2
`./Model` import should occur before import of `../helpers/Validators` (import/order)
src/db/Token.mjs#L2
`./Model` import should occur before import of `../classes/Permission` (import/order)
src/helpers/Validators.mjs#L4
`./RegexLiteral` import should occur before import of `../classes/APIError` (import/order)
src/index.mjs#L234
Expected indentation of 0 spaces but found 2 (indent)
src/index.mjs#L235
Expected indentation of 2 spaces but found 4 (indent)
src/index.mjs#L236
Expected indentation of 4 spaces but found 6 (indent)
src/index.mjs#L237
Expected indentation of 4 spaces but found 6 (indent)
src/index.mjs#L238
Expected indentation of 4 spaces but found 6 (indent)
src/index.mjs#L239
Expected indentation of 4 spaces but found 6 (indent)
src/index.mjs#L240
Expected indentation of 6 spaces but found 8 (indent)
src/index.mjs#L241
Expected indentation of 6 spaces but found 8 (indent)
src/index.mjs#L242
Expected indentation of 4 spaces but found 6 (indent)
src/index.mjs#L243
Expected indentation of 2 spaces but found 4 (indent)
src/index.mjs#L244
Expected indentation of 4 spaces but found 6 (indent)
src/index.mjs#L245
Expected indentation of 6 spaces but found 8 (indent)
src/index.mjs#L246
Expected indentation of 6 spaces but found 8 (indent)
src/index.mjs#L247
Expected indentation of 6 spaces but found 8 (indent)
src/index.mjs#L248
Expected indentation of 6 spaces but found 8 (indent)
src/index.mjs#L249
Expected indentation of 4 spaces but found 6 (indent)
src/index.mjs#L250
Expected indentation of 2 spaces but found 4 (indent)
src/index.mjs#L251
Expected indentation of 0 spaces but found 2 (indent)
src/query/LeaderboardQuery.mjs#L2
`./Query` import should occur before import of `../classes/APIError` (import/order)
src/routes/Errors.mjs#L3
`./API` import should occur before import of `../classes/APIError` (import/order)
src/routes/Events.mjs#L16
`./API` import should occur before import of `../classes/APIError` (import/order)
src/routes/IPLookups.mjs#L5
`./API` import should occur before import of `../classes/APIError` (import/order)
src/routes/OAuth2.mjs#L22
`./API` import should occur before import of `../classes/APIError` (import/order)
src/routes/Resets.mjs#L10
`./API` import should occur before import of `../classes/Announcer` (import/order)
src/routes/SSO.mjs#L46
Strings must use singlequote (quotes)
src/routes/Verifications.mjs#L13
`./API` import should occur before import of `../classes/Anope` (import/order)
src/classes/WebSocket.mjs#L115
The type 'ws' is undefined (jsdoc/no-undefined-types)
src/classes/WebSocket.mjs#L138
The type 'ws' is undefined (jsdoc/no-undefined-types)
src/classes/WebSocket.mjs#L306
The type 'ws' is undefined (jsdoc/no-undefined-types)