ci(technical debt): Added Fallow for technical debt analysis
Some checks failed
ci / ci (22) (push) Failing after 4s

This commit is contained in:
Nicolas HOARAU 2026-06-10 23:21:46 +04:00
parent 8970f46a80
commit 89c3046b88
4 changed files with 27 additions and 1 deletions

14
.fallowrc.json Normal file
View file

@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/fallow-rs/fallow/main/schema.json",
"entry": ["src/index.{js,jsx,mjs}", "src/main.{js,jsx,mjs}"],
"workspaces": {
"packages": ["apps/*", "packages/*"]
},
"duplicates": {
"minOccurrences": 3,
"minLines": 5,
"mode": "semantic",
"ignore": ["**/lib/**", "**/legacy/**", "**/__generated__/**", "**/generated/**"]
},
"rules": {}
}

View file

@ -38,3 +38,11 @@ jobs:
- name: Typecheck - name: Typecheck
run: pnpm check-types run: pnpm check-types
- name: Audit security (dependencies)
run: pnpm audit --audit-level=moderate
- name: Analyze codebase health (technical debt)
uses: fallow-rs/fallow@v2
with:
format: sarif

1
.gitignore vendored
View file

@ -38,3 +38,4 @@ yarn-error.log*
# Misc # Misc
.DS_Store .DS_Store
*.pem *.pem
.fallow/

View file

@ -1,8 +1,11 @@
import { NestFactory } from "@nestjs/core"; import { NestFactory } from "@nestjs/core";
import { AppModule } from "./app.module"; import { AppModule } from "./app.module";
const DEFAULT_PORT = 3001;
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
await app.listen(process.env.PORT ?? 3001); await app.listen(process.env.PORT ?? DEFAULT_PORT);
} }
// eslint-disable-next-line @typescript-eslint/no-floating-promises
bootstrap(); bootstrap();