DocsReference
Supported languages & frameworks
Which languages, infrastructure files and frameworks repository analysis reads, and what it reads for each.
Repository analysis reads source files and project files without running or building anything. How much it can tell you depends on the language: every language below gets the import graph, the Architecture tab, the Files map and code health scores. Infrastructure files (Terraform, pipelines, Dockerfiles and more) are scored too, below. Files in other languages still count in the totals, but are not connected in the graph.
Languages
| Language | Files read | Project files read | Code health |
|---|---|---|---|
| Rust | .rs |
Cargo.toml |
Yes |
| TypeScript | .ts, .tsx, .mts, .cts |
package.json, tsconfig.json |
Yes |
| JavaScript | .js, .jsx, .mjs, .cjs |
package.json |
Yes |
| Python | .py |
pyproject.toml, setup.py, setup.cfg, requirements.txt |
Yes |
| Java | .java |
pom.xml, build.gradle |
Yes |
| Kotlin | .kt, .kts |
build.gradle.kts |
Yes |
| Go | .go |
go.mod |
Yes |
| C# | .cs |
.csproj |
Yes |
| PHP | .php |
composer.json |
Yes |
| C | .c, .h |
CMakeLists.txt, compile_commands.json |
Yes |
| C++ | .cc, .cpp, .cxx, .hpp, .hh, .hxx and similar |
CMakeLists.txt, compile_commands.json |
Yes |
Some notes on how imports are resolved:
- Rust imports are resolved to the item they name, including
#[path]modules and re-exports. - TypeScript and JavaScript follow
tsconfig.jsonpaths,baseUrlandextends, and resolve sibling workspace packages to their entry file. Each import is marked runtime or type-only, which is what the Imports filter in the Architecture tab uses. - Java and Kotlin share one resolver, so imports between Kotlin and Java files in the same project are connected.
*.gradle.ktsfiles are treated as build files, not sources. - C and C++ connect
#includedirectives to files, using include directories fromcompile_commands.jsonorCMakeLists.txtwhen present.
Code health scores need per-function measurements (complexity, nesting, parameters, class cohesion), which exist today for Rust, TypeScript, JavaScript, Python, Java, Kotlin, Go, C#, PHP, C and C++ (C is measured with the C++ grammar). Go methods are grouped by their receiver type, since Go declares them outside the type. The Code health page lists the languages it measured and how many files are in other languages.
Infrastructure and DevOps files
Files that configure how software is built and run are scored on the Code health page too. They are not part of the import graph; Rusty finds them by name and content anywhere in the repository (skipping .gitignored folders, node_modules, .terraform and similar).
| Kind | Files recognized | Examples of what is checked |
|---|---|---|
| Terraform | *.tf |
Unpinned providers and modules, variables without a type or description, unused variables, locals and data sources, provisioners, security groups open to 0.0.0.0/0, hardcoded account ids, local module paths that do not exist |
| Terragrunt | terragrunt.hcl, root.hcl, *.terragrunt.hcl |
Unpinned sources, dependency loops between units, dependencies on directories that are not units, deep include chains, missing remote state |
| GitHub Actions | .github/workflows/*.yml, composite action.yml |
Actions not pinned to a commit, write-all permissions, untrusted event data in run scripts, pull_request_target checking out pull request code, missing timeouts, retired runners, needs loops and unknown jobs, references to local workflows that do not exist |
| GitLab CI, CircleCI, Azure Pipelines | .gitlab-ci.yml, .circleci/config.yml, azure-pipelines*.yml |
Images without a fixed tag, unpinned includes and orbs, long inline scripts |
| Dockerfile | Dockerfile, Dockerfile.*, *.dockerfile, Containerfile |
Floating base images, running as root, ADD instead of COPY, apt caches left in layers, secrets in ENV, copy-everything-before-install |
| Docker Compose | docker-compose*.yml, compose.y*ml |
Floating images, privileged services and host networking, depends_on loops |
| Kubernetes | YAML with apiVersion and kind |
Floating image tags, privileged containers, missing resource limits and probes |
| Ansible | playbooks and role task files | Tasks without names, shell and command tasks that always report a change |
| Shell | *.sh, *.bash, files with a shell shebang |
No set -euo pipefail, downloads piped into a shell, unquoted variables |
| Makefile | Makefile, *.mk |
Command targets missing from .PHONY, targets defined twice |
| Repository files | .gitignore, CODEOWNERS, .env, *.tfstate, private keys |
Missing ignore patterns, CODEOWNERS rules that match no file, committed state files, environment files and keys |
Secrets written as literals in pipeline variables, Compose environments and similar places are reported for every kind above. Findings in these files come with the same fix prompts as code findings, and files with Git history also get the change-history findings (bug-fix commits, ownership, files changed together with many others).
Silence one finding with a comment on its line or the line above: # rusty-ignore: rule_id (several rule ids can be separated with commas, or use all).
Frameworks
Frameworks connect files in ways that imports alone do not show: a route registered to a handler, a service injected into a controller, a component rendered by another. For each framework below, Rusty reads the literal forms from source and project files. Forms built at run time, such as computed paths, are reported as diagnostics instead of being guessed. An adapter runs only for packages that declare the framework.
| Framework | Language | What it reads |
|---|---|---|
| React | TypeScript, JavaScript | Components rendered by other components (JSX) |
| Next.js | TypeScript, JavaScript | App Router and Pages Router pages and API routes |
| Angular | TypeScript | Components used in templates, router entries, injected services |
| Vue | TypeScript, JavaScript | Single-file components used in templates, Vue Router entries |
| Express | TypeScript, JavaScript | Routes on express() apps and routers |
| NestJS | TypeScript | Controller routes, injected providers |
| Django | Python | URL patterns, models and their tables, management commands |
| Flask | Python | Routes on apps and blueprints |
| FastAPI | Python | Routes on apps and routers, Depends providers |
| Spring Boot | Java | Controller routes, injected beans, @Entity tables |
| ASP.NET Core | C# | Controller and minimal API routes, registered services, EF Core tables |
| Laravel | PHP | Routes, Eloquent models and their tables, Artisan commands, container bindings |
| Symfony | PHP | Attribute and YAML routes, Doctrine entities, console commands, autowired services |
| Gin | Go | Routes on engines and groups |
| Echo | Go | Routes on instances and groups |
| net/http | Go | HandleFunc and Handle patterns |
| Axum | Rust | Routes and their handlers |
| Actix Web | Rust | Route attributes and .route(...) registrations |
| Tauri | Rust | Commands registered with generate_handler! |
Spring Boot relations are read from Java sources only; Kotlin Spring code gets the import graph and code health, but not routes or injection yet.
Note
A relation is only drawn when the code states it literally. Where a framework works by naming convention (for example a table name derived from a class name), the relation is marked as a convention rather than as declared.
Missing a language or framework?
Open an issue on GitHub with the language or framework and, if you can, a public repository that uses it.