google / google/keep-sorted

refactor: Use type aliases to ensure line number/offset consistency

Open
#125 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
403
Forks
36
Avg merge
4h 24m
Merged PRs (30d)
1

Description

As pointed out in a [recent PR](https://github.com/google/keep-sorted/pull/124#discussion_r2961642101), it can be confusing to distinguish between lines which should/shouldn't be offset.

We should use type aliases to make sure these operations can be extended/modified safely, without introducing viewing bugs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.