From 7f27dbe7e401a00e544f57dd2a2a4eee72244557 Mon Sep 17 00:00:00 2001 From: Shruddha Bhat <77613385+shruddha-deepsource@users.noreply.github.com> Date: Fri, 2 Jul 2021 14:46:47 +0530 Subject: [PATCH 1/6] Enable Deepsource Secrets Analyzer --- .deepsource.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.deepsource.toml b/.deepsource.toml index e827bc35..b3103e69 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -17,3 +17,7 @@ enabled = true [[transformers]] name = "prettier" enabled = true + +[[analyzers]] +name = "secrets" +enabled = true From c55d0a0323199acd0341e63d9c4485a4095b593c Mon Sep 17 00:00:00 2001 From: DeepSource Bot Date: Mon, 19 Jul 2021 09:30:33 +0000 Subject: [PATCH 2/6] Update .deepsource.toml --- .deepsource.toml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index b3103e69..1fb08d91 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -5,19 +5,7 @@ name = "javascript" enabled = true [analyzers.meta] - environment = ['nodejs'] - plugins = ['react', 'vue'] - dialect = 'flow' - dependency_file_paths = [ - 'packages/demo-react/', - 'packages/demo-vue/', - 'packages/demo-typescript/' - ] - -[[transformers]] - name = "prettier" - enabled = true - -[[analyzers]] -name = "secrets" -enabled = true + plugins = [ + "vue", + "react" + ] \ No newline at end of file From 2de2901490b9eae46d2817b85633a074a9c41f3a Mon Sep 17 00:00:00 2001 From: DeepSource Bot Date: Thu, 29 Jul 2021 07:13:48 +0000 Subject: [PATCH 3/6] Update .deepsource.toml --- .deepsource.toml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 1fb08d91..e8c615cb 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -2,10 +2,4 @@ version = 1 [[analyzers]] name = "javascript" -enabled = true - - [analyzers.meta] - plugins = [ - "vue", - "react" - ] \ No newline at end of file +enabled = true \ No newline at end of file From 6c775e6334f61bb69d8dcdc77c6c7514ed384eba Mon Sep 17 00:00:00 2001 From: "deepsource-dev-autofix[bot]" <61578317+deepsource-dev-autofix[bot]@users.noreply.github.com> Date: Tue, 7 Sep 2021 06:19:52 +0000 Subject: [PATCH 4/6] Remove debugger statements --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b4cf9bf8..6efd8ede 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ function isNumber(num){ } function isTruthy(x) { - debugger; + return Boolean(x); }; From 8b07af05c583ee36782056331c540d0c3ff03188 Mon Sep 17 00:00:00 2001 From: Parth Sharma <86726240+parth-deepsource@users.noreply.github.com> Date: Tue, 16 Nov 2021 16:45:02 +0530 Subject: [PATCH 5/6] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6efd8ede..801eacc8 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ function isNumber(num){ let x = undefined x= num % 2 if(false) { - console.log("Number is false") + console.log("Number is false. ") } else if (!!x) { console.log(`Number: ${x}`) } else if(2 == x){} From 95aa7e3b580a739f2b13aa75878934bb4865eba1 Mon Sep 17 00:00:00 2001 From: Parth Sharma <86726240+parth-deepsource@users.noreply.github.com> Date: Mon, 26 Sep 2022 13:17:32 +0530 Subject: [PATCH 6/6] Update index.js --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 801eacc8..a0910003 100644 --- a/index.js +++ b/index.js @@ -83,3 +83,7 @@ function isMatched(str){ const matches = str.match(/hasTheMagic/)[0] ? process(str) : null; return matches } + +const mult = (x, y) { + return x * y +}