Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR addresses several lint issues and cleans up unused code.
- Adds or updates package-level comments across multiple files.
- Refactors constant declarations and updates linter annotations on error handling and performance hints.
- Removes unused code from internal utility, logging, and stack packages.
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| version/command.go | Added package documentation comment. |
| style/spacing.go | Consolidated constant declarations into a const block. |
| spin/pty.go | Added nolint annotations (wrapcheck) on error returns. |
| pager/search.go | Replaced utils.LipglossPadding with a local lipglossPadding function and removed outdated nolint comments. |
| pager/pager.go | Removed nolint annotation from text rendering. |
| man/command.go | Added package documentation comment. |
| main.go | Added package documentation comment. |
| log/options.go | Removed nolint comment from the LevelStyle field. |
| log/command.go | Updated error handling with nolint annotations. |
| internal/utils/utils.go | Removed unused utility functions. |
| internal/stack/stack.go | Removed unused stack implementation. |
| internal/log/log.go | Removed obsolete log error function. |
| internal/files/files.go | Minor formatting update. |
| internal/exit/exit.go | Adjusted import formatting. |
| internal/decode/align.go | Added package documentation comment. |
| cursor/cursor.go | Added package documentation comment. |
| completion/bash.go | Added bash completion generator documentation. |
| choose/command.go | Added nolint comment for prealloc on the labels slice. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
also removed some unused code.