Linter gaps and silent cursor no-ops (DEF after ABORT flagged, RETURN/GOTO misuse not flagged, MOVE CURSOR negative/out-of-range accepted)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading src/script_linter*, src/script_parser.cpp, and src/script_executor.cpp, then run the issue's snippets through the linter and executor to reproduce each behavior. Done means definitions after ABORT are not falsely flagged, invalid RETURN/GOTO usage gets static diagnostics, and invalid cursor targets produce a runtime error.
Written by the indexing model from the issue text.
Description
Summary
- A
DEFplaced afterABORTis reported "Unreachable code after ABORT" (false positive; definitions are hoisted). RETURNat top level andGOTOinside a DEF pass parse and lint, then fail only at runtime ("RETURN outside of function", "GOTO is not allowed inside functions").MOVE CURSOR AT INPUTFIELD -1/-2act as NEXT/PREVIOUS (n ≥ 1 is not validated);MOVE CURSOR AT (0,0)or(99,999)is silently ignored.
Location
- File(s):
src/script_linter*/src/script_parser.cpp,src/script_executor.cpp
Category
error-handling
Severity
low
Reproduction / Evidence
Reproducible at runtime with the library's linter and executor on the snippets above.
Expected Behavior
Static diagnostics for misuse; runtime error for out-of-range cursor targets.
Actual Behavior
As above.
- Dominant language
- C++
- Stars
- 1
- Forks
- 2
- Avg merge
- 1h 34m
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 5250ng/5250script
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
5250ng/5250script#30 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
5250ng/5250script#27 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
5250ng/5250script#25 ·
-
aidByteToKeyword maps 0xF5 to PAGEUP and 0xF4 to PAGEDOWN, so recorded Page Down replays as Page UpOpenbug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
5250ng/5250script#20 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
5250ng/5250script#19 ·
All issues in 5250ng/5250script
Similar issues
-
Invalid-MissingHash/Commit/NotAC
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
azerothcore/azerothcore-wotlk#28636 ·
Maintainers usually reply within 1 day
-
(S1 - Need confirmation)
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CleverRaven/Cataclysm-DDA#89829 ·
Maintainers usually reply within 1 day
-
comp-documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ClickHouse/ClickHouse#136277 ·
Maintainers usually reply within 1 day
-
Flow Needs: Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
react/react-native#60447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day