From 1e3876873fa9a0947ce7f7695f5df6d5a3bb8d59 Mon Sep 17 00:00:00 2001 From: Cedd Burge Date: Wed, 6 Nov 2019 17:22:28 +0000 Subject: [PATCH 1/2] INtroduce a function too long quality problem --- RES-Timekeeper/Program.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/RES-Timekeeper/Program.cs b/RES-Timekeeper/Program.cs index 871d816..f539015 100644 --- a/RES-Timekeeper/Program.cs +++ b/RES-Timekeeper/Program.cs @@ -30,9 +30,23 @@ static void Main() Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); + // add a lot of comments so that the function length is longer than code climat likes + // + // + // + // + // + // + // + // + // + // + // + // + // it looks like this line could be deleted, but it is required for some reason. // If you don't have, the icon doesn't appear in the system tray - new MainForm(); + new MainForm(); Application.Run(); } } From 572662201c8d9c20e321f1756706884c02c23dc1 Mon Sep 17 00:00:00 2001 From: Cedd Burge Date: Wed, 6 Nov 2019 17:27:24 +0000 Subject: [PATCH 2/2] Introduce a function too long quality problem --- RES-Timekeeper/Program.cs | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/RES-Timekeeper/Program.cs b/RES-Timekeeper/Program.cs index f539015..7b811d0 100644 --- a/RES-Timekeeper/Program.cs +++ b/RES-Timekeeper/Program.cs @@ -31,18 +31,23 @@ static void Main() Application.SetCompatibleTextRenderingDefault(false); // add a lot of comments so that the function length is longer than code climat likes - // - // - // - // - // - // - // - // - // - // - // - // + // actually this doesn't work, maybe it needs to be code, as opposed to comments + int a = 0; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; + a += 1; // it looks like this line could be deleted, but it is required for some reason. // If you don't have, the icon doesn't appear in the system tray