Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
50a45f2
fix(ci): fix mvnw permission denied and next lint workspace flag
DongDuong2001 Feb 18, 2026
3fb4722
fix(ci): set mvnw executable bit and normalize npm workspace flags
DongDuong2001 Feb 18, 2026
7bce2f9
fix(ci): use working-directory for next lint/build, use mvn instead o…
DongDuong2001 Feb 18, 2026
8963341
fix(ci): add eslint config for next lint and explicit jackson-databin…
DongDuong2001 Feb 18, 2026
1c02424
fix(ci): add H2 test config, fix contextLoads, fix CodeQL mvnw
DongDuong2001 Feb 18, 2026
f8befc2
fix(ci): resolve contextLoads failure and lint invalid directory error
DongDuong2001 Feb 18, 2026
6e22d95
fix(ci): fix lint path passthrough and Spring Boot context load failure
DongDuong2001 Feb 18, 2026
b0bb329
Potential fix for code scanning alert no. 1: Unused variable, import,…
DongDuong2001 Feb 18, 2026
30357ea
fix(ci): fix ESLint violations and Spring Boot OIDC discovery at startup
DongDuong2001 Feb 18, 2026
5e126b7
fix(ci): bypass npm workspace arg-forwarding bug and use @MockBean fo…
DongDuong2001 Feb 18, 2026
05c1b97
chore(deps): bump eslint from 10.0.0 to 10.0.1 (#26)
dependabot[bot] Feb 24, 2026
3ad1b4e
chore(deps): bump lucide-react from 0.574.0 to 0.575.0 (#25)
dependabot[bot] Feb 24, 2026
a832385
chore(deps): bump @types/node from 25.2.3 to 25.3.0 (#24)
dependabot[bot] Feb 24, 2026
f031b09
chore(deps): bump the tailwind-ecosystem group with 2 updates (#23)
dependabot[bot] Feb 24, 2026
019225e
chore(deps): bump lucide-react from 0.574.0 to 0.575.0 in /apps/web (…
dependabot[bot] Feb 24, 2026
2cd7d0c
chore(deps): bump org.springframework.boot:spring-boot-starter-parent…
dependabot[bot] Feb 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
run: npm ci

- name: Run ESLint
run: npm run lint --workspace=apps/web
working-directory: apps/web
run: npx next lint

- name: Build Next.js application
run: npm run build --workspace=apps/web
working-directory: apps/web
run: npm run build
env:
# Provide stub values so the build doesn't fail on missing env vars
GOVERNANCE_API_URL: http://localhost:8080
Expand All @@ -73,7 +75,7 @@ jobs:

- name: Run Maven tests
working-directory: services/governance-api
run: ./mvnw test --no-transfer-progress
run: mvn test --no-transfer-progress
env:
SPRING_PROFILES_ACTIVE: test

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Build Java service for CodeQL
if: matrix.language == 'java-kotlin'
working-directory: services/governance-api
run: ./mvnw clean compile --no-transfer-progress -DskipTests
run: mvn clean compile --no-transfer-progress -DskipTests

# ── Auto-build for JavaScript (CodeQL handles TS/JS automatically) ──
- name: Autobuild (JavaScript/TypeScript)
Expand Down
16 changes: 16 additions & 0 deletions apps/web/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
Comment on lines +1 to +3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

cat apps/web/package.json | jq '.devDependencies | has("@eslint/eslintrc")'

Repository: lab68dev/nexus-guard

Length of output: 69


🏁 Script executed:

cat apps/web/package.json | jq '.dependencies, .devDependencies, .peerDependencies'

Repository: lab68dev/nexus-guard

Length of output: 488


Add @eslint/eslintrc as an explicit devDependency.

FlatCompat is imported directly from @eslint/eslintrc (line 3), but @eslint/eslintrc is not explicitly listed in devDependencies. It is only pulled in transitively via eslint-config-next. A future dependency update could remove this transitive dependency and break this import. Add @eslint/eslintrc as an explicit devDependency in apps/web/package.json.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/web/eslint.config.mjs` around lines 1 - 3, The FlatCompat import from
`@eslint/eslintrc` is relied on but that package is only a transitive dependency;
add "@eslint/eslintrc" to apps/web package.json devDependencies with a version
compatible with your eslint-config-next (or pin a recent stable release), run
your package manager to install, and commit the updated package.json and
lockfile so FlatCompat import remains stable.


const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
];

export default eslintConfig;
10 changes: 5 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
"next": "^16.0.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"lucide-react": "^0.574.0",
"lucide-react": "^0.575.0",
"clsx": "^2.1.1",
"@nexusguard/shared-types": "*"
},
"devDependencies": {
"@types/node": "^25.2.3",
"@types/node": "^25.3.0",
"@types/react": "^19.1.0",
"@types/react-dom": "^19.1.0",
"typescript": "^5.7.0",
"tailwindcss": "^4.0.0",
"@tailwindcss/postcss": "^4.0.0",
"tailwindcss": "^4.2.0",
"@tailwindcss/postcss": "^4.2.0",
"postcss": "^8.5.0",
"eslint": "^10.0.0",
"eslint": "^10.0.1",
"eslint-config-next": "^16.0.0"
}
}
4 changes: 2 additions & 2 deletions apps/web/src/app/dashboard/policies/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plus, ToggleLeft, ToggleRight, Pencil, Trash2 } from "lucide-react";
import { ToggleLeft, ToggleRight, Pencil, Trash2 } from "lucide-react";
import type { SafetyPolicy, PolicyType, PolicySeverity } from "@nexusguard/shared-types";
import { CreatePolicyForm } from "@/components/create-policy-form";

Expand Down Expand Up @@ -80,7 +80,7 @@ function severityBadge(severity: PolicySeverity) {
return map[severity];
}

function typeBadge(type: PolicyType) {
function typeBadge(_type: PolicyType) {
return "ng-badge bg-ng-gray-100";
}

Expand Down
Loading
Loading