From 5f19c8afe913207caf65d957e2be2fe6287798ab Mon Sep 17 00:00:00 2001 From: Anto Christopher Date: Tue, 21 Jun 2022 15:38:31 +0530 Subject: [PATCH 1/4] Update .deepsource.toml --- .deepsource.toml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 6a96b72c..94f1c296 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -5,21 +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-next/', - 'packages/demo-nuxt/', - 'packages/demo-typescript/' - ] - -[[transformers]] - name = "prettier" - enabled = true - -[[analyzers]] -name = "secrets" -enabled = true + plugins = [ + "react", + "vue" + ] \ No newline at end of file From a4eb9695bd35175eaba56cc80bd39a47005d00c2 Mon Sep 17 00:00:00 2001 From: Anto Christopher Date: Tue, 21 Jun 2022 15:44:36 +0530 Subject: [PATCH 2/4] Release test vue asset --- .deepsource.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 94f1c296..c0ecdb38 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -6,6 +6,5 @@ enabled = true [analyzers.meta] plugins = [ - "react", - "vue" + "react" ] \ No newline at end of file From 5fdf70e76d0007a31f93b3e93a549c70ea0a06a5 Mon Sep 17 00:00:00 2001 From: Anto Christopher Date: Tue, 21 Jun 2022 15:50:02 +0530 Subject: [PATCH 3/4] Add vitest --- .deepsource.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.deepsource.toml b/.deepsource.toml index c0ecdb38..822d9081 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -5,6 +5,7 @@ name = "javascript" enabled = true [analyzers.meta] + environment = ["vitest"] plugins = [ "react" ] \ No newline at end of file From 1b713f9a77e6db1c0fff571d63ebba028f75c49f Mon Sep 17 00:00:00 2001 From: Anto Christopher Date: Thu, 7 Jul 2022 18:00:43 +0530 Subject: [PATCH 4/4] Test --- index.js | 90 +------------------------------------------------------- 1 file changed, 1 insertion(+), 89 deletions(-) diff --git a/index.js b/index.js index 58ccb924..9f5fb105 100644 --- a/index.js +++ b/index.js @@ -1,89 +1 @@ -function isEven(x) { - if ((x = 2 || x % 2 == 0)) { - console.log(`${x} is even`); - } else console.log(`${x} is odd`); -} - -function isNumber(num) { - let x = undefined; - x = num % 2; - if (false) { - console.log("Number is false"); - } else if (!!x) { - console.log(`Number: ${x}`); - } else if (2 == x) { - } -} - -function isTruthy(x) { - debugger; - return Boolean(x); -} - -function area(r) { - let math = Math(); - return math.PI * r * r; -} - -function isFooAvailable(obj) { - console.log(`Value of obj[foo]: ${obj["foo"]}`); - return obj.hasOwnProperty("foo"); -} - -function findFooBar() { - var re = /=foo bar/; - re.test("foobar"); -} - -function consoleFoo(num) { - while (num != 3) { - break; - console.log(num--); - } -} - -function isGreaterThan(arr, x) { - if (Array.isArray(arr)) { - arr.map((n) => { - return !(n > x) ? n : arguments.callee(n - 1) * n; - }); - } -} - -function callHiEveryMinutes(x) { - if (!window && x) { - setTimeout("alert('Hi')", x * 1000); - } else window.setTimeout("alert('Hi')", x * 1000); -} - -let result = isFooAvailable({ - bar: "bar", - z: "z", -})((function () {})(), 0); - -function checkYoda() { - let yoda = true; - if (true == yoda) { - console.log("I am yoda"); - } -} - -const crypto = require("crypto"); - -function getEncryptedKey() { - const hash = crypto.createCipheriv( - "aes-192-ecb", - Buffer.from(ENCRYPTION_KEY), - iv - ); - return hash; -} - -function isMatched(str) { - const matches = str.match(/hasTheMagic/)[0] ? process(str) : null; - return matches; -} - -function commentCheck(){ - console.log("no comment") -} +debugger; \ No newline at end of file