test(optimiser): add unit tests and fix linting for optimiser#4410
test(optimiser): add unit tests and fix linting for optimiser#4410thejus03 wants to merge 19 commits into
Conversation
…ng and venue coordinate validation
…case for venue coordinates
…nfiguration creation
…uration and README
|
@thejus03 is attempting to deploy a commit to the modsbot's projects Team on Vercel. A member of the Team first needs to authorize it. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4410 +/- ##
==========================================
+ Coverage 54.52% 56.76% +2.23%
==========================================
Files 274 317 +43
Lines 6076 7059 +983
Branches 1455 1699 +244
==========================================
+ Hits 3313 4007 +694
- Misses 2763 3052 +289 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…es and starting server conditionally
⏭️ Hacktron Security Check — SkippedReason: Unable to determine the PR author. The scan cannot proceed without a valid author. |
|
@greptile |
|
| "lint:optimiser:code": "cd api/optimiser && golangci-lint run . ./_*/", | ||
| "lint:optimiser:styles": "cd api/optimiser && golangci-lint fmt", |
There was a problem hiding this comment.
pnpm lint now requires golangci-lint on all developer machines
The existing "lint": "run-p \"lint:**\"" script uses a glob that matches any script whose name begins with lint:, including the newly added lint:optimiser:code and lint:optimiser:styles. This means running pnpm lint, pnpm check, or pnpm ci now silently requires golangci-lint to be installed. Frontend developers who run pnpm lint to check JS/TS changes will get a command-not-found failure if they don't have Go tooling set up. The CI correctly uses the individual commands, so this only affects local development.
Prompt To Fix With AI
This is a comment left during a code review.
Path: website/package.json
Line: 20-21
Comment:
**`pnpm lint` now requires `golangci-lint` on all developer machines**
The existing `"lint": "run-p \"lint:**\""` script uses a glob that matches any script whose name begins with `lint:`, including the newly added `lint:optimiser:code` and `lint:optimiser:styles`. This means running `pnpm lint`, `pnpm check`, or `pnpm ci` now silently requires `golangci-lint` to be installed. Frontend developers who run `pnpm lint` to check JS/TS changes will get a command-not-found failure if they don't have Go tooling set up. The CI correctly uses the individual commands, so this only affects local development.
How can I resolve this? If you propose a fix, please make it concise.There was a problem hiding this comment.
I think this is fine? Since there are explicit commands for linting just website frontend code (eg; pnpm lint:code). @jloh02
…nd directory iteration
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Resolves #4406
Summary
_models,_modules, and_solverpackages (hasConflict, copyState, scoreTimetableState, beamSearch helpers, mergeAndFilterModuleSlots, nusmods link serialization, etc.)_prefix (previously./...silently skipped them)package.jsonlint commands to explicitly list all packagesVenuesJson→VenuesJSON, error string capitalisation, wasted assignment, shadowed variables, type assertion safetyTest plan
pnpm start:optimiserpnpm lint:optimiser:codepasses with 0 issuespnpm lint:optimiser:stylesreports no formatting issues🤖 Generated with Claude Code