Spaces:
Sleeping
Sleeping
Commit History
-
fix: correct regex backreference in infinite recursion detection - enable API functionality
8455548 -
WIP: removing bad regex patterns
b850afb -
feat: add confidence scores, multi-language support, and export
05cb78e -
feat: scan for ALL bugs, not just first one - comprehensive analysis
BACKEND CHANGES: - New analyze_code_comprehensively() finds ALL bugs instead of stopping at first - Returns list of bugs sorted by severity (most critical first) - Detects many more Python-specific bugs NEW PYTHON BUG DETECTIONS: - Mutable default arguments (Severity 3) - Modifying list while iterating (Severity 3) - Shadowing built-ins like list/dict (Severity 2) - Missing return statements (Severity 2) - Race conditions in threading (Severity 3) - Bare except clauses (Severity 2) - Type errors (string + int) (Severity 2) - Missing error handling (Severity 2) - Inefficient nested loops O(n²) (Severity 2) - Infinite recursion (Severity 3) - Logical errors (identical branches) (Severity 2) API RESPONSE FORMAT: { 'bugs_found': 11, 'bugs': [...all bugs...], 'primary_bug': {...most critical bug...} } FRONTEND CHANGES: - Updated renderResult() to handle multiple bugs - Shows bug count if multiple detected - Displays most critical bug (primary_bug) - Backward compatible with old sin…d2ce69f -
feat: expand code analysis to 20+ bug types
Add comprehensive detection for: SECURITY (Severity 5): - SQL injection - Command injection - Code execution (eval, exec, pickle) - Hardcoded credentials SECURITY (Severity 4): - API keys/tokens - Missing input validation - Path traversal - XSS vulnerabilities - Weak random numbers LOGIC BUGS: - Division by zero - Null/None dereference - Infinite loops - Off-by-one errors - Resource leaks - Missing error handling - Unreachable code TYPE & COMPARISON: - Loose equality (JavaScript) - Type checking errors - Redundant checks STYLE: - var instead of const/let - Deprecated functions - Print instead of logging All 22 test cases now pass successfully.4187775 -
fix: simplify and improve code analysis patterns
- Replace complex regex with simpler string matching for SQL injection detection - Fix hardcoded password/secret detection patterns - Improve off-by-one and type coercion bug detection - Test all patterns locally - all pass - Now correctly analyzes: SQL injection, hardcoded secrets, API keys, logic errors, and style issues2c08a95 -
fix: correct FastAPI error handling and endpoint responses
- Fix HTTPException usage for proper error responses - Improve frontend error handling and logging - Ensure /api/review endpoint returns valid JSON - Remove test file from tracking1fc2334 -
feat: mandatory language selection and improved code analysis
- Add language selector requirement (must explicitly choose language) - Enhance mock code analysis with more bug patterns (security, logic, style) - Add /api/review backend endpoint for real analysis - Improve error messages and validation - Support Python, JavaScript, and Java language detection822c184 -
fix: remove invalid CodeReviewState argument from create_fastapi_app
8869da8 -
fix: resolve create_fastapi_app positional argument error
358905d -
feat: serve index.html beautifully on root route
bf5444d -
feat: complete pivot to strictly compliant OpenEnv hackathon submission
5235bfa