Technical specifications

Snyk Code

Supported file extensions

Snyk Code supports the following file extensions
  • apex

  • ASPX

  • c

  • cc

  • cjs

  • cls

  • cpp

  • CS

  • ejs

  • erb

  • es

  • es6

  • go

  • h

  • haml

  • hpp

  • htm

  • html

  • hxx

  • java

  • js

  • jspx

  • jsx

  • jsp

  • kt

  • mjs

  • php

  • py

  • rb

  • rhtml

  • scala

  • slim

  • swift

  • ts

  • tsx

  • trigger

  • vb

  • vue

  • xml

File size limit for Snyk Code analysis

Snyk Code automatically excludes the following files from analysis:

  • On the Web UI - files that are larger than 1MB.

  • On the CLI and IDE - files that are larger than 1MB.

  • Minified JS files with 3 or fewer lines.

Filename length limitation

The analysis is available only for files with names shorter or equal to 255 characters. You receive an error if the filename exceeds this limit. To ensure that all files are being analyzed, consider shortening long filenames.

Unicode character encoding

Snyk Code only accepts source code files in UTF-8 encoding. Consider convering source files to this encoding type before importing into Snyk.

Framework support

To support a specific framework, Snyk Code must both support the relevant language and be trained on Projects using the framework. The found patterns are then annotated by the security team and extended by curated content.

Most frameworks are supported out of the box, as Snyk Code needs only to parse the code to analyze it. In some cases, they might require specific rules, or it might require specific program analysis engine updates or both.

If you notice any gaps in support for a specific framework, contact Snyk Support.

How Snyk works for code analysis

Snyk scans your codebase following this sequence

  1. The source code is analyzed, generating an event graph. The event graph is similar to a code map that helps Snyk understand how different parts of the code are related. There are two node types, each node in the graph representing something that happens in the code. Some represent parts of the code, and others represent how the code is used.

  2. Rules are run against the event graph to find matches. The rules act as a checklist of known vulnerabilities that Snyk looks for in the event graph.

  3. If a match is found, Snyk looks for a vulnerability in the event graph, identifying where problems might be hiding in the code.

🔗 See Snyk Code AI Engine.

More information about language support for Snyk Code

For more information, see Supported languages, frameworks, and feature availability overview, Snyk Code section.

Code Quality

Release status

Code Quality is an experimental feature. If you are interested in using the feature, contact your Snyk team.

Snyk Open Source

How Snyk works for open source and licensing

Snyk builds a dependency graph and then uses the vulnerability database to find vulnerabilities in any packages anywhere in that tree.

The way Snyk analyzes and builds the graph varies depending on the language and package manager of the Project, as well as the location of your Project.

More information about language support for Snyk Open Source

For more information, see Supported languages, frameworks, and feature availability overview, Open Source section.

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.