-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MISSED MIRROR] Lint with OpenDream (#81892) (#1791)
* Lint with OpenDream (#81892) ## About The Pull Request Courtesy of ParadiseSS13/Paradise#21099 and goonstation/goonstation#18127 * Fixes the errors caught by this in our module files --------- Co-authored-by: MrMelbert <[email protected]>
- Loading branch information
1 parent
bcce212
commit f57851e
Showing
21 changed files
with
107 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,25 @@ jobs: | |
if: steps.linter-setup.conclusion == 'success' && !cancelled() | ||
run: tools/build/build --ci lint tgui-test | ||
|
||
odlint: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: "Lint with OpenDream" | ||
runs-on: ubuntu-22.04 | ||
concurrency: | ||
group: odlint-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: robinraju/[email protected] | ||
with: | ||
repository: "OpenDreamProject/OpenDream" | ||
tag: "latest" | ||
fileName: "DMCompiler_linux-x64.tar.gz" | ||
extract: true | ||
- name: Run OpenDream | ||
run: | | ||
./DMCompiler_linux-x64/DMCompiler tgstation.dme --suppress-unimplemented --define=CIBUILDING | ||
compile_all_maps: | ||
if: ( !contains(github.event.head_commit.message, '[ci skip]') ) | ||
name: Compile Maps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,3 +247,6 @@ define_sanity_output.txt | |
# ezdb | ||
/db/ | ||
/config/ezdb.txt | ||
|
||
# Running OpenDream locally | ||
tgstation.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file is included right at the start of the DME. | ||
// Its purpose is to enable multiple lints (pragmas) that are supported by OpenDream to better validate the codebase | ||
// These are essentially nitpicks the DM compiler should pick up on but doesnt | ||
|
||
#if !defined(SPACEMAN_DMM) && defined(OPENDREAM) | ||
// This is in a separate file as a hack to avoid SpacemanDMM | ||
// evaluating the #pragma lines, even if its outside a block it cares about | ||
// (Also so people can code-own it. Shoutout to AA) | ||
#include "tools/ci/od_lints.dm" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//1000-1999 | ||
#pragma FileAlreadyIncluded error | ||
#pragma MissingIncludedFile error | ||
#pragma MisplacedDirective error | ||
#pragma UndefineMissingDirective error | ||
#pragma DefinedMissingParen error | ||
#pragma ErrorDirective error | ||
#pragma WarningDirective warning | ||
#pragma MiscapitalizedDirective error | ||
|
||
//2000-2999 | ||
#pragma SoftReservedKeyword error | ||
#pragma DuplicateVariable error | ||
#pragma DuplicateProcDefinition error | ||
#pragma TooManyArguments error | ||
#pragma PointlessParentCall error | ||
#pragma PointlessBuiltinCall error | ||
#pragma SuspiciousMatrixCall error | ||
#pragma FallbackBuiltinArgument error | ||
#pragma MalformedRange error | ||
#pragma InvalidRange error | ||
#pragma InvalidSetStatement error | ||
#pragma InvalidOverride error | ||
#pragma DanglingVarType error | ||
#pragma MissingInterpolatedExpression error | ||
#pragma AmbiguousResourcePath error | ||
|
||
//3000-3999 | ||
#pragma EmptyBlock error | ||
#pragma EmptyProc disabled | ||
#pragma UnsafeClientAccess disabled | ||
#pragma SuspiciousSwitchCase error | ||
#pragma AssignmentInConditional error |