-
Notifications
You must be signed in to change notification settings - Fork 963
feat(cli)!: show position of error in commit input #633 #4629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
escapedcat
wants to merge
35
commits into
master
Choose a base branch
from
feat/633_show-position-option
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
95b592c
feat(cli): add --show-position flag to display error location
escapedcat 684d015
test(lint): add tests for getRulePosition function
escapedcat 083f8fc
fix: remove duplicate test names
escapedcat 43ad330
fix: improve position indicator for empty field rules and fallback ha…
escapedcat f87bca6
fix: resolve remaining PR comments
escapedcat 24a9b02
refactor: export shared Position type from @commitlint/types
escapedcat 28849c6
refactor: generalize line handling and fix edge cases
escapedcat a8f3b91
feat!: enable position indicator by default
escapedcat 1dbc322
fix(format): strip ANSI codes when computing position indicator offset
escapedcat e99b097
fix(lint): compute body start line from actual offset
escapedcat cfe7fdd
fix(lint): compute footer start line from actual offset
escapedcat a2cdb1f
fix(lint): provide position for body-leading-blank when blank is missing
escapedcat a4d4461
fix(lint): provide position for footer-leading-blank when blank is mi…
escapedcat a402e38
fix(lint): respect custom parser headerPattern for subject position
escapedcat c08992a
fix(format): render position indicator under the failing line for mul…
escapedcat ab55526
test(cli): match each input line individually for stdin-failure output
escapedcat cfe9a3b
test: cover position indicator fixes
escapedcat e0bad19
fix(lint): use lastIndexOf for subject position
escapedcat 87bfde8
fix(lint): locate type in header instead of assuming raw starts with it
escapedcat 7d95a7e
fix(lint): normalize CRLF before computing rule positions
escapedcat 94ca031
fix(lint): point subject-exclamation-mark caret at the bang position
escapedcat 89612ee
docs(format): document start/end problem fields for position indicator
escapedcat 32ff054
test(cli): add integration coverage for --show-position default and o…
escapedcat dd59f49
fix(lint): pin subject-exclamation-mark caret to the bang adjacent to…
escapedcat fde3db1
fix(lint): point leading-blank carets at the actual section boundary
escapedcat 0884f25
fix(lint): provide body-empty position for header-only commits
escapedcat 1153f82
fix(lint): clamp body/footer end offset to raw.length
escapedcat 54fc1d0
refactor(types): adopt Position in LintRuleOutcome and document units
escapedcat 01945ae
docs(cli): add --show-position to the CLI reference
escapedcat 3a9ec87
test(lint): add subject position test for custom parserOpts headerPat…
escapedcat 79451a7
test(cli): assert full-message reprint preserves input line order
escapedcat 834e8b3
refactor(lint): simplify getRulePosition with field-level helpers
escapedcat a1e3f5c
feat(cli): make --show-position opt-in (default off)
escapedcat 037a6a9
test(config-conventional): assert positions explicitly
escapedcat 5aed3d3
feat!: enable position indicator by default
escapedcat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.