From 3eac2702b5b08f88cbce6d1307abab1b92780b35 Mon Sep 17 00:00:00 2001
From: jihye1 <36979920+jihye1@users.noreply.github.com>
Date: Thu, 2 Mar 2023 11:17:12 +0900
Subject: [PATCH 1/6] Update code-quality.js
---
src/js/code-quality.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/js/code-quality.js b/src/js/code-quality.js
index faa0b88..2fe83bd 100644
--- a/src/js/code-quality.js
+++ b/src/js/code-quality.js
@@ -207,3 +207,13 @@ Hello.propTypes = {
name: PropTypes.string,
age: PropTypes.number // USELESS_PROP_TYPES alarm because this property 'age' is not used.
};
+
+class Test {
+ data = 'data';
+ foo() {
+ console.log(this.data);
+ }
+ bar() {
+ this.foo.call(this); // USELESS_CALL alarm
+ }
+}
From fa7a2ad2ce30976ca242a47ccb3db497a5e3ef12 Mon Sep 17 00:00:00 2001
From: jihye1 <36979920+jihye1@users.noreply.github.com>
Date: Thu, 2 Mar 2023 11:17:30 +0900
Subject: [PATCH 2/6] Update code-quality.js
---
src/js/code-quality.js | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/src/js/code-quality.js b/src/js/code-quality.js
index 2fe83bd..793087c 100644
--- a/src/js/code-quality.js
+++ b/src/js/code-quality.js
@@ -194,20 +194,6 @@ function foo(url) {
target = url.replace(/\.|\?|\&|\/|\=|\:|\-|\s/gi, "");
}
-import React from 'react';
-import PropTypes from 'prop-types';
-
-class Hello extends React.Component {
- render() {
- return
Hello, {this.props.name}
;
- }
-}
-
-Hello.propTypes = {
- name: PropTypes.string,
- age: PropTypes.number // USELESS_PROP_TYPES alarm because this property 'age' is not used.
-};
-
class Test {
data = 'data';
foo() {
From cc7d3e680cec54f117514d4c9515251ed79f9ad0 Mon Sep 17 00:00:00 2001
From: jihye1 <36979920+jihye1@users.noreply.github.com>
Date: Thu, 2 Mar 2023 11:18:15 +0900
Subject: [PATCH 3/6] Update react-rules.js
---
src/js/react-rules.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/js/react-rules.js b/src/js/react-rules.js
index c25ecb9..bdb25dd 100644
--- a/src/js/react-rules.js
+++ b/src/js/react-rules.js
@@ -214,3 +214,14 @@ Hello.propTypes = {
name: PropTypes.string,
age: PropTypes.number // USELESS_PROP_TYPES alarm because this property 'age' is not used.
};
+
+export class Hello extends React.Component {
+ render() {
+ return (
+
+ /* This is a comment */ {/* JSX_BAD_COMMENT alarm because this text is recognized as a JSX child instead of a comment. */}
+
// is a double slash.
{/* JSX_BAD_COMMENT alarm because this text in div element is recognized as a JSX child instead of a comment. */}
+
+ );
+ }
+}
From 9906eab22d1b70e1971ce06284cc438ce356a845 Mon Sep 17 00:00:00 2001
From: jihye1 <36979920+jihye1@users.noreply.github.com>
Date: Thu, 2 Mar 2023 11:24:00 +0900
Subject: [PATCH 4/6] Update code-quality.js
---
src/js/code-quality.js | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/js/code-quality.js b/src/js/code-quality.js
index 793087c..87fa9f1 100644
--- a/src/js/code-quality.js
+++ b/src/js/code-quality.js
@@ -193,13 +193,3 @@ function foo(url) {
var target = url + "user" + user; // UNUSED_VAR_ASSIGN alarm
target = url.replace(/\.|\?|\&|\/|\=|\:|\-|\s/gi, "");
}
-
-class Test {
- data = 'data';
- foo() {
- console.log(this.data);
- }
- bar() {
- this.foo.call(this); // USELESS_CALL alarm
- }
-}
From 90264f5dd11ec2afae8a41f08671f05faafc7f78 Mon Sep 17 00:00:00 2001
From: jihye1 <36979920+jihye1@users.noreply.github.com>
Date: Thu, 2 Mar 2023 11:24:43 +0900
Subject: [PATCH 5/6] Create test.js
---
src/js/test.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 src/js/test.js
diff --git a/src/js/test.js b/src/js/test.js
new file mode 100644
index 0000000..4e878a8
--- /dev/null
+++ b/src/js/test.js
@@ -0,0 +1,15 @@
+
+class Test {
+ data = 'data';
+ foo() {
+ console.log(this.data);
+ }
+ bar() {
+ this.foo.call(this); // USELESS_CALL alarm
+ }
+}
+function a() { return 1; } // DUPLICATE_DECL alarm. This function declaration is ignored.
+function a(b) { return b; }
+
+var foo;
+var foo; // DUPLICATE_DECL alarm
From 17b3440247d3636a693b923903ab60e8ec4fcc74 Mon Sep 17 00:00:00 2001
From: jihye1 <36979920+jihye1@users.noreply.github.com>
Date: Mon, 10 Jul 2023 14:28:01 +0900
Subject: [PATCH 6/6] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 62e7160..f2279b1 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# test
test repository
-[](https://stage.deepscan.io/dashboard#view=project&tid=6494&pid=23671&bid=721392)
+[](https://deepscan.io/dashboard#view=project&tid=20255&pid=25078&bid=777497)