box / box/mojito

Bug: File header comments get parsed as comment on first string (JS file format)

Open
#588 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
385
Forks
72
Avg merge
4d 7h
Merged PRs (30d)
6

Description

Hi! Thanks for this project!

Very low priority "bug":

When processing JS files of proper format, a header comment at the top of the file (like the sort used for copyright) gets included as the comment on the first string. I observed this when there was otherwise no comment on the first string.

## Potential Solution
Don't start parsing strings from the file until the line with "export" on it, or some other representative token where the hash begins.

(I'm not blocked on this, as I believe our project can remove the header comment, so no urgency from me!)

Contributor guide

Open the contributing guide

Research direction

Start with the JavaScript-file parsing path and reproduce the case with a header comment before the first exported string. Confirm that the header is excluded from the first string's comment while actual string comments remain unchanged; the payload names no specific file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.