Skip to main content

Configuration

Configure Juro to match your project's specific compliance requirements.

Configuration File

Create a juro.config.json file in your project root:

{
"regulations": ["GDPR", "SOC2"],
"excludePatterns": ["node_modules/**", "dist/**"],
"customRules": "./custom-rules.json",
"severity": {
"high": true,
"medium": true,
"low": false
}
}

Environment Variables

# Set default regulations
export JURO_REGULATIONS="GDPR,SOC2,OWASP"

# Set scan path
export JURO_SCAN_PATH="./src"

# Enable debug mode
export JURO_DEBUG=true

Custom Rules

Define your own compliance rules:

{
"rules": [
{
"id": "custom-password-policy",
"name": "Password Policy Check",
"pattern": "password.*=.*['\"][^'\"]{0,7}['\"]",
"severity": "HIGH",
"message": "Passwords must be at least 8 characters"
}
]
}

Next Steps