-
Notifications
You must be signed in to change notification settings - Fork 1
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
Print tag mask (as integer) with colourlists command #17
Print tag mask (as integer) with colourlists command #17
Conversation
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 golangci-lint (1.62.2)level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for "github.com/google/uuid"" WalkthroughThe changes in this pull request modify the Changes
Possibly related issues
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
cmd/colourlists.go (1)
23-27
: Consider optimizing column widths for better terminal compatibilityThe current format uses 75 characters for the domain column, which may cause unnecessary line wrapping in standard terminals (typically 80-120 chars wide). Consider reducing column widths while maintaining readability.
-fmtstring := "%-75s|%-20s|%-20s|%-10s|%-10s\n" +fmtstring := "%-45s|%-15s|%-15s|%-10s|%-10s\n" fmt.Printf(fmtstring, "Domain", "Source", "Src Fmt", "Colour", "Flags") -fmt.Println(strings.Repeat("-", 135)) +fmt.Println(strings.Repeat("-", 95))
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
cmd/colourlists.go
(2 hunks)
🔇 Additional comments (2)
cmd/colourlists.go (2)
5-5
: LGTM!
The addition of the strconv import is appropriate for converting the TagMask integer to string.
31-31
: Document TagMask values and verify usage
While the implementation correctly displays the TagMask for greylist entries, it would be helpful to:
- Add comments documenting possible TagMask values and their meanings
- Consider formatting the TagMask in a more user-friendly way (e.g., binary format or named flags)
Let's check how TagMask is used elsewhere in the codebase:
Consider enhancing the output by:
- Adding a legend explaining the TagMask bits
- Using binary format (
%b
) or converting to named flags for better readability
Also applies to: 36-36, 41-41
Summary by CodeRabbit
ColourlistsCmd
command, now displaying an additional "Flags" column for improved information clarity.