Repository navigation
test: check Cursor Bugbot review (do not merge) #71
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| """Throwaway file to check that Cursor Bugbot reviews PRs. Do not merge.""" | ||
|
|
||
|
|
||
| def add_tag(tag, tags=[]): | ||
| tags.append(tag) | ||
| return tags | ||
|
|
||
|
|
||
| def last_item(items): | ||
| return items[len(items)] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Off-by-one index always failsHigh Severity
Reviewed by Cursor Bugbot for commit 0d0cbfd. Configure here. |
||
|
|
||
|
|
||
| def read_config(path): | ||
| try: | ||
| return open(path).read() | ||
| except: | ||
| return None | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bare except swallows all errorsMedium Severity
Triggered by project rule: Bugbot review rules Reviewed by Cursor Bugbot for commit 0d0cbfd. Configure here. |
||


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.
Mutable default argument shares state
Medium Severity
add_taguses a mutable list as the default fortags, so one list is reused across calls. When callers omittags, earlier tags leak into later results and independent invocations share state.Triggered by project rule: Bugbot review rules
Reviewed by Cursor Bugbot for commit 0d0cbfd. Configure here.