Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Demo #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code-issue-examples/cpp/Sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
2 changes: 1 addition & 1 deletion code-issue-examples/cpp/cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion code-issue-examples/go/module-with-mod/hello.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package hello

func Hello() string {
var u3 = "initial"
var u3 = "initial"
var u4 = "initial"
return "Hello, world."
}
8 changes: 4 additions & 4 deletions code-issue-examples/html/bad-html.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<img src="a.txt">
<div id="1"></div>
<div id="1"></div>
<div>abc
<HTML></HTML>
<div id="1"></div>
<div id="1"></div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codety
CodetyBot:

  • ⚪ [generic] [indent] Expected indentation of 0 space but found 1 space.
  • ⚪ [AttributeValue] [no-duplicate-id] The id '1' is duplicated.

<div>abc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codety
CodetyBot:

  • ⚪ [generic] [indent] Expected indentation of 0 space but found 1 space.
  • ⚪ [Tag] [require-closing-tags] Missing closing tag for div.

<HTML></HTML>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codety
CodetyBot:

  • ⚪ [generic] [indent] Expected indentation of 4 space but found 1 space.
  • ⚪ [generic] [require-lang] Missing lang attribute in <html> tag.
  • ⚪ [Tag] [require-doctype] Missing <!DOCTYPE HTML>

16 changes: 8 additions & 8 deletions code-issue-examples/iac/terraform/vpc-3-layer-example/alb_sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -29,7 +29,7 @@ resource "aws_security_group" "alb-security-group" {
cidr_blocks = ["0.0.0.0/0"]
}

tags = {
Name = "ALB Security group"
}
}
tags = {
Name = "ALB Security group"
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codety
CodetyBot:

  • 🔴 [security] [CKV_AWS_23] Ensure every security group and rule has a description
  • 🔴 [security] [CKV_AWS_260] Ensure no security groups allow ingress from 0.0.0.0:0 to port 80

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com;

//unused imported depepdency
import java.util.List;
import java.util.List;
random1223 marked this conversation as resolved.
Show resolved Hide resolved
public class MyApi{
String abc = "hello";
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
public class MyScheduler{
String abc = "hello";

String abc = "hello";
public void testRun(String input){
intput = "got changed";
}
Expand Down
16 changes: 8 additions & 8 deletions code-issue-examples/scala/test.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
object OrderService {
def make (
userService: UserService,
discountForProuduct: DiscountService,
bonusForPurchase: BonusesService,
productIdIsValid: ProductService
): OrderService
}
object OrderService {
def make (
userService: UserService,
discountForProuduct: DiscountService,
bonusForPurchase: BonusesService,
productIdIsValid: ProductService
): OrderService
}