MASM source scan includes files under target directories
- Ngôn ngữ chính
- Rust
- Star
- 1
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
`collect_masm_files` recursively walks every directory under a target root and collects any file ending in `.masm`:
```rust
if path.is_dir() {
collect_masm_files(&path, files)?;
} else if path.extension().is_some_and(|ext| ext == "masm") {
files.push(normalize_path(&path));
}
```
For projects whose target source is at the package root, for example `path = "mod.masm"`, the target root is the project directory. In that layout, any generated `.masm` file under the conventional build output directory `target/` is indexed as source, which can pollute workspace symbols, definitions, and references.
The scanner should avoid descending into `target/` when collecting source `.masm` files.
Hướng dẫn đóng góp
Hướng nghiên cứu
Hàm `collect_masm_files` có thể nằm trong mô-đun quét mã nguồn. Hãy tìm định nghĩa của nó và logic duyệt đệ quy. Sửa đổi để bỏ qua bất kỳ thư mục nào có tên `target`. Kiểm tra bằng cách tạo một tệp `.masm` giả bên trong thư mục `target/` và xác minh rằng nó không được thu thập. Kiểm tra các bài kiểm tra hiện có cho trình quét hoặc thêm bài kiểm tra mới.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- devtools
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 75/100