Skip to content

Conversation

@ryanrath
Copy link
Contributor

@ryanrath ryanrath commented Jan 29, 2026

Description

Just changes to new / updated code that was failing the lint tests.

Motivation and Context

Because new / updated code should comply with our linting rules.

Tests performed

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

These changes fix the following errors:
```
0 old problems
1 new problem (0 errors) (1 warning)
/home/runner/work/xdmod/xdmod/libraries/security.php
53:1     NEW ERROR    The closing brace for the class must go on the next line after the body
62:9     NEW ERROR    There must be a comment when fall-through is intentional in a non-empty case body
```
from this run: https://github.com/ubccr/xdmod/actions/runs/21184903629/job/60936693257?pr=2145
These changes fix the following errors:
```
/home/runner/work/xdmod/xdmod/tests/integration/lib/BaseTest.php
904:1    NEW ERROR    The closing brace for the class must go on the next line after the body

0 old problems
1 new problem (1 error) (0 warnings)
```

Which is from this run: https://github.com/ubccr/xdmod/actions/runs/21184903629/job/60936693257?pr=2145
These changes fix the following errors:
```
/home/runner/work/xdmod/xdmod/tests/integration/lib/Rest/WarehouseExportControllerProviderTest.php
194:29   NEW ERROR    Expected 1 space after FUNCTION keyword; 0 found
215:78   NEW ERROR    Expected 1 space after USE keyword; found 0

0 old problems
2 new problems (2 errors) (0 warnings)
```
from this run: https://github.com/ubccr/xdmod/actions/runs/21184903629/job/60936693257?pr=2145
These changes fix the following errors / warnings:
```
1120:5   NEW ERROR    'logoutCallback' is assigned a value but never used. (no-unused-vars)
1132:13  NEW WARNING  Expected method shorthand. (object-shorthand)
1133:17  NEW ERROR    Unexpected use of 'location'. (no-restricted-globals)
1133:33  NEW ERROR    Strings must use singlequote. (quotes)
1139:42  NEW ERROR    Missing space before function parentheses. (space-before-function-paren)
1142:14  NEW WARNING  Unexpected string concatenation. (prefer-template)
1142:18  NEW ERROR    Unexpected string concatenation of literals. (no-useless-concat)
1144:9   NEW WARNING  Expected method shorthand. (object-shorthand)
1145:13  NEW ERROR    Unexpected use of 'location'. (no-restricted-globals)
1148:2   NEW ERROR    Missing semicolon. (semi)
1237:48  NEW WARNING  Unexpected string concatenation. (prefer-template)
1404:54  NEW WARNING  Unexpected string concatenation. (prefer-template)
```

From the following run: https://github.com/ubccr/xdmod/actions/runs/21184903629/job/60936693257?pr=2145
These changes fix the following errors:
```
24:11    NEW WARNING  Usage of ELSE IF is discouraged; use ELSEIF instead
```
These changes are for:
```
118:13   NEW ERROR    Line indented incorrectly; expected 8 spaces, found 12
120:13   NEW ERROR    Line indented incorrectly; expected 8 spaces, found 12
```
These changes fix the following:
```
211:5    NEW ERROR    The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
982:15   NEW WARNING  Usage of ELSE IF is discouraged; use ELSEIF instead
```
This fixes the following error:
```
14:1     NEW WARNING  This comment is 56% valid code; is this commented out code?
```
These changes fix the following errors:
```
302:13   NEW WARNING  Unexpected var, use let or const instead. (no-var)
```
Which can be found here: https://github.com/ubccr/xdmod/actions/runs/21184903629/job/60936693257?pr=2145
@ryanrath ryanrath added this to the 11.5.0 milestone Jan 29, 2026
@ryanrath ryanrath added Category:General General autodoc:ignore Auto documentation ignore this PR labels Jan 29, 2026
@ryanrath
Copy link
Contributor Author

NOTE: the linter check is failing because of the spacing changes that the linter wanted failing our "extra tests"
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autodoc:ignore Auto documentation ignore this PR Category:General General

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant