Repository Analysis

wasmerio/wasmer

🚀 Fast, secure, lightweight containers based on WebAssembly

2.7 Likely human-written View on GitHub
2.7
Adjusted Score
2.7
Raw Score
100%
Time Factor
2026-05-30
Last Push
20,704
Stars
Rust
Language
368,732
Lines of Code
1904
Files
959
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 2MEDIUM 12LOW 945

Pattern Findings

959 matches across 12 categories. Click a row to expand file-level details.

Over-Commented Block925 hits · 918 pts
SeverityFileLineSnippet
LOWdeny.toml1# This template contains all of the possible sections and their default values
LOWdeny.toml21# `target_family = "unix"` configuration, that only having windows targets in
LOWdeny.toml41#exclude = []
LOWdeny.toml61
LOWdeny.toml81# If this is true, then cargo deny will use the git executable to fetch advisory database.
LOWdeny.toml141# The package spec the clarification applies to
LOWdeny.toml161# If true, ignores workspace crates that aren't published, or are only
LOWdeny.toml181# The graph highlighting used when creating dotgraphs for crates
LOWdeny.toml201deny = [
LOWdeny.toml221# "hyper-rustls",
LOWdeny.toml241skip-tree = [
LOW.config/nextest.toml1[profile.ci]
LOWtests/c-wasi-tests/sock_send_to.c1#include <assert.h>
LOWtests/integration/cli/tests/snapshot.rs841// Performs a longjmp of a stack that was recorded before the fork.
LOWtests/integration/cli/tests/snapshot.rs961 "../../../../wasmer-test-files/integration/wasm/example-spawn.wasm"
LOW…libExample/DylibExample/DylibExample-Bridging-Header.h1#include "wasm.h"
LOW…sts/integration/ios/DylibExample/DylibExample/calc.cpp1//
LOWtests/integration/ios/DylibExample/DylibExample/calc.h1//
LOWtests/lib/wast/src/wast.rs401 // ret.push(' ');
LOWtests/compilers/traps.rs361
LOWtests/compilers/issues.rs341 &Value::I64(num.count_ones() as i64),
LOWtests/compilers/issues.rs461///
LOWtests/compilers/wast.rs1use ::wasmer::sys::Features;
LOWtests/compilers/wasi.rs1use std::fs::File;
LOWexamples/platform_ios_headless.rs1//! Defining an engine in Wasmer is one of the fundamental steps.
LOWexamples/features.rs1//! WebAssembly is a living standard. Wasmer integrates some
LOWexamples/imports_exports.rs1//! A Wasm module can import and export entities, like functions, memories, globals and tables.
LOWexamples/imports_exports.rs61 println!("Creating the imported global...");
LOWexamples/wasi_pipes.rs1//! Piping to and from a WASI compiled WebAssembly module with Wasmer.
LOWexamples/compiler_cranelift.rs1//! A Wasm module can be compiled with multiple compilers.
LOWexamples/metering.rs1//! Wasmer will let you easily run Wasm module in a Rust host.
LOWexamples/metering.rs61 // Now let's create our metering middleware.
LOWexamples/wasi_manual_setup.rs1//! Running a WASI compiled WebAssembly module with Wasmer.
LOWexamples/hello_world.rs1//! This is a simple example introducing the core concepts of the Wasmer API.
LOWexamples/imports_function_env_global.rs1//! A Wasm module can import entities, like functions, memories,
LOWexamples/imports_function_env_global.rs61 // We create some shared data here, `Arc` is required because we may
LOWexamples/memory.rs1//! With Wasmer you'll be able to interact with guest module memory.
LOWexamples/memory.rs101
LOWexamples/exports_function.rs1//! A Wasm module can export entities, like functions, memories,
LOWexamples/exports_function.rs41 // Let's compile the Wasm module.
LOWexamples/exports_function.rs61 //
LOWexamples/exports_function.rs81 // `Rets`, respectively for the parameters and the results. If
LOWexamples/instance.rs1//! Wasmer will let you easily run Wasm module in a Rust host.
LOWexamples/instance.rs41
LOWexamples/imports_function_env.rs1//! A Wasm module can import entities, like functions, memories,
LOWexamples/compiler_singlepass.rs1//! A Wasm module can be compiled with multiple compilers.
LOWexamples/engine_dylib.rs1//! Defining an engine in Wasmer is one of the fundamental steps.
LOWexamples/engine_dylib.rs61 // Here we go.
LOWexamples/exports_global.rs1//! A Wasm module can export entities, like functions, memories,
LOWexamples/exports_global.rs41
LOWexamples/exports_memory.rs1//! A Wasm module can export entities, like functions, memories,
LOWexamples/errors.rs1//! A Wasm module can sometimes be invalid or trigger traps, and in those case we will get
LOWexamples/compiler_llvm.rs1//! A Wasm module can be compiled with multiple compilers.
LOWexamples/imports_global.rs1//! A Wasm module can import entities, like functions, memories,
LOWexamples/early_exit.rs1//! There are cases where you may want to interrupt this synchronous execution of the Wasm module
LOWexamples/wasi.rs1//! Running a WASI compiled WebAssembly module with Wasmer.
LOWexamples/imports_function.rs1//! A Wasm module can import entities, like functions, memories,
LOWexamples/engine_headless.rs1//! Defining an engine in Wasmer is one of the fundamental steps.
LOWexamples/engine_headless.rs21//! will be executed can be very constrained. For such particular
LOWexamples/engine_headless.rs101 // Here we go.
865 more matches not shown…
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippet
MEDIUM…ptions-across-modules/static-thrower-static-catcher.sh2##Ignored: not ported to the new test harness
MEDIUM…ptions-across-modules/static-thrower-shared-catcher.sh2##Ignored: not ported to the new test harness
MEDIUM…ules/static-thrower-via-shared-proxy-static-catcher.sh2##Ignored: not ported to the new test harness
MEDIUMlib/vm/src/vmcontext.rs190/// The fields compiled code needs to access to utilize a WebAssembly table
MEDIUMlib/vm/src/vmcontext.rs225/// The fields compiled code needs to access to utilize a WebAssembly linear
MEDIUMlib/vm/src/vmcontext.rs264/// The fields compiled code needs to access to utilize a WebAssembly global
MEDIUMlib/vm/src/vmcontext.rs454/// The fields compiled code needs to access to utilize a WebAssembly table
MEDIUMlib/vm/src/vmcontext.rs814/// The fields compiled code needs to access to utilize a WebAssembly linear
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGHexamples/tunables_limit_memory.rs33 /// Takes an input memory type as requested by the guest and sets
HIGHlib/compiler-llvm/src/translator/code.rs69// ( Arshia: that comment above is AI-generated... AI is savage XD )
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippet
LOWlib/cli/src/commands/app/deploy.rs797 // We need to check if we have a manifest with the same name in the
LOWlib/vm/src/threadconditions.rs119 // Step 1: lock the map key, so we know no one else can get/create a
LOWlib/vm/src/threadconditions.rs125 // Step 2: lock the mutex while still holding the map lock, so nobody
LOWlib/vm/src/threadconditions.rs129 // Step 3: unlock the map key, we don't need it anymore.
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippet
LOWlib/types/src/types.rs412 /// # Usage:
LOWlib/cli/src/commands/mod.rs368 // Example usage:
LOWlib/cli/src/commands/mod.rs399 /// Example usage:
LOWlib/api/src/entities/imports.rs16/// # Usage:
LOWlib/api/src/entities/imports.rs83 /// # Usage:
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippet
LOWlib/wasix/src/runtime/resolver/resolve.rs202 // Don't forget to make the cycle start and end with the same node
MEDIUMlib/vm/src/probestack/compiler_builtins.rs39//! Finally it's worth noting that at the time of this writing LLVM only has
MEDIUMlib/sys-utils/tests/fd_mmap_memory.rs1// // TODO: make this a sensible test before merge NOTE: commented out since it's mostly here for demonstration purposes
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUM.github/s3-cache-cleanup.py10# Define the S3 bucket name and the number of days to retain objects
MEDIUM.github/s3-cache-cleanup.py18# Create a connection to the S3 service
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/wasmer-perf-record.py161
LOWscripts/make-release.py74
LOWscripts/publish.py111
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/publish.py61def get_latest_version_for_crate(crate_name: str) -> typing.Optional[str]:
LOWscripts/publish.py132 def check_local_workspace_dep(t):
LOWscripts/publish.py241 def is_crate_already_published(self, crate_name: str) -> bool:
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippet
LOWtests/integration/cli/tests/packages/js/src/index.js1async function handleRequest(req) {
LOW…/src/utils/package_wizard/templates/js-worker/index.js4async function handleRequest(ev) {
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOW…ration/cli/resources/python/temp-dir-in-child/child.py2
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippet
LOWscripts/publish.py288 except Exception as exc: