Skip to content

fix(linter/plugins): correct punctuation in error message#16718

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-11-fix_linter_plugins_correct_punctuation_in_error_message
Dec 11, 2025
Merged

fix(linter/plugins): correct punctuation in error message#16718
graphite-app[bot] merged 1 commit intomainfrom
12-11-fix_linter_plugins_correct_punctuation_in_error_message

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Dec 11, 2025

Tiny change. Our convention is not to have full stops on end of error messages, unless they have multiple sentences. Alter this one to make it consistent with that style.

Copy link
Copy Markdown
Member Author

overlookmotel commented Dec 11, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review December 11, 2025 01:11
Copilot AI review requested due to automatic review settings December 11, 2025 01:11
@overlookmotel overlookmotel self-assigned this Dec 11, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects the punctuation in a TypeError message to align with the codebase convention of not including periods at the end of single-sentence error messages. The change removes the trailing period from the error message "Expected loc to be an object with integer line and column properties."

  • Removes trailing period from a single-sentence TypeError message in location.ts
  • Updates the conformance snapshot file to reflect the corrected error message

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/oxlint/src-js/plugins/location.ts Removes trailing period from TypeError message and reformats to single line
apps/oxlint/conformance/snapshot.md Updates 59 test snapshot entries to reflect the corrected error message

The changes look good and are consistent with the stated convention. The error message is properly corrected from having a period to not having one, and all snapshot occurrences have been updated accordingly. No issues found with this implementation.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overlookmotel overlookmotel force-pushed the 12-11-fix_linter_plugins_correct_punctuation_in_error_message branch from 849f5bd to e1eebb7 Compare December 11, 2025 02:09
@overlookmotel overlookmotel force-pushed the 12-09-test_linter_plugins_conformance_tests_ignore_parsing_errors branch from f0a3eb7 to 20b5b7c Compare December 11, 2025 02:09
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app bot commented Dec 11, 2025

Merge activity

Tiny change. Our convention is not to have full stops on end of error messages, unless they have multiple sentences. Alter this one to make it consistent with that style.
@graphite-app graphite-app bot force-pushed the 12-09-test_linter_plugins_conformance_tests_ignore_parsing_errors branch from 20b5b7c to 7b28b6f Compare December 11, 2025 02:17
@graphite-app graphite-app bot force-pushed the 12-11-fix_linter_plugins_correct_punctuation_in_error_message branch from e1eebb7 to 32e23f7 Compare December 11, 2025 02:18
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
Base automatically changed from 12-09-test_linter_plugins_conformance_tests_ignore_parsing_errors to main December 11, 2025 02:24
@graphite-app graphite-app bot merged commit 32e23f7 into main Dec 11, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 12-11-fix_linter_plugins_correct_punctuation_in_error_message branch December 11, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants