• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

doomcrewinc / foaas
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/npm_and_yarn-4265e88a4c
DEFAULT BRANCH: master
Repo Added 04 May 2025 12:26AM UTC
Files 93
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feat/error-handling-and-validation
branch: feat/error-handling-and-validation
CHANGE BRANCH
x
Reset
  • feat/error-handling-and-validation
  • FUCK/circleci
  • FUCK/fuckitybyebye
  • bugfix/best-practices-fixes
  • bugfix/open-redirect
  • dependabot/npm_and_yarn/npm_and_yarn-4265e88a4c
  • dependabot/npm_and_yarn/npm_and_yarn-96c788614a
  • dependabot/npm_and_yarn/npm_and_yarn-cab25fcd96
  • feat/badging
  • feat/fix-version
  • feat/fuck-forgot-the-badge
  • feat/resource-integrity
  • github-work
  • hotfix/fix_tests
  • master
  • snyk-fix-38ea1ae5714ca451f1d817aaede0a246
  • snyk-fix-468e26aa1113438c5d299377538b30dd
  • snyk-fix-b92f604ad76abece6d08464b3b05a244
  • snyk-fix-c17989cee1bef65981ecced0e9fcddb0
  • snyk-fix-d2eb6eaa49fecacc595bd75b37b19a84
  • snyk-upgrade-1a939043e5489802e574b66b437bafa5
  • snyk-upgrade-4425820a7da8b068894fe05f82014559
  • snyk-upgrade-64e5db36e7f659538a8e7650d076b7a0
  • snyk-upgrade-6a23dd282cf3ca42d11ce0c0c4767973
  • snyk-upgrade-913800ac0516c71fa7d3eca420b34f92
  • snyk-upgrade-95ec4831eb5f0d8e4579ea3f9cdbe091
  • snyk-upgrade-a264e474518451ae8cde9889743009a1
  • snyk-upgrade-aaab478d8b6488f65cce98f8f51bb545
  • snyk-upgrade-be20f22f496e7ff09882052e44a2a495
  • snyk-upgrade-d46b61e30a1c2f4c1651911255a7a96b
  • snyk-upgrade-e2621aa3235b13b933e7ed442cdee7a8

16 Oct 2025 04:55AM UTC coverage: 100.0%. Remained the same
69

push

circleci

doomcrewinc
Add error handling, environment validation, and input validation

This PR implements medium-risk improvements for security and stability:

**1. Centralized Error Handling Middleware**
- Created lib/errorHandler.js with 4-parameter error middleware
- Catches unhandled errors before they crash the server
- Logs errors with full context (stack, URL, IP, user agent)
- Hides error details in production, shows them in development
- Positioned before 622 fallback handler

**2. Environment Variable Validation**
- Created lib/env.js using envalid for schema validation
- Validates PORT, ENV, NODE_ENV, LOG_LEVEL, DEBUG
- Prevents runtime failures from misconfiguration
- Provides clear error messages for invalid values
- Updated all process.env access to use validated env object

**3. Input Validation for Route Parameters**
- Created lib/validators.js using express-validator
- Validates and sanitizes route parameters
- Prevents XSS attacks with sanitizer integration
- Max length enforcement (500 chars)
- Returns 400 with validation details on error
- Applied to default /:thing/:from route

**Testing**
All 461 specs passing, 0 failures.

**Dependencies Added**
- envalid: ^8.1.0 (environment validation)
- express-validator: ^7.2.1 (input validation)

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

461 of 461 relevant lines covered (100.0%)

1.21 hits per line

Relevant lines Covered
Build:
Build:
461 RELEVANT LINES 461 COVERED LINES
1.21 HITS PER LINE
Source Files on feat/error-handling-and-validation
  • Tree
  • List 93
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
69 feat/error-handling-and-validation Add error handling, environment validation, and input validation This PR implements medium-risk improvements for security and stability: **1. Centralized Error Handling Middleware** - Created lib/errorHandler.js with 4-parameter error middleware... push 16 Oct 2025 04:56AM UTC doomcrewinc circleci
100.0
See All Builds (198)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc