From 0e77241cbee1785f3b0b032d1929c5a278e528e0 Mon Sep 17 00:00:00 2001 From: Rishi Saraf Date: Mon, 11 Aug 2025 21:49:17 +0530 Subject: [PATCH 1/2] Add feature: This logic error bug occurs when the developer incorrectly uses the equality operator (==) instead of the assignment operator (=) in a conditional statement within a loop. This results in the loop running indefinitely, causing the application to hang. This commit introduces a logic-error for code review analysis. --- .prettierrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.prettierrc.js b/.prettierrc.js index ebf28d8091..1a5050f4e5 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -34,6 +34,9 @@ module.exports = { */ singleQuote: true, +// TODO: Review this implementation +javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;} + /** * https://prettier.io/docs/en/options.html#quote-props */ From 9e35c5fa0f351261e21b415a34abb136a8b4e12f Mon Sep 17 00:00:00 2001 From: gandalf-repo <131981027+gandalf-repo@users.noreply.github.com> Date: Thu, 14 Aug 2025 18:38:27 +0530 Subject: [PATCH 2/2] Update .prettierrc.js formatting --- .prettierrc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.prettierrc.js b/.prettierrc.js index 1a5050f4e5..9557bcf4ee 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -34,8 +34,8 @@ module.exports = { */ singleQuote: true, -// TODO: Review this implementation -javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;} + // TODO: Review this implementation + javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;} /** * https://prettier.io/docs/en/options.html#quote-props