Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions tools/Linter.lc
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,18 @@ command Lint
create folder tLCIDirectory
end if
SaveToTempFile tScript
set the hideConsoleWindows to true
put shell(tLCCompile & tModulePaths & " -- " & sTempFile) into tErrors
split tErrors with return
repeat with tIndex = 1 to the number of elements of tErrors
split tErrors[tIndex] with ":"
write tErrors[tIndex][2], tErrors[tIndex][3], tErrors[tIndex][4] & linefeed to stdout
if the platform is "Win32" and char 2 to 3 of tErrors[tIndex] is ":/" then
split tErrors[tIndex] with ":"
write tErrors[tIndex][3], tErrors[tIndex][4], tErrors[tIndex][5] & linefeed to stdout
else
split tErrors[tIndex] with ":"
write tErrors[tIndex][2], tErrors[tIndex][3], tErrors[tIndex][4] & linefeed to stdout
end if

end repeat
DeleteTempFile
break
Expand Down