-
Notifications
You must be signed in to change notification settings - Fork 0
chore: audit guardrails and observability (#290) #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
d947daa
fe28ae3
c00609d
bf9f4e6
f26a73e
0c6a1a5
6cfc2be
20df34f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import js from '@eslint/js'; | ||
| import globals from 'globals'; | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| export default [ | ||
| js.configs.recommended, | ||
| { | ||
| languageOptions: { | ||
| ecmaVersion: 'latest', | ||
| sourceType: 'module', | ||
| globals: { | ||
| ...globals.node, | ||
| }, | ||
| }, | ||
| rules: { | ||
| 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], | ||
| }, | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| { | ||
| ignores: ['node_modules/', 'coverage/'], | ||
| }, | ||
| ]; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ | |
| "scripts": { | ||
| "test": "vitest run", | ||
| "test:watch": "vitest", | ||
| "test:coverage": "vitest run --coverage --exclude test/contracts.integration.test.js --exclude test/content.test.js --exclude test/version.test.js", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, find and read package.json to verify the devDependencies
find . -name "package.json" -type f -not -path "*/node_modules/*" | head -5Repository: flyingrobots/git-mind Length of output: 79 🏁 Script executed: # Read the package.json to check devDependencies
cat -n package.json | grep -A 10 "devDependencies"Repository: flyingrobots/git-mind Length of output: 272 🏁 Script executed: # Check if `@vitest/coverage-v8` exists in node_modules
ls -la node_modules/@vitest/ 2>/dev/null | head -20 || echo "No `@vitest` directory found or node_modules not available"Repository: flyingrobots/git-mind Length of output: 47 🏁 Script executed: # Check for vitest.config.js or similar config files
find . -name "vitest.config.*" -o -name "vite.config.*" | grep -v node_modulesRepository: flyingrobots/git-mind Length of output: 83 🏁 Script executed: # Check the actual test:coverage script line in detail
sed -n '20,30p' package.jsonRepository: flyingrobots/git-mind Length of output: 486 🏁 Script executed: # Read the vitest.config.js to check coverage configuration
cat -n vitest.config.jsRepository: flyingrobots/git-mind Length of output: 488 🏁 Script executed: # Check vitest documentation info - try to see what's in vitest's own config
# and whether coverage is pre-included or requires a separate package
rg "coverage" vitest.config.jsRepository: flyingrobots/git-mind Length of output: 118 🏁 Script executed: # Let's also check if there are any test files that might give us hints about coverage setup
ls -la test/ 2>/dev/null | head -20Repository: flyingrobots/git-mind Length of output: 1345 🏁 Script executed: # Double-check: Does --exclude affect coverage instrumentation in vitest?
# Let me search for any documentation or hints in the codebase about this
rg "coverage.exclude" . --type js --type json 2>/dev/null | head -10Repository: flyingrobots/git-mind Length of output: 47 🏁 Script executed: # Verify the full context around test:coverage script to see lines 20-30 properly
sed -n '20,35p' package.jsonRepository: flyingrobots/git-mind Length of output: 585
The The 🔧 Add the missing package "devDependencies": {
"eslint": "^9.0.0",
+ "@vitest/coverage-v8": "^3.0.0",
"prettier": "^3.0.0",
"vitest": "^3.0.0"
}Pin 🤖 Prompt for AI Agents
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @coderabbitai This was addressed in the same batch of commits:
Re: Evidence:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 343
✅ My review was working from incomplete context. Thank you for the detailed correction with evidence. The configuration is solid. |
||
| "lint": "eslint src/ bin/", | ||
| "format": "prettier --write 'src/**/*.js' 'bin/**/*.js'" | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.