Code quality platform for managing technical debt and improving code health.
Claim your free access at GitHub Education Pack - look for CodeScene.
- Projects: https://codescene.io/projects
- Connect Repo: Projects → Add Project → Connect to GitHub/GitLab/Bitbucket
- Code Health: Aggregated metric analyzing 25+ code factors
- Technical Debt: Visualization and prioritization
- Automated Reviews: PR quality feedback
- IDE Extensions: Real-time code health in editor
- Delivery Performance: Track productivity bottlenecks
- Go to https://codescene.io/projects
- Click "Add Project"
- Connect your Git provider (GitHub, GitLab, Bitbucket, Azure)
- Select repository
- Configure analysis settings
VS Code:
# Install from VS Code Marketplace
ext install codescene.codescene-vscodeIntelliJ:
- Preferences → Plugins → Search "CodeScene"
Copy from templates/codescene/:
codescene.yml- Analysis configuration.codescene/- Project-specific settings
version: 2
analysis:
exclude_paths:
- "node_modules/**"
- "vendor/**"
- "*.min.js"
code_health:
enabled: true
hotspots:
enabled: true# .github/workflows/codescene-analysis.yml
name: CodeScene Analysis
on: [pull_request]
jobs:
codescene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: CodeScene Delta Analysis
uses: codescene/codescene-ci-cd@v1
with:
api-token: ${{ secrets.CODESCENE_API_TOKEN }}
project-id: ${{ vars.CODESCENE_PROJECT_ID }}CodeScene analyzes:
- Brain Methods: Complex functions with too much logic
- Deep Nesting: Excessive if/else/loop nesting
- Large Methods: Functions that are too long
- Code Duplication: Repeated code patterns
- Coupling: Dependencies between components
#!/bin/bash
# .git/hooks/pre-commit
# Run CodeScene check on staged files
codescene-cli analyze --staged
if [ $? -ne 0 ]; then
echo "CodeScene: Code health issues detected"
exit 1
fi- Focus on hotspots: Address issues in frequently changed files first
- Track trends: Monitor code health over time
- Set thresholds: Configure minimum code health scores for PRs
- Review refactoring: Use prioritized refactoring suggestions
- Exclude generated code: Don't analyze auto-generated files
CODESCENE_API_TOKEN=your_api_token
# Get from: https://codescene.io → User Settings → API Tokens
CODESCENE_PROJECT_ID=your_project_id
# Get from: Project URL or Settings