From 6502926c2fcd8df255c749e52acc57e5ca9b1189 Mon Sep 17 00:00:00 2001 From: dastrong-codiga <100973772+dastrong-codiga@users.noreply.github.com> Date: Sun, 8 Jan 2023 15:47:25 -0800 Subject: [PATCH 1/4] feat: codiga integration --- .husky/pre-push | 9 +++++++++ codiga.yml | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 .husky/pre-push create mode 100644 codiga.yml diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 0000000..857a75d --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,9 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +while read local_ref local_sha remote_ref remote_sha +do + npx @codiga/cli git-push-hook --remote-sha $remote_sha --local-sha $local_sha +done + +exit 0 diff --git a/codiga.yml b/codiga.yml new file mode 100644 index 0000000..ca0f09b --- /dev/null +++ b/codiga.yml @@ -0,0 +1,4 @@ +rulesets: + - jsx-a11y + - jsx-react + - react-best-practices \ No newline at end of file From f651aed2f5d5b3b4dc947221a91229d250387a62 Mon Sep 17 00:00:00 2001 From: dastrong-codiga <100973772+dastrong-codiga@users.noreply.github.com> Date: Sun, 8 Jan 2023 15:48:21 -0800 Subject: [PATCH 2/4] chore: test integration --- src/renderer/components/Test.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/renderer/components/Test.tsx diff --git a/src/renderer/components/Test.tsx b/src/renderer/components/Test.tsx new file mode 100644 index 0000000..306950c --- /dev/null +++ b/src/renderer/components/Test.tsx @@ -0,0 +1,21 @@ +console.info('dfdf'); + +const hasEnable = true; + +function checkIfUpdated() { + return true; +} + +// const isUpdated = checkIfUpdated() +const isUpdated = () => null; + +const hasValid = true; +const isInvalid = false; + +const hasValue = true; +const isNoValue = true; + +const isValid = 'true'; +const mini = false; + +const Hello = () => ; From 6f00bb2ec6225e71a3204e1031b18781512f3ff9 Mon Sep 17 00:00:00 2001 From: dastrong-codiga <100973772+dastrong-codiga@users.noreply.github.com> Date: Sun, 8 Jan 2023 15:50:13 -0800 Subject: [PATCH 3/4] chore: test integration --- .husky/pre-push | 0 src/renderer/components/Test.tsx | 2 ++ 2 files changed, 2 insertions(+) mode change 100644 => 100755 .husky/pre-push diff --git a/.husky/pre-push b/.husky/pre-push old mode 100644 new mode 100755 diff --git a/src/renderer/components/Test.tsx b/src/renderer/components/Test.tsx index 306950c..4f42e6f 100644 --- a/src/renderer/components/Test.tsx +++ b/src/renderer/components/Test.tsx @@ -19,3 +19,5 @@ const isValid = 'true'; const mini = false; const Hello = () => ; + +// dfdf From bd56069d2a32cc4910b0a220b6a9712e30f02e28 Mon Sep 17 00:00:00 2001 From: dastrong-codiga <100973772+dastrong-codiga@users.noreply.github.com> Date: Sun, 8 Jan 2023 15:51:00 -0800 Subject: [PATCH 4/4] revert: test integration --- src/renderer/components/Test.tsx | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/renderer/components/Test.tsx diff --git a/src/renderer/components/Test.tsx b/src/renderer/components/Test.tsx deleted file mode 100644 index 4f42e6f..0000000 --- a/src/renderer/components/Test.tsx +++ /dev/null @@ -1,23 +0,0 @@ -console.info('dfdf'); - -const hasEnable = true; - -function checkIfUpdated() { - return true; -} - -// const isUpdated = checkIfUpdated() -const isUpdated = () => null; - -const hasValid = true; -const isInvalid = false; - -const hasValue = true; -const isNoValue = true; - -const isValid = 'true'; -const mini = false; - -const Hello = () => ; - -// dfdf