From 9b4736668fa3a5d6b5fe6b568d52f60b2c61ea98 Mon Sep 17 00:00:00 2001 From: "tsun@codety.io" Date: Fri, 30 Aug 2024 00:34:34 -0700 Subject: [PATCH 1/3] Demo --- code-issue-examples/cpp/Sort.cpp | 2 +- code-issue-examples/cpp/cpp.cpp | 2 +- code-issue-examples/go/module-with-mod/hello.go | 2 +- .../iac/terraform/vpc-3-layer-example/alb_sg.tf | 8 ++++---- .../java-pmd/module_api/src/main/java/com/MyApi.java | 2 +- .../module_scheduler/src/main/java/MyScheduler.java | 3 ++- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/code-issue-examples/cpp/Sort.cpp b/code-issue-examples/cpp/Sort.cpp index 7d7d2f7..0c58a52 100644 --- a/code-issue-examples/cpp/Sort.cpp +++ b/code-issue-examples/cpp/Sort.cpp @@ -7,7 +7,7 @@ void merging(int arr1[], int arr2[], int arr3[]) int i = 0, j = 0, k = 0; for (i = 0; i < 5 && j < 5;) { // comparing first array elements with second - if (arr1[i] < arr2[j]) + if (arr1[i] < arr2[j]) { arr3[k] = arr1[i]; k++; diff --git a/code-issue-examples/cpp/cpp.cpp b/code-issue-examples/cpp/cpp.cpp index 4a347c9..19a54a1 100644 --- a/code-issue-examples/cpp/cpp.cpp +++ b/code-issue-examples/cpp/cpp.cpp @@ -2,7 +2,7 @@ using namespace std; def print_point(x, y): # [unused-argument] - print(f"Point is located at {x},{x}") + print (f"Point is located at {x},{x}") int main() { diff --git a/code-issue-examples/go/module-with-mod/hello.go b/code-issue-examples/go/module-with-mod/hello.go index f875a96..9854f3c 100644 --- a/code-issue-examples/go/module-with-mod/hello.go +++ b/code-issue-examples/go/module-with-mod/hello.go @@ -1,7 +1,7 @@ package hello func Hello() string { - var u3 = "initial" + var u3 = "initial" var u4 = "initial" return "Hello, world." } \ No newline at end of file diff --git a/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf b/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf index 4c3dcff..a55d256 100644 --- a/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf +++ b/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf @@ -8,10 +8,10 @@ resource "aws_security_group" "alb-security-group" { ingress { description = "http access" - from_port = 80 - to_port = 80 - protocol = "tcp" - cidr_blocks = ["0.0.0.0/0"] + from_port = 80 + to_port = 80 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] } ingress { diff --git a/code-issue-examples/java-pmd/module_api/src/main/java/com/MyApi.java b/code-issue-examples/java-pmd/module_api/src/main/java/com/MyApi.java index 563acce..82febbf 100644 --- a/code-issue-examples/java-pmd/module_api/src/main/java/com/MyApi.java +++ b/code-issue-examples/java-pmd/module_api/src/main/java/com/MyApi.java @@ -1,7 +1,7 @@ package com; //unused imported depepdency -import java.util.List; +import java.util.List; public class MyApi{ String abc = "hello"; } \ No newline at end of file diff --git a/code-issue-examples/java-pmd/module_scheduler/src/main/java/MyScheduler.java b/code-issue-examples/java-pmd/module_scheduler/src/main/java/MyScheduler.java index db1c2ef..f457179 100644 --- a/code-issue-examples/java-pmd/module_scheduler/src/main/java/MyScheduler.java +++ b/code-issue-examples/java-pmd/module_scheduler/src/main/java/MyScheduler.java @@ -1,5 +1,6 @@ public class MyScheduler{ - String abc = "hello"; + + String abc = "hello"; public void testRun(String input){ intput = "got changed"; } From 12b506c1ccaa1ab4d7931f9fe31ccac8ee46bf5a Mon Sep 17 00:00:00 2001 From: "tsun@codety.io" Date: Fri, 30 Aug 2024 00:39:14 -0700 Subject: [PATCH 2/3] Demo --- .../iac/terraform/vpc-3-layer-example/alb_sg.tf | 8 ++++---- code-issue-examples/scala/test.scala | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf b/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf index a55d256..e4f6e72 100644 --- a/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf +++ b/code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf @@ -29,7 +29,7 @@ resource "aws_security_group" "alb-security-group" { cidr_blocks = ["0.0.0.0/0"] } - tags = { - Name = "ALB Security group" - } -} \ No newline at end of file + tags = { + Name = "ALB Security group" + } + } \ No newline at end of file diff --git a/code-issue-examples/scala/test.scala b/code-issue-examples/scala/test.scala index 2026ad4..d385ee1 100644 --- a/code-issue-examples/scala/test.scala +++ b/code-issue-examples/scala/test.scala @@ -1,8 +1,8 @@ -object OrderService { - def make ( - userService: UserService, - discountForProuduct: DiscountService, - bonusForPurchase: BonusesService, - productIdIsValid: ProductService - ): OrderService -} \ No newline at end of file + object OrderService { + def make ( + userService: UserService, + discountForProuduct: DiscountService, + bonusForPurchase: BonusesService, + productIdIsValid: ProductService + ): OrderService + } \ No newline at end of file From f0dd0d7c7b21437626ac8bc7c52ceabcb7e930da Mon Sep 17 00:00:00 2001 From: "tsun@codety.io" Date: Fri, 30 Aug 2024 00:39:46 -0700 Subject: [PATCH 3/3] Demo --- code-issue-examples/html/bad-html.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code-issue-examples/html/bad-html.html b/code-issue-examples/html/bad-html.html index c67f307..fbb3dd3 100644 --- a/code-issue-examples/html/bad-html.html +++ b/code-issue-examples/html/bad-html.html @@ -1,5 +1,5 @@ -
-
-
abc - \ No newline at end of file +
+
+
abc + \ No newline at end of file