Skip to content

Commit

Permalink
Fix invalid symbol file inspection reporting an error for commands.sym
Browse files Browse the repository at this point in the history
  • Loading branch information
waleedyaseen committed Oct 6, 2023
1 parent c8cf487 commit 370ac1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]
### Fixed
- Fix regular expressions not being allowed in hook transmits list.
- Fix invalid symbol file inspection reporting an error for "commands.sym".

### Changed
- Inspections that require symbols will no longer run on files outside the project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class RuneScriptInvalidSymbolFileInspection : LocalInspectionTool() {
}
val name = file.containingFile.name
val typeName = name.substring(0, name.indexOf('.'))
if (typeName == "commands") {
// Technically this is not a type, but is required by the compiler.
return null;

Check warning on line 30 in src/main/kotlin/io/runescript/plugin/ide/inspections/RuneScriptInvalidSymbolFileInspection.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Redundant semicolon

Redundant semicolon
}
if (RsPrimitiveType.lookupOrNull(typeName) == null) {
return arrayOf(
manager.createProblemDescriptor(
Expand Down

0 comments on commit 370ac1a

Please sign in to comment.