Linter gaps and silent cursor no-ops (DEF after ABORT flagged, RETURN/GOTO misuse not flagged, MOVE CURSOR negative/out-of-range accepted)

Đang mở
#31 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Summary
  • A DEF placed after ABORT is reported "Unreachable code after ABORT" (false positive; definitions are hoisted).
  • RETURN at top level and GOTO inside 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 / -2 act 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.

Ngôn ngữ chính
C++
Star
1
Fork
2
Merge trung bình
1 giờ 34 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của 5250ng/5250script

Tất cả issue của 5250ng/5250script

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.