Skip to content

Review branch: bug detection exercise#8

Open
alexeyev-oleg wants to merge 7 commits into
mate-academy:mainfrom
alexeyev-oleg:review-me
Open

Review branch: bug detection exercise#8
alexeyev-oleg wants to merge 7 commits into
mate-academy:mainfrom
alexeyev-oleg:review-me

Conversation

@alexeyev-oleg

Copy link
Copy Markdown

Overview

This PR opens the review-me branch against main for a code review exercise in Unit 4, Lesson 4.

Code Review Findings

Claude automated code review successfully analyzed the repository and caught the primary planted bug, along with several potential edge cases:

  1. Planted Bug (Critical): lib/store.js line 50-51 (edit() function) lacks a guard check when find() returns undefined for a non-existent ID. This causes a crash (TypeError: Cannot set properties of undefined).
  2. Edge Cases Found: Missing arguments check in notes.js for the edit command, leading to potential NaN comparison issues and silent note erasure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants