Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.
Iris Code scans ten languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust. Every language gets the same core checks, such as secrets, security smells and duplicate code, but each also has its own way of writing functions, imports and debug output, and its own risks.This page explains, language by language, which files Iris Code reads, what it checks for beyond the shared checks, and where it deliberately holds back because it cannot be sure. Pick your language from the tabs below.
Compare health scores only within the same language and settings. A TypeScript file can lose points for things that do not exist in Go, Python, Ruby, C#, Java or Rust: any, @ts-ignore, missing return types and non-null assertions. An 80 in Go and an 80 in TypeScript are not the same 80, so ranking a mixed codebase by score across languages will mislead you.
TypeScript & JavaScript
Vue & Svelte
Go
Python
Ruby
C#
Java
Rust
Iris Code scans .js, .jsx, .mjs, .cjs, .ts and .tsx files with one reader for both languages. All six file types are treated as one family and share the same rules.Checks specific to TypeScript and JavaScript:
Unused imports - an import brings code in from another file. Any named, default or namespace import that the file never uses is reported. Java has this check too; the other languages do not report unused imports. See file analysis.
TypeScript type checks - uses of any, @ts-ignore comments, non-null assertions (!) and exported functions with no declared return type are each counted separately in the File tab. See TypeScript-specific checks for the full breakdown.
Debug prints - console.log, console.warn and console.error calls are reported in Code Lens and in the Code Smells section.
Iris Code does not format JavaScript or TypeScript. It reads your code and reports problems, and leaves layout to the formatter your editor uses, such as Prettier or the built-in TypeScript service. This is deliberate: formatting belongs to that tool, and Iris Code must not compete with it or quietly override the choice your repository has made.
A .vue or .svelte file is a single-file component: one file holding a component’s code, its markup and its styles. Iris Code takes out the code sections and checks them exactly like an ordinary TypeScript or JavaScript file. There is nothing to configure and no plugin to install.
Code sections only - Vue <script> and <script setup> blocks, and Svelte instance and module <script> blocks, are checked. <template>, Svelte markup and <style> are left out of every check, including duplicate detection, so markup never adds to a finding count or a duplication percentage.
Your own line numbers - every finding, iris-ignore suppression and duplicate range points at the line you see in your component file. A secret on line 11 of a .vue file is reported at line 11.
lang decides the rules - a component whose script says lang="ts" (or lang="typescript") is checked as TypeScript, so the TypeScript type checks apply. Any other component is checked as JavaScript. A script in a language Iris Code does not read, such as lang="coffee", is skipped rather than misread.
Top-level scripts only - a <script> tag inside <template>, <svelte:head> or a Svelte {#if} block is part of the page markup, not the component’s code, and is not checked.
Framework file names are respected - SvelteKit route files (+page.svelte, +layout.svelte, +server.ts and similar) are exempt from file-naming conventions, because the framework finds them by their exact name.
File naming by folder - for thresholds and scoring, a component counts as typescript or javascript according to its script tag. File naming can also follow path patterns, applied in order, so components/CheckoutPanel.vue can require PascalCase while composables/useCart.ts requires camelCase, even though both contain TypeScript. See File naming conventions.
Iris Code reads .go files with a reader built for Go. What it does differently for Go:
Functions - both top-level functions (func Name() and methods (func (r *T) Name() are found and listed with their line numbers
Third-party imports - a package counts as third-party when the first part of its path contains a dot (for example golang.org/x/... or pkg.example.com/...)
Debug prints - fmt.Print*, log.Print*, log.Fatal* and log.Panic* calls are reported in Code Lens and in the Code Smells section; the enableConsoleLogWarnings setting switches this on or off
No-exports warning - in Go, a function is visible to other packages when its name starts with a capital letter. Iris Code warns if a file has no such function
Unused Go modules - a workspace scan reads go.mod and reports any listed module that no .go file in the project imports
vendor/ folder - skipped automatically during workspace and folder scans
Iris Code reads .py files with a reader built for Python. What it does differently for Python:
Functions - every def, both top-level functions and class methods, is found and listed with its line number
Third-party imports - import pkg and from pkg import ... are both read; modules from Python’s standard library are left out automatically, so only real third-party packages appear
Debug prints - print() calls are reported in Code Lens and in the Code Smells section; the enableConsoleLogWarnings setting switches this on or off
No public functions warning - in Python, a name starting with _ is private by convention. Iris Code warns if every function in a file starts with _, because nothing in it is meant for other code to use
Unused Python packages - a workspace scan reads requirements.txt and pyproject.toml and reports any listed package that no .py file in the project imports
Skipped folders - __pycache__, .venv and venv are skipped automatically during workspace and folder scans
Parameter counting - self and cls are not counted when checking for long parameter lists
Ruby code lives in more kinds of file than most languages: a Gemfile has no extension, a Rake task uses .rake, and a Rails view is Ruby mixed into HTML. Iris Code recognises all of these, not only .rb files.Files that are checked:.rb, .rbw, .rake, .gemspec, .ru, .thor, .builder, .jbuilder, .rabl, .arb, .podspec, .erb, and .rhtml.Files with no extension are recognised by name: Gemfile, Rakefile, Vagrantfile, Capfile, Guardfile, Podfile, Brewfile, Berksfile, Puppetfile, Thorfile, Dangerfile, the Fastlane set (Fastfile, Appfile, Matchfile, Gymfile, Scanfile, Snapfile, Deliverfile, Pluginfile), and the .irbrc and .pryrc dotfiles.What Iris Code does differently for Ruby:
Methods - instance methods, class methods (def self.name), operator methods, and endless methods (def total = items.sum) are all found. Iris Code follows nested do/end blocks to find where a method really ends, so a method containing blocks is measured at its true length rather than stopping at the first end.
Text blocks and comments - heredoc bodies (including squiggly <<~), %w[] and %i[] literals, # comments and =begin/=end blocks are set aside before any check runs. So a puts that only appears inside a heredoc’s text is not counted as a real debug print.
Gems and requires - require and autoload calls count as imports, and a Gemfile or .gemspec adds the gems it lists. Requires from Ruby’s standard library are left out, so only real third-party dependencies count towards the import limit.
Debug prints - puts, print, p and pp at the start of a statement are reported; the enableConsoleLogWarnings setting switches this on or off.
method_missing without respond_to_missing? - defining one without the other means respond_to? and other ways of asking an object about itself give the wrong answer about which methods it handles. Iris Code reports the pair as incomplete.
God classes - a class with more methods than the configured limit is reported at its class line, with the class name and method count.
Rails mass assignment - request parameters passed straight into a model without require and permit are reported as an error. Without them, a user can set fields they should never be able to change. The risk lies in what the code leaves out, so it is easy to miss when reading the line.
ERB templates - in .erb and .rhtml files, the Ruby inside <% %> and <%= %> tags is checked and the surrounding HTML is left out, including from duplicate detection. Findings point at the line in the template itself, so a secret on line 14 of a view is reported at line 14.
Secrets detection, the nine security smells, duplicate detection, iris-ignore suppressions, gate rules and per-language languages.ruby overrides all work for Ruby the same way they do for every other language.
No unused-code detection in Ruby. Ruby looks up methods and constants while the program runs. A constant used only through send, const_get or Rails autoloading cannot be seen by reading the code. So Iris Code reports no unused imports or unused gems for Ruby, rather than reporting ones it cannot stand behind.Dependency and known-vulnerability (CVE) scanning does cover RubyGems when Gemfile.lock records the exact versions. Entries listed only in the Gemfile, without an exact version, are reported as not checked rather than clean.
Iris Code reads .cs code files and .csproj project files. The project file is treated as a list of settings and packages rather than as code. Iris Code reads the packages your project depends on from it and scans it for secrets. Its language version and warning level are build settings, so they are not reported as unexplained numbers the way they would be inside a method.What Iris Code does differently for C#:
Methods - methods, constructors, expression-bodied members and local functions are found, including constructors that chain through a : base(...) or : this(...) initialiser. A positional record is counted once, as a type.
Namespaces and packages - using, global using, using static and aliased using lines count as imports. System.* is left out, because .NET’s own library appears in every file and says nothing about what your code depends on. Microsoft.* is counted: EF Core, ASP.NET Core and the Extensions packages are third-party dependencies like any other.A .csproj adds its PackageReference entries. FrameworkReference entries that name the .NET runtime itself are left out.
Text in quotes - all five ways of writing text in C# are understood before any check runs: regular, verbatim (@"C:\logs\"), interpolated ($"...", $@"..."), raw ("""...""", with any number of quotes) and char literals. A Windows path or a block of JSON inside quotes cannot be mistaken for code.
Debug output - Console.Write*, Debug.Write* and Trace.Write* calls are reported in Code Lens and in the Code Smells section; the enableConsoleLogWarnings setting switches this on or off.
async void - an async method that returns void instead of Task gives the caller nothing to wait for and no way to catch its errors, so an error inside it crashes the whole program. Iris Code reports it as an error. Event handlers (On*, *Handler, *_Click and similar) are exempt, because the framework requires that form.
Catch-all error handlers - catch (Exception ex), catch (Exception) and a bare catch are reported, because they catch every error, including ones the code was never meant to handle. A when (...) filter shows deliberate, targeted handling and is exempt.
Long LINQ chains - five or more LINQ operators in one statement are reported. The count is per statement, not per line, because a chain is normally written one operator per line.
Large types - a class, record or struct with more methods than the configured limit, or longer than fileLengthThreshold lines, is reported at its declaration line with its name and method count.
Nesting - depth is measured from the method’s own opening brace. A method with its opening brace on a line of its own (Allman style, the C# default) measures the same as the identical method with the brace at the end of its first line.
Test projects - C# test files have no special separator in their name, so Iris Code recognises them by pattern: OrdersControllerTests.cs, OrderSpec.cs and anything inside a <Project>.Tests, .IntegrationTests or .UnitTests folder. Test credentials and localhost URLs there are not reported as problems in production code.
Renaming - renaming a .cs file does not update the type names, namespaces or project references inside it, so Iris Code warns you when you rename one.
Secrets detection, the nine security smells, duplicate detection, iris-ignore suppressions, gate rules and per-language languages.csharp overrides all work for C# the same way they do for every other language.Secrets are looked for in string and var declarations, in property initialisers and in project XML. <UserSecretsId> and MSBuild references such as $(ApiTokenFromCi) are the correct way to keep a credential out of the repository, so they are never reported.
No unused-code detection in C#. Dependency injection, reflection, partial classes and source generators all use code in ways that cannot be seen by reading it. So Iris Code reports no unused members or unused packages for C#, rather than reporting ones it cannot stand behind.NuGet dependency and known-vulnerability (CVE) scanning is available through the dependency table. For projects without packages.lock.json, only the packages listed directly in the project can be checked.
Iris Code reads .java code files and .properties settings files. A properties file is treated as settings rather than code: it is scanned for committed credentials, but its port numbers and log levels are not reported as unexplained numbers the way they would be inside a method.What Iris Code does differently for Java:
Methods - methods and constructors are found, including generic signatures, throws clauses and members squeezed onto a single line. A class written entirely on one line still has its methods found, so it does not quietly escape the length, parameter and nesting checks.
Text blocks and unicode escapes - both are understood before any check runs. A text block ("""...""") holding JSON does not have its braces mistaken for code. A \uXXXX escape is decoded first, the way the Java compiler (javac) decodes it, so an escaped quote really does start or end a piece of text wherever it appears.
Imports - import and import static both count. java.* and javax.* are left out, because Java’s own library appears in nearly every file and says nothing about what your code depends on. Everything else counts, including Spring and the rest of your dependencies.
Unused imports - Java is one of the few languages where this can be judged safely. An import only gives a type a short name for use while compiling, Java has no extension methods that could use an import without naming it, and javac itself warns about unused imports too.The check reads Javadoc comments, so an import used only in a {@link Foo} is left alone, because deleting it would break javadoc. Wildcard imports cannot be judged and are skipped rather than guessed at.
Debug output - System.out.print* and System.err.print* calls are reported in Code Lens and in the Code Smells section; the enableConsoleLogWarnings setting switches this on or off.
Catch-all error handlers - catch (Exception e) and catch (Throwable t) are reported, including the full java.lang. forms and a multi-catch ending in one of them. A catch for one specific error type is deliberate handling and is not reported. This is the same rule id C# uses, so one severity setting and one iris-ignore comment cover a codebase using both.
Running other programs - Runtime.getRuntime().exec and ProcessBuilder start other programs, so they are reported as a prompt to check every argument passed to them. This is kept separate from the eval rule, because Java has no way to run a piece of text as Java code in the sense that rule means.
Test folders - Gradle lets a project have any number of test folders (source sets), usually with names ending in Test. src/test, src/integTest, src/javaRestTest, src/internalClusterTest, src/testFixtures and similar folders are all recognised, as are *Tests.java, *TestCase.java and Maven’s failsafe *IT.java convention. Test credentials and localhost URLs there are not reported as problems in production code.
File names the framework expects - application.properties, application-dev.properties and messages.properties are exempt from file-naming conventions, because Spring and ResourceBundle look for them by their exact name. Renaming them would break the application.
Secrets detection, the nine security smells, duplicate detection, iris-ignore suppressions, gate rules and per-language languages.java overrides all work for Java the same way they do for every other language.Credentials are looked for in field and local variable declarations, in setter calls such as setPassword("..."), in Properties.put entries and in .properties keys.A committed spring.datasource.password is the most common Java credential leak. Its value has no recognisable format, so it is the check based on the setting’s name that catches it.
Iris Code reads .rs files with a reader built for Rust, and reads Cargo.lock to see which packages (crates) your project depends on.What Iris Code does differently for Rust:
Functions - free functions, associated functions and trait implementations are found, including pub, async, const, unsafe and extern "C" forms, generic parameters and where clauses. A trait method declared without a body is not counted as a function.
Lifetimes are not quotes - in &'a str the apostrophe marks a lifetime, not the start of a character. Reading it as a quote would hide real code up to the next apostrophe. Lifetimes appear throughout most Rust code, so this is handled before any check runs.
Raw strings, nested comments and raw identifiers - raw strings with any number of # marks (r#"..."#), byte strings, comments nested inside comments (which Rust allows and C does not) and raw identifiers (r#type is a name, not text) are all understood.
unwrap and expect - reported because they crash the program when an error occurs instead of handling it. The usual fix is ? or a match.
Explicit panics - panic!, todo! and unimplemented! are reported separately from unwrap, because the fix differs: unwrap leaves an error unhandled, while these stop the program on purpose.
Tests inside the file are exempt - Rust keeps tests in the same file as the code they test, which none of the other supported languages do. So the exemption applies to each #[cfg(test)] and #[test] item rather than to a whole file.Exempting the whole file would either let the production code off too or let nothing off. Without the exemption, unwrap findings would flood every well-tested file. Test credentials inside a test module are exempt for the same reason.
Debug output - println!, eprintln!, print!, eprint! and dbg! are reported; the enableConsoleLogWarnings setting switches this on or off.
Imports - use lines are counted, including nested groups such as use crate::{ui::{Button, Panel}, theme}. std, core and alloc are left out as Rust’s standard library, and crate, self and super because they point inside your own project.
Test and benchmark folders - tests/, benches/ and examples/ are standard Cargo folders and are treated as test code.
Secrets detection, the nine security smells, duplicate detection, iris-ignore suppressions, gate rules and per-language languages.rust overrides all work for Rust the same way they do for every other language.Credentials are looked for in let, const and static bindings and in struct fields, which is how Rust settings are usually written.
No unused-import detection in Rust. A trait has to be imported before its methods can be used, and its name is then never written again: use gpui::Styled; is what makes .bg(...) compile.That use cannot be seen by reading the code, and the Rust compiler does not warn about it either. So Iris Code reports no unused imports for Rust, rather than reporting ones it cannot stand behind. Tried on a real Rust codebase, the check produced roughly three findings per file, and nearly all of them were correct code.Cargo dependency and known-vulnerability (CVE) scanning is available through the dependency table. Cargo.lock gives the full list of packages, including the ones your dependencies bring in.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Iris Code","colors":{"primary":"#DF5F34","light":"#DF5F34","dark":"#DF5F34"},"logo":{"light":"https://mintcdn.com/iriscode/sf57Llzo3wydsM0z/logo/iris-logo-light.svg?fit=max\u0026auto=format\u0026n=sf57Llzo3wydsM0z\u0026q=85\u0026s=20fb61681b3e42c47263c92983df3be6","dark":"https://mintcdn.com/iriscode/sf57Llzo3wydsM0z/logo/iris-logo-dark.svg?fit=max\u0026auto=format\u0026n=sf57Llzo3wydsM0z\u0026q=85\u0026s=cf333e34d2eea3f0bbaf01e4c07611e0","href":"https://iriscode.co"},"favicon":"https://mintcdn.com/iriscode/VO0UckxEJTgzyj-1/logo/iris-icon.svg?fit=max\u0026auto=format\u0026n=VO0UckxEJTgzyj-1\u0026q=85\u0026s=e41b68e87273cb4b5a370d749747a8cf","navbar":{"primary":{"type":"button","label":"Install Free","href":"https://marketplace.visualstudio.com/items?itemName=davidjaja.iris-code"}},"seo":{"metatags":{"canonical":"https://docs.iriscode.co"}},"fonts":{"heading":{"family":"IBM Plex Sans"},"body":{"family":"IBM Plex Sans"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"iriscode","hasAudioNarration":false,"actualSubdomain":"iriscode","customDomains":["docs.iriscode.co"],"gitSource":{"type":"github","owner":"daiveedjay","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afdaa842d5b5666c1369972","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Documentation","count":67},{"language":"default","tag":"What Iris Code finds","count":15},{"language":"default","tag":"Reference","count":10},{"language":"default","tag":"Refactor playbook","count":7},{"language":"default","tag":"Configuration","count":6},{"language":"default","tag":"Blocking bad code","count":6},{"language":"default","tag":"Start here","count":6},{"language":"default","tag":"Editors","count":5},{"language":"default","tag":"Teams","count":5},{"language":"default","tag":"Cloud scanning","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#sidebar-content .sidebar-title,#header .eyebrow{text-transform:none!important}"}]}
{"page":{"pagePath":"features/language-support","slug":"/features/language-support","pageMetadata":{"title":"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust","sidebarTitle":"Language support","description":"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.","keywords":["C#","c sharp","csharp","c-sharp",".NET","dotnet","dotnet core","ASP.NET","ASP.NET Core",".cs",".csproj","MSBuild","NuGet","LINQ","async void","EF Core","Entity Framework","xUnit","NUnit","MSTest","Java","Spring","Spring Boot","Maven","Gradle",".java",".properties","Javadoc","Rust","Cargo","crates.io",".rs","unwrap","panic","golang","Rails","ERB","Gemfile","single-file component","SFC","TSX","JSX"],"href":"/features/language-support"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Note,Tab,Tabs}=_components;if(!Note)_missingMdxReference(`Note`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Iris Code scans ten languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust. Every language gets the same core checks, such as secrets, security smells and duplicate code, but each also has its own way of writing functions, imports and debug output, and its own risks.`}),`\n`,_jsx(_components.p,{children:`This page explains, language by language, which files Iris Code reads, what it checks for beyond the shared checks, and where it deliberately holds back because it cannot be sure. Pick your language from the tabs below.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Compare health scores only within the same language and settings.`}),` A TypeScript file can lose points for things that do not exist in Go, Python, Ruby, C#, Java or Rust: `,_jsx(_components.code,{children:`any`}),`, `,_jsx(_components.code,{children:`@ts-ignore`}),`, missing return types and non-null assertions. An 80 in Go and an 80 in TypeScript are not the same 80, so ranking a mixed codebase by score across languages will mislead you.`]})}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`TypeScript \u0026 JavaScript`,id:`typescript-%26-javascript`,children:[_jsxs(_components.p,{children:[`Iris Code scans `,_jsx(_components.code,{children:`.js`}),`, `,_jsx(_components.code,{children:`.jsx`}),`, `,_jsx(_components.code,{children:`.mjs`}),`, `,_jsx(_components.code,{children:`.cjs`}),`, `,_jsx(_components.code,{children:`.ts`}),` and `,_jsx(_components.code,{children:`.tsx`}),` files with one reader for both languages. All six file types are treated as one family and share the same rules.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Checks specific to TypeScript and JavaScript:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unused imports`}),` - an import brings code in from another file. Any named, default or namespace import that the file never uses is reported. Java has this check too; the other languages do not report unused imports. See `,_jsx(_components.a,{href:`/features/file-analysis`,children:`file analysis`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TypeScript type checks`}),` - uses of `,_jsx(_components.code,{children:`any`}),`, `,_jsx(_components.code,{children:`@ts-ignore`}),` comments, non-null assertions (`,_jsx(_components.code,{children:`!`}),`) and exported functions with no declared return type are each counted separately in the File tab. See `,_jsx(_components.a,{href:`/features/file-analysis#typescript-specific-checks`,children:`TypeScript-specific checks`}),` for the full breakdown.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Debug prints`}),` - `,_jsx(_components.code,{children:`console.log`}),`, `,_jsx(_components.code,{children:`console.warn`}),` and `,_jsx(_components.code,{children:`console.error`}),` calls are reported in Code Lens and in the Code Smells section.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Iris Code does not format JavaScript or TypeScript.`}),` It reads your code and reports problems, and leaves layout to the formatter your editor uses, such as Prettier or the built-in TypeScript service. This is deliberate: formatting belongs to that tool, and Iris Code must not compete with it or quietly override the choice your repository has made.`]})})]}),_jsxs(Tab,{title:`Vue \u0026 Svelte`,id:`vue-%26-svelte`,children:[_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`.vue`}),` or `,_jsx(_components.code,{children:`.svelte`}),` file is a single-file component: one file holding a component’s code, its markup and its styles. Iris Code takes out the code sections and checks them exactly like an ordinary TypeScript or JavaScript file. There is nothing to configure and no plugin to install.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Code sections only`}),` - Vue `,_jsx(_components.code,{children:`\u003cscript>`}),` and `,_jsx(_components.code,{children:`\u003cscript setup>`}),` blocks, and Svelte instance and module `,_jsx(_components.code,{children:`\u003cscript>`}),` blocks, are checked. `,_jsx(_components.code,{children:`\u003ctemplate>`}),`, Svelte markup and `,_jsx(_components.code,{children:`\u003cstyle>`}),` are left out of every check, including duplicate detection, so markup never adds to a finding count or a duplication percentage.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your own line numbers`}),` - every finding, `,_jsx(_components.code,{children:`iris-ignore`}),` suppression and duplicate range points at the line you see in your component file. A secret on line 11 of a `,_jsx(_components.code,{children:`.vue`}),` file is reported at line 11.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`lang`}),` decides the rules`]}),` - a component whose script says `,_jsx(_components.code,{children:`lang=\"ts\"`}),` (or `,_jsx(_components.code,{children:`lang=\"typescript\"`}),`) is checked as TypeScript, so the TypeScript type checks apply. Any other component is checked as JavaScript. A script in a language Iris Code does not read, such as `,_jsx(_components.code,{children:`lang=\"coffee\"`}),`, is skipped rather than misread.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Top-level scripts only`}),` - a `,_jsx(_components.code,{children:`\u003cscript>`}),` tag inside `,_jsx(_components.code,{children:`\u003ctemplate>`}),`, `,_jsx(_components.code,{children:`\u003csvelte:head>`}),` or a Svelte `,_jsx(_components.code,{children:`{#if}`}),` block is part of the page markup, not the component’s code, and is not checked.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Framework file names are respected`}),` - SvelteKit route files (`,_jsx(_components.code,{children:`+page.svelte`}),`, `,_jsx(_components.code,{children:`+layout.svelte`}),`, `,_jsx(_components.code,{children:`+server.ts`}),` and similar) are exempt from file-naming conventions, because the framework finds them by their exact name.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`File naming by folder`}),` - for thresholds and scoring, a component counts as `,_jsx(_components.code,{children:`typescript`}),` or `,_jsx(_components.code,{children:`javascript`}),` according to its script tag. File naming can also follow path patterns, applied in order, so `,_jsx(_components.code,{children:`components/CheckoutPanel.vue`}),` can require `,_jsx(_components.code,{children:`PascalCase`}),` while `,_jsx(_components.code,{children:`composables/useCart.ts`}),` requires `,_jsx(_components.code,{children:`camelCase`}),`, even though both contain TypeScript. See `,_jsx(_components.a,{href:`/configuration/file-naming`,children:`File naming conventions`}),`.`]}),`\n`]})]}),_jsxs(Tab,{title:`Go`,id:`go`,children:[_jsxs(_components.p,{children:[`Iris Code reads `,_jsx(_components.code,{children:`.go`}),` files with a reader built for Go. What it does differently for Go:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Functions`}),` - both top-level functions (`,_jsx(_components.code,{children:`func Name(`}),`) and methods (`,_jsx(_components.code,{children:`func (r *T) Name(`}),`) are found and listed with their line numbers`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Third-party imports`}),` - a package counts as third-party when the first part of its path contains a dot (for example `,_jsx(_components.code,{children:`golang.org/x/...`}),` or `,_jsx(_components.code,{children:`pkg.example.com/...`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Debug prints`}),` - `,_jsx(_components.code,{children:`fmt.Print*`}),`, `,_jsx(_components.code,{children:`log.Print*`}),`, `,_jsx(_components.code,{children:`log.Fatal*`}),` and `,_jsx(_components.code,{children:`log.Panic*`}),` calls are reported in Code Lens and in the Code Smells section; the `,_jsx(_components.code,{children:`enableConsoleLogWarnings`}),` setting switches this on or off`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No-exports warning`}),` - in Go, a function is visible to other packages when its name starts with a capital letter. Iris Code warns if a file has no such function`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unused Go modules`}),` - a workspace scan reads `,_jsx(_components.code,{children:`go.mod`}),` and reports any listed module that no `,_jsx(_components.code,{children:`.go`}),` file in the project imports`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`vendor/`}),` folder`]}),` - skipped automatically during workspace and folder scans`]}),`\n`]})]}),_jsxs(Tab,{title:`Python`,id:`python`,children:[_jsxs(_components.p,{children:[`Iris Code reads `,_jsx(_components.code,{children:`.py`}),` files with a reader built for Python. What it does differently for Python:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Functions`}),` - every `,_jsx(_components.code,{children:`def`}),`, both top-level functions and class methods, is found and listed with its line number`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Third-party imports`}),` - `,_jsx(_components.code,{children:`import pkg`}),` and `,_jsx(_components.code,{children:`from pkg import ...`}),` are both read; modules from Python’s standard library are left out automatically, so only real third-party packages appear`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Debug prints`}),` - `,_jsx(_components.code,{children:`print()`}),` calls are reported in Code Lens and in the Code Smells section; the `,_jsx(_components.code,{children:`enableConsoleLogWarnings`}),` setting switches this on or off`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No public functions warning`}),` - in Python, a name starting with `,_jsx(_components.code,{children:`_`}),` is private by convention. Iris Code warns if every function in a file starts with `,_jsx(_components.code,{children:`_`}),`, because nothing in it is meant for other code to use`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unused Python packages`}),` - a workspace scan reads `,_jsx(_components.code,{children:`requirements.txt`}),` and `,_jsx(_components.code,{children:`pyproject.toml`}),` and reports any listed package that no `,_jsx(_components.code,{children:`.py`}),` file in the project imports`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Skipped folders`}),` - `,_jsx(_components.code,{children:`__pycache__`}),`, `,_jsx(_components.code,{children:`.venv`}),` and `,_jsx(_components.code,{children:`venv`}),` are skipped automatically during workspace and folder scans`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Parameter counting`}),` - `,_jsx(_components.code,{children:`self`}),` and `,_jsx(_components.code,{children:`cls`}),` are not counted when checking for long parameter lists`]}),`\n`]})]}),_jsxs(Tab,{title:`Ruby`,id:`ruby`,children:[_jsxs(_components.p,{children:[`Ruby code lives in more kinds of file than most languages: a `,_jsx(_components.code,{children:`Gemfile`}),` has no extension, a Rake task uses `,_jsx(_components.code,{children:`.rake`}),`, and a Rails view is Ruby mixed into HTML. Iris Code recognises all of these, not only `,_jsx(_components.code,{children:`.rb`}),` files.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Files that are checked:`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`.rb`}),`, `,_jsx(_components.code,{children:`.rbw`}),`, `,_jsx(_components.code,{children:`.rake`}),`, `,_jsx(_components.code,{children:`.gemspec`}),`, `,_jsx(_components.code,{children:`.ru`}),`, `,_jsx(_components.code,{children:`.thor`}),`, `,_jsx(_components.code,{children:`.builder`}),`, `,_jsx(_components.code,{children:`.jbuilder`}),`, `,_jsx(_components.code,{children:`.rabl`}),`, `,_jsx(_components.code,{children:`.arb`}),`, `,_jsx(_components.code,{children:`.podspec`}),`, `,_jsx(_components.code,{children:`.erb`}),`, and `,_jsx(_components.code,{children:`.rhtml`}),`.`]}),_jsxs(_components.p,{children:[`Files with no extension are recognised by name: `,_jsx(_components.code,{children:`Gemfile`}),`, `,_jsx(_components.code,{children:`Rakefile`}),`, `,_jsx(_components.code,{children:`Vagrantfile`}),`, `,_jsx(_components.code,{children:`Capfile`}),`, `,_jsx(_components.code,{children:`Guardfile`}),`, `,_jsx(_components.code,{children:`Podfile`}),`, `,_jsx(_components.code,{children:`Brewfile`}),`, `,_jsx(_components.code,{children:`Berksfile`}),`, `,_jsx(_components.code,{children:`Puppetfile`}),`, `,_jsx(_components.code,{children:`Thorfile`}),`, `,_jsx(_components.code,{children:`Dangerfile`}),`, the Fastlane set (`,_jsx(_components.code,{children:`Fastfile`}),`, `,_jsx(_components.code,{children:`Appfile`}),`, `,_jsx(_components.code,{children:`Matchfile`}),`, `,_jsx(_components.code,{children:`Gymfile`}),`, `,_jsx(_components.code,{children:`Scanfile`}),`, `,_jsx(_components.code,{children:`Snapfile`}),`, `,_jsx(_components.code,{children:`Deliverfile`}),`, `,_jsx(_components.code,{children:`Pluginfile`}),`), and the `,_jsx(_components.code,{children:`.irbrc`}),` and `,_jsx(_components.code,{children:`.pryrc`}),` dotfiles.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`What Iris Code does differently for Ruby:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Methods`}),` - instance methods, class methods (`,_jsx(_components.code,{children:`def self.name`}),`), operator methods, and endless methods (`,_jsx(_components.code,{children:`def total = items.sum`}),`) are all found. Iris Code follows nested `,_jsx(_components.code,{children:`do`}),`/`,_jsx(_components.code,{children:`end`}),` blocks to find where a method really ends, so a method containing blocks is measured at its true length rather than stopping at the first `,_jsx(_components.code,{children:`end`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Text blocks and comments`}),` - heredoc bodies (including squiggly `,_jsx(_components.code,{children:`\u003c\u003c~`}),`), `,_jsx(_components.code,{children:`%w[]`}),` and `,_jsx(_components.code,{children:`%i[]`}),` literals, `,_jsx(_components.code,{children:`#`}),` comments and `,_jsx(_components.code,{children:`=begin`}),`/`,_jsx(_components.code,{children:`=end`}),` blocks are set aside before any check runs. So a `,_jsx(_components.code,{children:`puts`}),` that only appears inside a heredoc’s text is not counted as a real debug print.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Gems and requires`}),` - `,_jsx(_components.code,{children:`require`}),` and `,_jsx(_components.code,{children:`autoload`}),` calls count as imports, and a `,_jsx(_components.code,{children:`Gemfile`}),` or `,_jsx(_components.code,{children:`.gemspec`}),` adds the gems it lists. Requires from Ruby’s standard library are left out, so only real third-party dependencies count towards the import limit.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Debug prints`}),` - `,_jsx(_components.code,{children:`puts`}),`, `,_jsx(_components.code,{children:`print`}),`, `,_jsx(_components.code,{children:`p`}),` and `,_jsx(_components.code,{children:`pp`}),` at the start of a statement are reported; the `,_jsx(_components.code,{children:`enableConsoleLogWarnings`}),` setting switches this on or off.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`method_missing`}),` without `,_jsx(_components.code,{children:`respond_to_missing?`})]}),` - defining one without the other means `,_jsx(_components.code,{children:`respond_to?`}),` and other ways of asking an object about itself give the wrong answer about which methods it handles. Iris Code reports the pair as incomplete.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`God classes`}),` - a class with more methods than the configured limit is reported at its `,_jsx(_components.code,{children:`class`}),` line, with the class name and method count.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rails mass assignment`}),` - request parameters passed straight into a model without `,_jsx(_components.code,{children:`require`}),` and `,_jsx(_components.code,{children:`permit`}),` are reported as an error. Without them, a user can set fields they should never be able to change. The risk lies in what the code leaves out, so it is easy to miss when reading the line.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ERB templates`}),` - in `,_jsx(_components.code,{children:`.erb`}),` and `,_jsx(_components.code,{children:`.rhtml`}),` files, the Ruby inside `,_jsx(_components.code,{children:`\u003c% %>`}),` and `,_jsx(_components.code,{children:`\u003c%= %>`}),` tags is checked and the surrounding HTML is left out, including from duplicate detection. Findings point at the line in the template itself, so a secret on line 14 of a view is reported at line 14.`]}),`\n`]}),_jsxs(_components.p,{children:[`Secrets detection, the nine security smells, duplicate detection, `,_jsx(_components.code,{children:`iris-ignore`}),` suppressions, gate rules and per-language `,_jsx(_components.code,{children:`languages.ruby`}),` overrides all work for Ruby the same way they do for every other language.`]}),_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`No unused-code detection in Ruby.`}),` Ruby looks up methods and constants while the program runs. A constant used only through `,_jsx(_components.code,{children:`send`}),`, `,_jsx(_components.code,{children:`const_get`}),` or Rails autoloading cannot be seen by reading the code. So Iris Code reports no unused imports or unused gems for Ruby, rather than reporting ones it cannot stand behind.`]}),_jsxs(_components.p,{children:[`Dependency and known-vulnerability (CVE) scanning does cover RubyGems when `,_jsx(_components.code,{children:`Gemfile.lock`}),` records the exact versions. Entries listed only in the `,_jsx(_components.code,{children:`Gemfile`}),`, without an exact version, are reported as not checked rather than clean.`]})]})]}),_jsxs(Tab,{title:`C#`,id:`c%23`,children:[_jsxs(_components.p,{children:[`Iris Code reads `,_jsx(_components.code,{children:`.cs`}),` code files and `,_jsx(_components.code,{children:`.csproj`}),` project files. The project file is treated as a list of settings and packages rather than as code. Iris Code reads the packages your project depends on from it and scans it for secrets. Its language version and warning level are build settings, so they are not reported as unexplained numbers the way they would be inside a method.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`What Iris Code does differently for C#:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Methods`}),` - methods, constructors, expression-bodied members and local functions are found, including constructors that chain through a `,_jsx(_components.code,{children:`: base(...)`}),` or `,_jsx(_components.code,{children:`: this(...)`}),` initialiser. A positional `,_jsx(_components.code,{children:`record`}),` is counted once, as a type.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Namespaces and packages`}),` - `,_jsx(_components.code,{children:`using`}),`, `,_jsx(_components.code,{children:`global using`}),`, `,_jsx(_components.code,{children:`using static`}),` and aliased `,_jsx(_components.code,{children:`using`}),` lines count as imports. `,_jsx(_components.code,{children:`System.*`}),` is left out, because .NET’s own library appears in every file and says nothing about what your code depends on. `,_jsx(_components.code,{children:`Microsoft.*`}),` is counted: EF Core, ASP.NET Core and the Extensions packages are third-party dependencies like any other.`]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`.csproj`}),` adds its `,_jsx(_components.code,{children:`PackageReference`}),` entries. `,_jsx(_components.code,{children:`FrameworkReference`}),` entries that name the .NET runtime itself are left out.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Text in quotes`}),` - all five ways of writing text in C# are understood before any check runs: regular, verbatim (`,_jsx(_components.code,{children:`@\"C:\\\\logs\\\\\"`}),`), interpolated (`,_jsx(_components.code,{children:`$\"...\"`}),`, `,_jsx(_components.code,{children:`$@\"...\"`}),`), raw (`,_jsx(_components.code,{children:`\"\"\"...\"\"\"`}),`, with any number of quotes) and char literals. A Windows path or a block of JSON inside quotes cannot be mistaken for code.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Debug output`}),` - `,_jsx(_components.code,{children:`Console.Write*`}),`, `,_jsx(_components.code,{children:`Debug.Write*`}),` and `,_jsx(_components.code,{children:`Trace.Write*`}),` calls are reported in Code Lens and in the Code Smells section; the `,_jsx(_components.code,{children:`enableConsoleLogWarnings`}),` setting switches this on or off.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`async void`})}),` - an `,_jsx(_components.code,{children:`async`}),` method that returns `,_jsx(_components.code,{children:`void`}),` instead of `,_jsx(_components.code,{children:`Task`}),` gives the caller nothing to wait for and no way to catch its errors, so an error inside it crashes the whole program. Iris Code reports it as an error. Event handlers (`,_jsx(_components.code,{children:`On*`}),`, `,_jsx(_components.code,{children:`*Handler`}),`, `,_jsx(_components.code,{children:`*_Click`}),` and similar) are exempt, because the framework requires that form.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Catch-all error handlers`}),` - `,_jsx(_components.code,{children:`catch (Exception ex)`}),`, `,_jsx(_components.code,{children:`catch (Exception)`}),` and a bare `,_jsx(_components.code,{children:`catch`}),` are reported, because they catch every error, including ones the code was never meant to handle. A `,_jsx(_components.code,{children:`when (...)`}),` filter shows deliberate, targeted handling and is exempt.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Long LINQ chains`}),` - five or more LINQ operators in one statement are reported. The count is per statement, not per line, because a chain is normally written one operator per line.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Large types`}),` - a class, record or struct with more methods than the configured limit, or longer than `,_jsx(_components.code,{children:`fileLengthThreshold`}),` lines, is reported at its declaration line with its name and method count.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nesting`}),` - depth is measured from the method’s own opening brace. A method with its opening brace on a line of its own (Allman style, the C# default) measures the same as the identical method with the brace at the end of its first line.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Test projects`}),` - C# test files have no special separator in their name, so Iris Code recognises them by pattern: `,_jsx(_components.code,{children:`OrdersControllerTests.cs`}),`, `,_jsx(_components.code,{children:`OrderSpec.cs`}),` and anything inside a `,_jsx(_components.code,{children:`\u003cProject>.Tests`}),`, `,_jsx(_components.code,{children:`.IntegrationTests`}),` or `,_jsx(_components.code,{children:`.UnitTests`}),` folder. Test credentials and `,_jsx(_components.code,{children:`localhost`}),` URLs there are not reported as problems in production code.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Renaming`}),` - renaming a `,_jsx(_components.code,{children:`.cs`}),` file does not update the type names, namespaces or project references inside it, so Iris Code warns you when you rename one.`]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`Secrets detection, the nine security smells, duplicate detection, `,_jsx(_components.code,{children:`iris-ignore`}),` suppressions, gate rules and per-language `,_jsx(_components.code,{children:`languages.csharp`}),` overrides all work for C# the same way they do for every other language.`]}),_jsxs(_components.p,{children:[`Secrets are looked for in `,_jsx(_components.code,{children:`string`}),` and `,_jsx(_components.code,{children:`var`}),` declarations, in property initialisers and in project XML. `,_jsx(_components.code,{children:`\u003cUserSecretsId>`}),` and MSBuild references such as `,_jsx(_components.code,{children:`$(ApiTokenFromCi)`}),` are the correct way to keep a credential out of the repository, so they are never reported.`]}),_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`No unused-code detection in C#.`}),` Dependency injection, reflection, partial classes and source generators all use code in ways that cannot be seen by reading it. So Iris Code reports no unused members or unused packages for C#, rather than reporting ones it cannot stand behind.`]}),_jsxs(_components.p,{children:[`NuGet dependency and known-vulnerability (CVE) scanning is available through the `,_jsx(_components.a,{href:`/features/dependents-table`,children:`dependency table`}),`. For projects without `,_jsx(_components.code,{children:`packages.lock.json`}),`, only the packages listed directly in the project can be checked.`]})]})]}),_jsxs(Tab,{title:`Java`,id:`java`,children:[_jsxs(_components.p,{children:[`Iris Code reads `,_jsx(_components.code,{children:`.java`}),` code files and `,_jsx(_components.code,{children:`.properties`}),` settings files. A properties file is treated as settings rather than code: it is scanned for committed credentials, but its port numbers and log levels are not reported as unexplained numbers the way they would be inside a method.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`What Iris Code does differently for Java:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Methods`}),` - methods and constructors are found, including generic signatures, `,_jsx(_components.code,{children:`throws`}),` clauses and members squeezed onto a single line. A class written entirely on one line still has its methods found, so it does not quietly escape the length, parameter and nesting checks.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Text blocks and unicode escapes`}),` - both are understood before any check runs. A text block (`,_jsx(_components.code,{children:`\"\"\"...\"\"\"`}),`) holding JSON does not have its braces mistaken for code. A `,_jsx(_components.code,{children:`\\\\uXXXX`}),` escape is decoded first, the way the Java compiler (javac) decodes it, so an escaped quote really does start or end a piece of text wherever it appears.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Imports`}),` - `,_jsx(_components.code,{children:`import`}),` and `,_jsx(_components.code,{children:`import static`}),` both count. `,_jsx(_components.code,{children:`java.*`}),` and `,_jsx(_components.code,{children:`javax.*`}),` are left out, because Java’s own library appears in nearly every file and says nothing about what your code depends on. Everything else counts, including Spring and the rest of your dependencies.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Unused imports`}),` - Java is one of the few languages where this can be judged safely. An import only gives a type a short name for use while compiling, Java has no extension methods that could use an import without naming it, and javac itself warns about unused imports too.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The check reads Javadoc comments`}),`, so an import used only in a `,_jsx(_components.code,{children:`{@link Foo}`}),` is left alone, because deleting it would break `,_jsx(_components.code,{children:`javadoc`}),`. Wildcard imports cannot be judged and are skipped rather than guessed at.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Debug output`}),` - `,_jsx(_components.code,{children:`System.out.print*`}),` and `,_jsx(_components.code,{children:`System.err.print*`}),` calls are reported in Code Lens and in the Code Smells section; the `,_jsx(_components.code,{children:`enableConsoleLogWarnings`}),` setting switches this on or off.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Catch-all error handlers`}),` - `,_jsx(_components.code,{children:`catch (Exception e)`}),` and `,_jsx(_components.code,{children:`catch (Throwable t)`}),` are reported, including the full `,_jsx(_components.code,{children:`java.lang.`}),` forms and a multi-catch ending in one of them. A catch for one specific error type is deliberate handling and is not reported. This is the same rule id C# uses, so one severity setting and one `,_jsx(_components.code,{children:`iris-ignore`}),` comment cover a codebase using both.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Running other programs`}),` - `,_jsx(_components.code,{children:`Runtime.getRuntime().exec`}),` and `,_jsx(_components.code,{children:`ProcessBuilder`}),` start other programs, so they are reported as a prompt to check every argument passed to them. This is kept separate from the `,_jsx(_components.code,{children:`eval`}),` rule, because Java has no way to run a piece of text as Java code in the sense that rule means.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Test folders`}),` - Gradle lets a project have any number of test folders (source sets), usually with names ending in `,_jsx(_components.code,{children:`Test`}),`. `,_jsx(_components.code,{children:`src/test`}),`, `,_jsx(_components.code,{children:`src/integTest`}),`, `,_jsx(_components.code,{children:`src/javaRestTest`}),`, `,_jsx(_components.code,{children:`src/internalClusterTest`}),`, `,_jsx(_components.code,{children:`src/testFixtures`}),` and similar folders are all recognised, as are `,_jsx(_components.code,{children:`*Tests.java`}),`, `,_jsx(_components.code,{children:`*TestCase.java`}),` and Maven’s failsafe `,_jsx(_components.code,{children:`*IT.java`}),` convention. Test credentials and `,_jsx(_components.code,{children:`localhost`}),` URLs there are not reported as problems in production code.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`File names the framework expects`}),` - `,_jsx(_components.code,{children:`application.properties`}),`, `,_jsx(_components.code,{children:`application-dev.properties`}),` and `,_jsx(_components.code,{children:`messages.properties`}),` are exempt from file-naming conventions, because Spring and `,_jsx(_components.code,{children:`ResourceBundle`}),` look for them by their exact name. Renaming them would break the application.`]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`Secrets detection, the nine security smells, duplicate detection, `,_jsx(_components.code,{children:`iris-ignore`}),` suppressions, gate rules and per-language `,_jsx(_components.code,{children:`languages.java`}),` overrides all work for Java the same way they do for every other language.`]}),_jsxs(_components.p,{children:[`Credentials are looked for in field and local variable declarations, in setter calls such as `,_jsx(_components.code,{children:`setPassword(\"...\")`}),`, in `,_jsx(_components.code,{children:`Properties.put`}),` entries and in `,_jsx(_components.code,{children:`.properties`}),` keys.`]}),_jsxs(_components.p,{children:[`A committed `,_jsx(_components.code,{children:`spring.datasource.password`}),` is the most common Java credential leak. Its value has no recognisable format, so it is the check based on the setting’s name that catches it.`]})]}),_jsxs(Tab,{title:`Rust`,id:`rust`,children:[_jsxs(_components.p,{children:[`Iris Code reads `,_jsx(_components.code,{children:`.rs`}),` files with a reader built for Rust, and reads `,_jsx(_components.code,{children:`Cargo.lock`}),` to see which packages (crates) your project depends on.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`What Iris Code does differently for Rust:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Functions`}),` - free functions, associated functions and trait implementations are found, including `,_jsx(_components.code,{children:`pub`}),`, `,_jsx(_components.code,{children:`async`}),`, `,_jsx(_components.code,{children:`const`}),`, `,_jsx(_components.code,{children:`unsafe`}),` and `,_jsx(_components.code,{children:`extern \"C\"`}),` forms, generic parameters and where clauses. A trait method declared without a body is not counted as a function.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Lifetimes are not quotes`}),` - in `,_jsx(_components.code,{children:`\u0026'a str`}),` the apostrophe marks a lifetime, not the start of a character. Reading it as a quote would hide real code up to the next apostrophe. Lifetimes appear throughout most Rust code, so this is handled before any check runs.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Raw strings, nested comments and raw identifiers`}),` - raw strings with any number of `,_jsx(_components.code,{children:`#`}),` marks (`,_jsx(_components.code,{children:`r#\"...\"#`}),`), byte strings, comments nested inside comments (which Rust allows and C does not) and raw identifiers (`,_jsx(_components.code,{children:`r#type`}),` is a name, not text) are all understood.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`unwrap`}),` and `,_jsx(_components.code,{children:`expect`})]}),` - reported because they crash the program when an error occurs instead of handling it. The usual fix is `,_jsx(_components.code,{children:`?`}),` or a `,_jsx(_components.code,{children:`match`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Explicit panics`}),` - `,_jsx(_components.code,{children:`panic!`}),`, `,_jsx(_components.code,{children:`todo!`}),` and `,_jsx(_components.code,{children:`unimplemented!`}),` are reported separately from `,_jsx(_components.code,{children:`unwrap`}),`, because the fix differs: `,_jsx(_components.code,{children:`unwrap`}),` leaves an error unhandled, while these stop the program on purpose.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tests inside the file are exempt`}),` - Rust keeps tests in the same file as the code they test, which none of the other supported languages do. So the exemption applies to each `,_jsx(_components.code,{children:`#[cfg(test)]`}),` and `,_jsx(_components.code,{children:`#[test]`}),` item rather than to a whole file.`]}),`\n`,_jsxs(_components.p,{children:[`Exempting the whole file would either let the production code off too or let nothing off. Without the exemption, `,_jsx(_components.code,{children:`unwrap`}),` findings would flood every well-tested file. Test credentials inside a test module are exempt for the same reason.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Debug output`}),` - `,_jsx(_components.code,{children:`println!`}),`, `,_jsx(_components.code,{children:`eprintln!`}),`, `,_jsx(_components.code,{children:`print!`}),`, `,_jsx(_components.code,{children:`eprint!`}),` and `,_jsx(_components.code,{children:`dbg!`}),` are reported; the `,_jsx(_components.code,{children:`enableConsoleLogWarnings`}),` setting switches this on or off.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Imports`}),` - `,_jsx(_components.code,{children:`use`}),` lines are counted, including nested groups such as `,_jsx(_components.code,{children:`use crate::{ui::{Button, Panel}, theme}`}),`. `,_jsx(_components.code,{children:`std`}),`, `,_jsx(_components.code,{children:`core`}),` and `,_jsx(_components.code,{children:`alloc`}),` are left out as Rust’s standard library, and `,_jsx(_components.code,{children:`crate`}),`, `,_jsx(_components.code,{children:`self`}),` and `,_jsx(_components.code,{children:`super`}),` because they point inside your own project.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Test and benchmark folders`}),` - `,_jsx(_components.code,{children:`tests/`}),`, `,_jsx(_components.code,{children:`benches/`}),` and `,_jsx(_components.code,{children:`examples/`}),` are standard Cargo folders and are treated as test code.`]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`Secrets detection, the nine security smells, duplicate detection, `,_jsx(_components.code,{children:`iris-ignore`}),` suppressions, gate rules and per-language `,_jsx(_components.code,{children:`languages.rust`}),` overrides all work for Rust the same way they do for every other language.`]}),_jsxs(_components.p,{children:[`Credentials are looked for in `,_jsx(_components.code,{children:`let`}),`, `,_jsx(_components.code,{children:`const`}),` and `,_jsx(_components.code,{children:`static`}),` bindings and in struct fields, which is how Rust settings are usually written.`]}),_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`No unused-import detection in Rust.`}),` A trait has to be imported before its methods can be used, and its name is then never written again: `,_jsx(_components.code,{children:`use gpui::Styled;`}),` is what makes `,_jsx(_components.code,{children:`.bg(...)`}),` compile.`]}),_jsx(_components.p,{children:`That use cannot be seen by reading the code, and the Rust compiler does not warn about it either. So Iris Code reports no unused imports for Rust, rather than reporting ones it cannot stand behind. Tried on a real Rust codebase, the check produced roughly three findings per file, and nearly all of them were correct code.`}),_jsxs(_components.p,{children:[`Cargo dependency and known-vulnerability (CVE) scanning is available through the `,_jsx(_components.a,{href:`/features/dependents-table`,children:`dependency table`}),`. `,_jsx(_components.code,{children:`Cargo.lock`}),` gives the full list of packages, including the ones your dependencies bring in.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust","sidebarTitle":"Language support","description":"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.","keywords":["C#","c sharp","csharp","c-sharp",".NET","dotnet","dotnet core","ASP.NET","ASP.NET Core",".cs",".csproj","MSBuild","NuGet","LINQ","async void","EF Core","Entity Framework","xUnit","NUnit","MSTest","Java","Spring","Spring Boot","Maven","Gradle",".java",".properties","Javadoc","Rust","Cargo","crates.io",".rs","unwrap","panic","golang","Rails","ERB","Gemfile","single-file component","SFC","TSX","JSX"],"href":"/features/language-support"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"iriscode","siteName":"Iris Code","title":"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust - Iris Code","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T16:39:51.093Z","originalFileLocation":"features/language-support.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Iris Code\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust - Iris Code\">\u003cmeta data-mint-head property=\"og:description\" content=\"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Iris Code\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.iriscode.co/features/language-support\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://iriscode.mintlify.site/_mintlify/api/og/v2?division=What+Iris+Code+finds\u0026amp;title=Supported+languages%3A+TypeScript%2C+JavaScript%2C+Vue%2C+Svelte%2C+Go%2C+Python%2C+Ruby%2C+C%23%2C+Java%2C+Rust\u0026amp;description=Iris+Code+reads+and+scores+TypeScript%2C+JavaScript%2C+Vue%2C+Svelte%2C+Go%2C+Python%2C+Ruby%2C+C%23%2C+Java+and+Rust%2C+with+checks+tailored+to+how+each+language+is+written.\u0026amp;theme=96f9904a82aa4d2fcfeb9b47\u0026amp;signature=be924e4493d7042de289b053fb31ddca53e07e84f8c13b9ec6ae131ce8c451a6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust - Iris Code\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://iriscode.mintlify.site/_mintlify/api/og/v2?division=What+Iris+Code+finds\u0026amp;title=Supported+languages%3A+TypeScript%2C+JavaScript%2C+Vue%2C+Svelte%2C+Go%2C+Python%2C+Ruby%2C+C%23%2C+Java%2C+Rust\u0026amp;description=Iris+Code+reads+and+scores+TypeScript%2C+JavaScript%2C+Vue%2C+Svelte%2C+Go%2C+Python%2C+Ruby%2C+C%23%2C+Java+and+Rust%2C+with+checks+tailored+to+how+each+language+is+written.\u0026amp;theme=96f9904a82aa4d2fcfeb9b47\u0026amp;signature=be924e4493d7042de289b053fb31ddca53e07e84f8c13b9ec6ae131ce8c451a6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/iriscode/nPE01eF-6YyAclcR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Iris Code\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#DF5F34\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.iriscode.co/features/language-support\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/language-support.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.iriscode.co/#organization\",\"name\":\"Iris Code\",\"url\":\"https://docs.iriscode.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/iriscode/sf57Llzo3wydsM0z/logo/iris-logo-light.svg?fit=max\u0026auto=format\u0026n=sf57Llzo3wydsM0z\u0026q=85\u0026s=20fb61681b3e42c47263c92983df3be6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.iriscode.co#website\",\"name\":\"Iris Code\",\"url\":\"https://docs.iriscode.co\",\"publisher\":{\"@id\":\"https://docs.iriscode.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.iriscode.co/features/language-support#webpage\",\"url\":\"https://docs.iriscode.co/features/language-support\",\"name\":\"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust\",\"description\":\"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.\",\"dateModified\":\"2026-11-03T16:39:51.093Z\",\"isPartOf\":{\"@id\":\"https://docs.iriscode.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.iriscode.co/features/language-support#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.iriscode.co/features/language-support#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"What Iris Code finds\",\"item\":\"https://docs.iriscode.co/features/file-analysis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust\",\"item\":\"https://docs.iriscode.co/features/language-support\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.iriscode.co/features/language-support#article\",\"headline\":\"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust\",\"name\":\"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust\",\"description\":\"Iris Code reads and scores TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java and Rust, with checks tailored to how each language is written.\",\"url\":\"https://docs.iriscode.co/features/language-support\",\"mainEntityOfPage\":{\"@id\":\"https://docs.iriscode.co/features/language-support#webpage\"},\"dateModified\":\"2026-11-03T16:39:51.093Z\",\"keywords\":\"C#, c sharp, csharp, c-sharp, .NET, dotnet, dotnet core, ASP.NET, ASP.NET Core, .cs, .csproj, MSBuild, NuGet, LINQ, async void, EF Core, Entity Framework, xUnit, NUnit, MSTest, Java, Spring, Spring Boot, Maven, Gradle, .java, .properties, Javadoc, Rust, Cargo, crates.io, .rs, unwrap, panic, golang, Rails, ERB, Gemfile, single-file component, SFC, TSX, JSX\",\"publisher\":{\"@id\":\"https://docs.iriscode.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.iriscode.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Iris Code\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Iris Code\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/language-support.md","siteName":"Iris Code","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Start here","pages":[{"title":"Iris Code: code checks for you and your coding agents","sidebarTitle":"Home","href":""},{"title":"Quick start: install Iris Code and review your first project","sidebarTitle":"Quick start","href":"/quickstart"},{"title":"Install Iris Code in an editor or terminal","sidebarTitle":"Installation","href":"/installation"},{"title":"Iris Code Playground: try the analysis and gate in your browser","sidebarTitle":"Playground","href":"/playground"},{"title":"Free project actions and saved results","sidebarTitle":"Free allowances","href":"/free"},{"title":"Iris Code Pro: rescan workspaces and enforce project standards","sidebarTitle":"Iris Code Pro","href":"/pro"}]},{"group":"What Iris Code finds","pages":[{"title":"File analysis: understand scores, findings, and function metrics","sidebarTitle":"File analysis","href":"/features/file-analysis"},{"title":"Review My Changes: check your Git changes before anyone else does","sidebarTitle":"Review My Changes","href":"/features/change-review"},{"title":"Verification integrity: catch changes that weaken your checks","sidebarTitle":"Verification integrity","href":"/features/verification-integrity"},{"title":"Workspace analysis: find project-wide risks and trends","sidebarTitle":"Workspace analysis","href":"/features/workspace-analysis"},{"title":"Shareable scan reports","href":"/features/shareable-report"},{"title":"Code Map: see code health across a repository","sidebarTitle":"Code Map","href":"/features/code-map"},{"title":"Schema graph","href":"/features/schema-graph"},{"title":"Hardcoded secrets: find passwords and keys written into your code","sidebarTitle":"Hardcoded secrets","href":"/features/hardcoded-secrets"},{"title":"Security smells: nine risky code patterns Iris Code checks for","sidebarTitle":"Security smells","href":"/features/security-smells"},{"title":"Duplicate code detection: find, compare and limit copy-paste","sidebarTitle":"Duplicate detection","href":"/features/duplicate-detection"},{"title":"Git history secrets scan: find credentials your history still remembers","sidebarTitle":"Git history secrets","href":"/features/git-history-secrets"},{"title":"Quality signals","sidebarTitle":"Quality signals","href":"/features/quality-signals"},{"title":"Inline diagnostics: squiggles and Problems panel entries","sidebarTitle":"Inline diagnostics","href":"/features/inline-diagnostics"},{"title":"Dependents table: audit npm, Go, Python, RubyGems, NuGet, Cargo, and Maven packages","sidebarTitle":"Dependents table","description":"See which of your packages are out of date or have known security vulnerabilities, across several languages in one table.","href":"/features/dependents-table"},{"title":"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust","sidebarTitle":"Language support","href":"/features/language-support"}]},{"group":"Blocking bad code","tag":"New","pages":[{"title":"Gate Preview: see how your project would score before you enforce a standard","sidebarTitle":"Gate Preview","description":"Check your project against six built-in presets before you write any configuration, install a hook or block a push.","href":"/enforcement/gate-preview"},{"title":"Git hook: check configured standards before every push","sidebarTitle":"Git hook","href":"/enforcement/git-hook"},{"title":"Build gate: check project standards before compilation","sidebarTitle":"Build gate","href":"/enforcement/build-gate"},{"title":"GitHub Actions: enforce Iris Code project standards in CI","sidebarTitle":"GitHub Actions","href":"/enforcement/github-actions"},{"title":"Slack notifications for gate runs","sidebarTitle":"Slack notifications","href":"/enforcement/slack-notifications"},{"title":"Inline suppressions: silence a finding with a documented reason","sidebarTitle":"Suppressions","href":"/enforcement/suppressions"}]},{"group":"Refactor playbook","tag":"New","pages":[{"title":"Refactor playbook","sidebarTitle":"Overview","href":"/refactor/overview"},{"title":"Fixes and suggestions reference","sidebarTitle":"Fixes and suggestions","href":"/refactor/reference"},{"title":"Project conventions","sidebarTitle":"Conventions","href":"/refactor/conventions"},{"title":"Verifying a refactor","sidebarTitle":"Verification","href":"/refactor/verification"},{"title":"Refactor configuration","sidebarTitle":"Configuration","href":"/refactor/configuration"},{"title":"Using refactor plans with an agent","sidebarTitle":"Agent integration","href":"/refactor/agents"},{"title":"Refactor language coverage","sidebarTitle":"Language coverage","href":"/refactor/language-coverage"}]},{"group":"Cloud scanning","tag":"New","pages":[{"title":"Iris Code Cloud: scan GitHub repositories without an editor open","sidebarTitle":"Cloud overview","href":"/cloud/overview"},{"title":"Connecting GitHub: the Iris Code app, permissions and revoking access","sidebarTitle":"Connecting GitHub","href":"/cloud/connect-github"},{"title":"Audit triggers: merges, pull requests and what each one costs","sidebarTitle":"Audit triggers","href":"/cloud/triggers"},{"title":"Scan allowances: how many cloud scans you get, and how they are counted","sidebarTitle":"Scan allowances","href":"/cloud/allowances"}]},{"group":"Teams","tag":"New","pages":[{"title":"Iris Code Teams: shared standards, projects and a record of results","sidebarTitle":"Teams overview","href":"/teams/overview"},{"title":"Roll Iris Code out across an engineering team","sidebarTitle":"Rollout guide","href":"/teams/rollout"},{"title":"Control what coding agents can use and review pre-push records","sidebarTitle":"Governance","href":"/teams/governance"},{"title":"Teams seats and billing: per-seat pricing, seat changes and renewals","sidebarTitle":"Seats and billing","href":"/teams/seats-and-billing"},{"title":"Team entitlement: how a seat grants Pro, and what a personal subscription adds","sidebarTitle":"Team entitlement","href":"/teams/entitlement"}]},{"group":"Configuration","pages":[{"title":"Configure shared project standards with .irisconfig.json","sidebarTitle":".irisconfig.json","href":"/configuration/irisconfig"},{"title":"Configuration keys: every .irisconfig.json setting","sidebarTitle":"All configuration keys","href":"/configuration/keys"},{"title":"File naming conventions","href":"/configuration/file-naming"},{"title":"Config Studio: build and sync your Iris Code config visually","sidebarTitle":"Config Studio","href":"/configuration/config-studio"},{"title":"Custom scoring weights: tune the health score for your team","sidebarTitle":"Scoring weights","href":"/configuration/scoring-weights"},{"title":"VS Code settings: every iris.* option","sidebarTitle":"VS Code settings","href":"/configuration/vscode-settings"}]},{"group":"Working with AI agents","tag":"New","pages":[{"title":"Project rules: generate agent instructions from your Iris Code config","sidebarTitle":"Project rules","href":"/agents/project-rules"},{"title":"Package Guard: check a package before it is installed","sidebarTitle":"Package guard","href":"/agents/package-guard"},{"title":"MCP server: give coding agents your project rules and findings","sidebarTitle":"MCP server","href":"/agents/mcp"}]},{"group":"Editors","pages":[{"title":"Editor support and feature parity","sidebarTitle":"Overview","href":"/editors/overview"},{"title":"Iris Code in VS Code","sidebarTitle":"VS Code","href":"/editors/vscode"},{"title":"Iris Code in Cursor, Windsurf, VSCodium, Trae and Positron","sidebarTitle":"VS Code forks","href":"/editors/forks"},{"title":"Iris Code in JetBrains IDEs","sidebarTitle":"JetBrains","href":"/editors/jetbrains"},{"title":"Neovim, Helix and other LSP editors","sidebarTitle":"Other LSP editors","href":"/editors/lsp"}]},{"group":"Reference","pages":[{"title":"Iris Code CLI: check your code from the terminal","sidebarTitle":"Overview","href":"/cli/overview"},{"title":"Iris Code CLI command reference","sidebarTitle":"Commands","href":"/cli/commands"},{"title":"Sign in to the Iris Code CLI with your browser or a token","sidebarTitle":"Authentication","href":"/cli/auth"},{"title":"Use Iris Code in GitHub Actions, GitLab CI, and shell pipelines","sidebarTitle":"CI integration","href":"/cli/ci"},{"title":"Iris Code VS Code Command Palette and context menu reference","sidebarTitle":"VS Code commands","href":"/reference/commands"},{"title":"Health score and complexity: how Iris Code calculates both","sidebarTitle":"Scoring \u0026 metrics","href":"/reference/scoring"},{"title":"Terminology: one name per thing in Iris Code","sidebarTitle":"Terminology","href":"/reference/terminology"},{"title":"Accuracy benchmark: how Iris Code measures its own rules","sidebarTitle":"Accuracy benchmark","href":"/trust/accuracy-benchmark"},{"title":"Iris Code security, privacy, and support","href":"/trust/security-and-support"},{"title":"Iris Code Changelog: VS Code, JetBrains, and CLI Release Notes","sidebarTitle":"Changelog","href":"/changelog"}]}]}]},"basePath":"","title":"Supported languages: TypeScript, JavaScript, Vue, Svelte, Go, Python, Ruby, C#, Java, Rust - Iris Code","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}