Skip to content

akarol/coderabbit-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coderabbit-demo

A simple CLI task manager written in Go — built as a CodeRabbit workshop demo.

This project intentionally contains several bugs and code smells to demonstrate how AI-powered code review tools catch real issues.

Install & Run

go build -o tasks .
./tasks --help

Commands

./tasks add "Buy groceries"        # Add a task
./tasks list                       # List all tasks
./tasks list --limit 2             # List first N tasks
./tasks complete 1                 # Mark task #1 as done
./tasks delete 1                   # Delete task #1

Workshop: Bug Hunt

This codebase contains 6 intentional bugs. Try opening a PR and letting CodeRabbit find them. Here are hints — no spoilers on location:

# Category Hint
1 File path The data file location is not portable across machines
2 Error handling A JSON decode error is silently swallowed
3 Error handling A file write error is never checked
4 Bounds check A slice operation can panic at runtime
5 Logic Deleting a task doesn't actually remove it
6 ID generation Task IDs can collide after deletions

How to use with CodeRabbit

  1. Fork / push this repo to your GitHub account
  2. Install the CodeRabbit GitHub App
  3. Create a branch, make a change, open a PR
  4. Watch CodeRabbit review your code automatically

For local IDE review, install the CodeRabbit VS Code / Cursor extension.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages