From 8dc9896cb732a6d32c6c1be5f04f1cf0517f94e9 Mon Sep 17 00:00:00 2001 From: Anto Christopher Date: Tue, 26 May 2026 14:04:35 +0530 Subject: [PATCH 1/2] feat: add fetch_user_profle helper (intentional typo) --- sim_typo.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sim_typo.py diff --git a/sim_typo.py b/sim_typo.py new file mode 100644 index 000000000..da531f1db --- /dev/null +++ b/sim_typo.py @@ -0,0 +1,7 @@ +"""Scenario A demo file — typo on local feature branch (P1).""" + + +def fetch_user_profle(user_id): # NOTE: 'profle' is the typo + """Return user info; misspelled function name should be flagged.""" + unused_local = 42 # also has an unused local + return {"id": user_id, "active": True} From 2ac7a3eb0c142677ace6dfbd64276285d6f1409d Mon Sep 17 00:00:00 2001 From: Anto Christopher Date: Tue, 26 May 2026 14:04:44 +0530 Subject: [PATCH 2/2] fix: rename fetch_user_profle -> fetch_user_profile (P2 fix) --- sim_typo.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sim_typo.py b/sim_typo.py index da531f1db..4f0a7569a 100644 --- a/sim_typo.py +++ b/sim_typo.py @@ -1,7 +1,6 @@ -"""Scenario A demo file — typo on local feature branch (P1).""" +"""Scenario A demo file — typo fixed on origin/ (P2).""" -def fetch_user_profle(user_id): # NOTE: 'profle' is the typo - """Return user info; misspelled function name should be flagged.""" - unused_local = 42 # also has an unused local +def fetch_user_profile(user_id): # NOTE: 'profile' is now correctly spelled + """Return user info; renamed to fix the typo.""" return {"id": user_id, "active": True}