Skip to content

fix: address lint errors in sparqlCodepointEscape#143

Draft
jitsedesmet wants to merge 1 commit into
mainfrom
tests/codepoint-escape
Draft

fix: address lint errors in sparqlCodepointEscape#143
jitsedesmet wants to merge 1 commit into
mainfrom
tests/codepoint-escape

Conversation

@jitsedesmet
Copy link
Copy Markdown
Member

  • Use codePointAt() instead of charCodeAt() per unicorn/prefer-code-point
  • Move inline comments to separate lines per line-comment-position rule
  • Shorten long test line per max-len rule
  • Add unterminated short-string test to maintain 100% branch coverage

Note: The 5 failing W3C live tests (codepoint-esc-01/02/06/07/08) are old positive tests that PR #346 explicitly removes from the manifest. Implementing PR #346's restriction on codepoint escape placement is inherently incompatible with those old tests; they will be dropped when the PR is merged.

- Use codePointAt() instead of charCodeAt() per unicorn/prefer-code-point
- Move inline comments to separate lines per line-comment-position rule
- Shorten long test line per max-len rule
- Add unterminated short-string test to maintain 100% branch coverage

Note: The 5 failing W3C live tests (codepoint-esc-01/02/06/07/08) are
old positive tests that PR #346 explicitly removes from the manifest.
Implementing PR #346's restriction on codepoint escape placement is
inherently incompatible with those old tests; they will be dropped when
the PR is merged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant