From f6bfca21bb73c2500b9fa3cf0ce9de495d59a18e Mon Sep 17 00:00:00 2001 From: Ryan Meline Date: Wed, 13 May 2026 00:56:11 -0700 Subject: [PATCH 1/7] Added Radon for cyclomatic complexity test --- backend/requirements.txt | Bin 328 -> 346 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/backend/requirements.txt b/backend/requirements.txt index e77af21f3686bbeb8343fefa84bd89bbb7a9042b..b524d51a2c4942a2d82d3dbcdd5f50feed7f6f95 100644 GIT binary patch delta 26 fcmX@Xbc<<&2cr-#0~bRPLn1>8Lq0 Date: Wed, 13 May 2026 01:25:34 -0700 Subject: [PATCH 2/7] Added eslint config --- frontend/.eslintrc.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 frontend/.eslintrc.json diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json new file mode 100644 index 0000000..88d60a0 --- /dev/null +++ b/frontend/.eslintrc.json @@ -0,0 +1,12 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "ecmaFeatures": { + "jsx": true + } + }, + "rules": { + "complexity": ["warn", 1] + } +} From ce6fdfdf0fae675c16b7eabb93f2394cd2c08fa8 Mon Sep 17 00:00:00 2001 From: Ryan Meline Date: Wed, 13 May 2026 12:00:26 -0700 Subject: [PATCH 3/7] Automated cyclomatic complexity testing --- .github/workflows/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0109f4e..484d130 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -22,3 +22,9 @@ jobs: # - name: Run React tests # run: docker compose exec frontend npm test -- --watchAll=false + + - name: Frontend Cyclomatic Complexity + run: docker compose exec frontend npx eslint src/ + + - name: Backend Cyclomatic Complexity + run: docker compose exec backend radon cc api/ -s -a From bf85702f45905bcc1de20188146b6c6961fabce3 Mon Sep 17 00:00:00 2001 From: Ryan Meline Date: Wed, 13 May 2026 12:04:09 -0700 Subject: [PATCH 4/7] Removed cyclomatic complexity automation --- .github/workflows/action.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 484d130..0109f4e 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -22,9 +22,3 @@ jobs: # - name: Run React tests # run: docker compose exec frontend npm test -- --watchAll=false - - - name: Frontend Cyclomatic Complexity - run: docker compose exec frontend npx eslint src/ - - - name: Backend Cyclomatic Complexity - run: docker compose exec backend radon cc api/ -s -a From 316543897a5d6227df754e84a35d448090771c07 Mon Sep 17 00:00:00 2001 From: Ryan Meline Date: Wed, 13 May 2026 12:06:02 -0700 Subject: [PATCH 5/7] Added cyclo complexity commands --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 5888ec3..b1d3ceb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # arch-vim +# Cyclomatic Complexity Commands: +While containers are running +``` +docker compose exec -it frontend npx eslint src/ +docker compose exec -it backend radon cc api/ -s -a +``` + ## Docker commands From b24d67659c5b105c45986aa8b8becde8d607bb0b Mon Sep 17 00:00:00 2001 From: Ryan Meline Date: Wed, 13 May 2026 12:44:54 -0700 Subject: [PATCH 6/7] Added back automation --- .github/workflows/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0109f4e..7d58712 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -22,3 +22,9 @@ jobs: # - name: Run React tests # run: docker compose exec frontend npm test -- --watchAll=false + + - name: Frontend Cyclomatic complexity test + run: docker compose exec frontend npx eslint src/ + + - name: Backend Cyclomatic Complexity test + run: docker compose exec backend radon cc api/ -s -a \ No newline at end of file From 5592ec19d26c1c0f1791e7cc5d5f99cf8d94d378 Mon Sep 17 00:00:00 2001 From: Ryan Meline Date: Wed, 13 May 2026 12:52:41 -0700 Subject: [PATCH 7/7] Fixed capitalization --- .github/workflows/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 7d58712..65aed22 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -23,8 +23,8 @@ jobs: # - name: Run React tests # run: docker compose exec frontend npm test -- --watchAll=false - - name: Frontend Cyclomatic complexity test + - name: Frontend Cyclomatic Complexity Test run: docker compose exec frontend npx eslint src/ - - name: Backend Cyclomatic Complexity test + - name: Backend Cyclomatic Complexity Test run: docker compose exec backend radon cc api/ -s -a \ No newline at end of file