🌴 Empowering everyone to build reliable and efficient smart contracts.
This report summarizes scanner evidence for FuelLabs/sway, a Rust project with 61,395 GitHub stars. SynthScan examined 329,614 lines of code across 4398 source files, recording 1046 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 4.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 977 finding(s).
Are imports declared and package/API names verified? 22 finding(s).
Are wrappers, guards, and repeated structures necessary? 47 finding(s).
Which changes need focused human review? 1046 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1046 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ci_checks.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | forc/src/cli/shared.rs | 101 | /// Create a binary file at the provided path representing the final bytecode. | COMMENT |
| LOW | forc/src/cli/shared.rs | 121 | /// Use the release build profile. | COMMENT |
| LOW | forc/src/cli/shared.rs | 141 | pub struct Print { | COMMENT |
| LOW | forc/src/cli/shared.rs | 161 | /// - virtual: initial ASM with virtual registers and abstract control flow. | COMMENT |
| LOW | forc/src/cli/shared.rs | 221 | /// | COMMENT |
| LOW | forc/src/cli/shared.rs | 241 | /// The IPFS node to use for fetching IPFS sources. | COMMENT |
| LOW | forc/src/cli/commands/test.rs | 21 | [ Run test without any output => "forc test --silent" ] | COMMENT |
| LOW | forc/src/cli/commands/test.rs | 41 | #[clap(bin_name = "forc test", version, after_help = help())] | COMMENT |
| LOW | forc/src/cli/commands/test.rs | 61 | /// These are the gas costs values of the Fuel mainnet as of time of | COMMENT |
| LOW | forc/src/cli/commands/check.rs | 21 | pub struct Command { | COMMENT |
| LOW | forc/src/cli/commands/build.rs | 21 | /// | COMMENT |
| LOW | forc/src/cli/commands/update.rs | 21 | COMMENT | |
| LOW | forc/src/cli/commands/init.rs | 21 | /// The default program type, excluding all flags or adding this flag creates a basic contract program. | COMMENT |
| LOW | forc/src/cli/commands/new.rs | 21 | /// program. | COMMENT |
| LOW | forc/src/ops/forc_update.rs | 1 | use crate::cli::UpdateCommand; | COMMENT |
| LOW | sway-parse/src/token.rs | 101 | start: usize, | COMMENT |
| LOW | sway-parse/src/parser.rs | 81 | /// Tries to peek a `P` in its canonical way. | COMMENT |
| LOW | sway-parse/src/parser.rs | 141 | COMMENT | |
| LOW | test/src/main.rs | 81 | /// Print out the specified IR (separate options with comma), if the verbose option is on | COMMENT |
| LOW | test/src/main.rs | 101 | COMMENT | |
| LOW | test/src/main.rs | 121 | /// This option is ignored if tests are run in parallel. | COMMENT |
| LOW | test/src/in_language_tests/run_in_language_tests.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/src/in_language_tests/run_in_language_tests.sh | 21 | # (compilation and tests output) is printed as it runs. | COMMENT |
| LOW | test/src/snapshot/mod.rs | 621 | } | COMMENT |
| LOW | test/src/sdk-harness/test_projects/storage_init/mod.rs | 21 | .unwrap() | COMMENT |
| LOW | …ess/test_projects/storage_vec_of_storage_string/mod.rs | 61 | // let _ = instance | COMMENT |
| LOW | …ess/test_projects/storage_vec_of_storage_string/mod.rs | 81 | // .methods() | COMMENT |
| LOW | test/src/ir_generation/mod.rs | 41 | /// // ::check-ir-optimized:: | COMMENT |
| LOW | test/src/e2e_vm_tests/harness.rs | 321 | None | COMMENT |
| LOW | test/src/e2e_vm_tests/mod.rs | 1241 | // However, "run_on_node" tests deploy contracts to a local node, and if multiple such tests | COMMENT |
| LOW | …fail/match_expressions_struct_missing_fields/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …ould_fail/storage_in_library/test.dynamic_storage.toml | 1 | category = "fail" | COMMENT |
| LOW | …test_programs/should_fail/storage_in_library/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …test_programs/should_fail/where_clause_impls/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …hould_fail/struct_field_privacy_field_access/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …hould_fail/struct_field_privacy_field_access/test.toml | 21 | #check: $()Private struct field is inaccessible | COMMENT |
| LOW | …s/test_programs/should_fail/nested_functions/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …rams/should_fail/superabi_duplicate_methods6/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …programs/should_fail/variable_does_not_exist/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …programs/should_fail/variable_does_not_exist/test.toml | 21 | # check: $()let _ = x + y + z; | COMMENT |
| LOW | …rams/should_fail/superabi_duplicate_methods8/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …s/should_fail/trait_method_generic_ambiguous/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …programs/should_fail/superabi_contract_call2/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 21 | #check: $()Struct "LibTwoPrivateFields" is declared here, and has private fields "y" and "z". | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 41 | #check: $()Inaccessible fields are "y" and "z". | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 61 | #check: $()z: u64, | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 81 | #check: $()let _ = LibStruct { nn: 0, x: 0 }; | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 101 | #check: $()let _ = LibStruct { nn: 0, x: 0, y: 0, z: 0 }; | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 121 | COMMENT | |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 141 | #check: $()Struct cannot be instantiated due to inaccessible private fields | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 161 | #check: $()Struct cannot be instantiated due to inaccessible private fields | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 181 | #nextln: $()Field "z" of the struct "LibStruct" is declared here as private. | COMMENT |
| LOW | …ould_fail/struct_field_privacy_instantiation/test.toml | 201 | #nextln: $()Field "nn" does not exist in the struct "MainStruct". | COMMENT |
| LOW | …e_field_access_on_non_struct/test.dynamic_storage.toml | 1 | category = "fail" | COMMENT |
| LOW | …e_field_access_on_non_struct/test.dynamic_storage.toml | 21 | #check: $()Struct field does not exist | COMMENT |
| LOW | …e_field_access_on_non_struct/test.dynamic_storage.toml | 41 | #check: $()Fields can only be accessed on storage variables that are structs. | COMMENT |
| LOW | …ould_fail/storage_field_access_on_non_struct/test.toml | 1 | category = "fail" | COMMENT |
| LOW | …ould_fail/storage_field_access_on_non_struct/test.toml | 21 | #check: $()let _ = storage.s_01.non_existing_field.read(); | COMMENT |
| 872 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/src/e2e_vm_tests/mod.rs | 938 | pkg.built.descriptor.pinned.name.as_str(), | CODE |
| CRITICAL | test/src/e2e_vm_tests/mod.rs | 962 | pkg.built.descriptor.pinned.name.as_str(), | CODE |
| CRITICAL | …e_field_access_on_non_struct/test.dynamic_storage.toml | 27 | #check: $()let _ = storage.s_01.second.x.prev_not_a_struct.read(); | COMMENT |
| CRITICAL | …e_field_access_on_non_struct/test.dynamic_storage.toml | 38 | #check: $()let _ = storage.s_01.second.third.x.prev_not_a_struct.read(); | COMMENT |
| CRITICAL | …e_field_access_on_non_struct/test.dynamic_storage.toml | 44 | #check: $()let _ = storage.s_01.second.third.non_existing_field.read(); | COMMENT |
| CRITICAL | …ould_fail/storage_field_access_on_non_struct/test.toml | 26 | #check: $()let _ = storage.s_01.second.x.prev_not_a_struct.read(); | COMMENT |
| CRITICAL | …ould_fail/storage_field_access_on_non_struct/test.toml | 37 | #check: $()let _ = storage.s_01.second.third.x.prev_not_a_struct.read(); | COMMENT |
| CRITICAL | …ould_fail/storage_field_access_on_non_struct/test.toml | 43 | #check: $()let _ = storage.s_01.second.third.non_existing_field.read(); | COMMENT |
| CRITICAL | sway-core/src/semantic_analysis/namespace/trait_map.rs | 693 | prefixes: self_entry.inner.key.name.prefixes.clone(), | CODE |
| CRITICAL | sway-core/src/semantic_analysis/namespace/trait_map.rs | 694 | suffix: self_entry.inner.key.name.suffix.name.clone(), | CODE |
| CRITICAL | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1193 | prefixes: entry.inner.key.name.prefixes.clone(), | CODE |
| CRITICAL | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1194 | suffix: entry.inner.key.name.suffix.name.clone(), | CODE |
| CRITICAL⚡ | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1247 | prefixes: e.inner.key.name.prefixes.clone(), | CODE |
| CRITICAL⚡ | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1248 | suffix: e.inner.key.name.suffix.name.clone(), | CODE |
| CRITICAL⚡ | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1253 | && trait_type_args.len() == e.inner.key.name.suffix.args.len() | CODE |
| CRITICAL⚡ | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1256 | .zip(e.inner.key.name.suffix.args.iter()) | CODE |
| CRITICAL⚡ | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1344 | prefixes: entry.inner.key.name.prefixes.clone(), | CODE |
| CRITICAL⚡ | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1345 | suffix: entry.inner.key.name.suffix.name.clone(), | CODE |
| CRITICAL⚡ | sway-core/src/semantic_analysis/namespace/trait_map.rs | 1349 | .push((trait_call_path, entry.inner.key.name.suffix.args.clone())); | CODE |
| CRITICAL | …ore/src/semantic_analysis/namespace/trait_coherence.rs | 68 | let package_name = trait_entry.inner.key.name.prefixes.first().unwrap(); | CODE |
| CRITICAL | …ore/src/semantic_analysis/namespace/trait_coherence.rs | 179 | let trait_name = trait_entry.inner.key.name.suffix.name.to_string(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ould_fail/struct_field_privacy_instantiation/test.toml | 106 | # --------------------------------------------------- | COMMENT |
| MEDIUM | …ould_fail/struct_field_privacy_instantiation/test.toml | 183 | # --------------------------------------------------- | COMMENT |
| MEDIUM | …ould_fail/struct_instantiation_type_mismatch/test.toml | 67 | # ---------------------------------------------------- | COMMENT |
| MEDIUM | …rograms/should_fail/array_invalid_index_type/test.toml | 61 | #--------------------------------------------------- | COMMENT |
| MEDIUM | …/test_programs/should_pass/storage_benchmarks/bench.sh | 31 | # ── Output file ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/test_programs/should_pass/storage_benchmarks/bench.sh | 40 | # ── Main ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …t_programs/should_pass/storage_benchmarks/perf_diff.sh | 31 | # ── Argument validation ───────────────────────────────────────────── | COMMENT |
| MEDIUM | …t_programs/should_pass/storage_benchmarks/perf_diff.sh | 90 | # ── Parse benchmark data from a perf output file ──────────────────── | COMMENT |
| MEDIUM | …t_programs/should_pass/storage_benchmarks/perf_diff.sh | 126 | # ── Collect data ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …t_programs/should_pass/storage_benchmarks/perf_diff.sh | 156 | # ── Compute diffs and generate output ─────────────────────────────── | COMMENT |
| MEDIUM | …ms/should_pass/storage_benchmarks/bench_storage_vec.sh | 69 | # ── Helpers ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ms/should_pass/storage_benchmarks/bench_storage_vec.sh | 138 | # ── CSV output ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ms/should_pass/storage_benchmarks/bench_storage_vec.sh | 184 | # ── Main ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 22 | # ── Size → type mapping ──────────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 42 | # ── Helpers ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 143 | # ── Generate one project ─────────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 156 | # ── Forc.toml ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 173 | # ── test.toml ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 176 | # ── test.dynamic_storage.toml ──────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 182 | # ── src/main.sw ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 199 | # ── Empty-call baseline ────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 205 | # ── Populate baselines ────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 216 | # ── store_vec baselines ───────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 226 | # ── Operation methods ─────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 254 | # ── Test functions ────────────────────────────────────────── | COMMENT |
| MEDIUM | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 304 | # ── Main ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …should_pass/storage_benchmarks/bench_storage_fields.sh | 58 | # ── Helpers ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …should_pass/storage_benchmarks/bench_storage_fields.sh | 110 | # ── CSV output ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …should_pass/storage_benchmarks/bench_storage_fields.sh | 120 | # ── Main ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …rams/should_pass/storage_benchmarks/perf_diff_stats.sh | 16 | # ── Argument validation ───────────────────────────────────────────── | COMMENT |
| MEDIUM | …rams/should_pass/storage_benchmarks/perf_diff_stats.sh | 38 | # ── Parse CSV and compute stats ───────────────────────────────────── | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 55 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 70 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 72 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 89 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 91 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 121 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 123 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 157 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 159 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 191 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 193 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 233 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 235 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | forc-pkg/src/manifest/mod.rs | 664 | // While creating a `ManifestFile` we need to check if the given path corresponds to a | COMMENT |
| LOW | forc-pkg/src/manifest/mod.rs | 682 | // While creating a `ManifestFile` we need to check if the given path corresponds to a | COMMENT |
| LOW | forc-pkg/src/manifest/mod.rs | 1092 | // While creating a `ManifestFile` we need to check if the given path corresponds to a | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 584 | // Step 1: Liveness Analysis. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 587 | // Step 2: Construct the interference graph. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 591 | // Step 3: Remove redundant MOVE instructions using the interference graph. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 595 | // Step 4: Simplify - i.e. color the interference graph and return a stack that contains | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 659 | // Step 5: Use the stack to assign a register for each virtual register. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 661 | // Step 6: Update all instructions to use the resulting register pool. | COMMENT |
| LOW | sway-core/src/ir_generation/function.rs | 1820 | // Step 1: compile the user data and get its type | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1834 | // Step 2: build a struct with two fields: | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1841 | // Step 3: construct a local pointer for the message aggregate struct | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1856 | // Step 4: Convert the local variable into a value via `get_local`. | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1863 | // Step 5: Grab the message ID from `messages_types_map` and insert it as the | COMMENT |
| LOW | sway-core/src/ir_generation/function.rs | 1885 | // Step 6: Insert the user message data as the second field of the struct | COMMENT |
| LOW | sway-core/src/type_system/info.rs | 1558 | // TODO we need to check if this type has a custom AbiEncode impl or not | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | forc-pkg/src/source/git/mod.rs | 515 | /// NOTE: This function assumes that the caller has acquired an advisory lock to co-ordinate access | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 584 | // Step 1: Liveness Analysis. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 587 | // Step 2: Construct the interference graph. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 591 | // Step 3: Remove redundant MOVE instructions using the interference graph. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 595 | // Step 4: Simplify - i.e. color the interference graph and return a stack that contains | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 659 | // Step 5: Use the stack to assign a register for each virtual register. | COMMENT |
| LOW⚡ | sway-core/src/asm_generation/fuel/register_allocator.rs | 661 | // Step 6: Update all instructions to use the resulting register pool. | COMMENT |
| LOW | sway-core/src/ir_generation/function.rs | 1820 | // Step 1: compile the user data and get its type | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1834 | // Step 2: build a struct with two fields: | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1841 | // Step 3: construct a local pointer for the message aggregate struct | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1856 | // Step 4: Convert the local variable into a value via `get_local`. | COMMENT |
| LOW⚡ | sway-core/src/ir_generation/function.rs | 1863 | // Step 5: Grab the message ID from `messages_types_map` and insert it as the | COMMENT |
| LOW | sway-core/src/ir_generation/function.rs | 1885 | // Step 6: Insert the user message data as the second field of the struct | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | forc/src/cli/commands/test.rs | 53 | /// Number of threads to utilize when running the tests. By default, this is the number of | COMMENT |
| MEDIUM | scripts/test/run-tests.sh | 13 | # 3. SDK harness tests: build the contracts, then run the tests | COMMENT |
| MEDIUM | .github/workflows/scripts/check-sdk-harness-version.sh | 44 | # the SDK harness tested above. Keep this list explicit so a new program-type | COMMENT |
| MEDIUM | sway-core/src/asm_generation/from_ir.rs | 104 | Stack(u64), // Storage in the runtime stack starting at an absolute word offset. Essentially a global. | CODE |
| MEDIUM | sway-core/src/language/purity.rs | 6 | /// or could potentially access contract storage, it is [Purity::Impure]. If a function does not utilize any | COMMENT |
| MEDIUM | …ysis/ast_node/expression/match_expression/typed/mod.rs | 162 | //! Essentially, we have to extract the variables exactly from the variant that has matched. | COMMENT |
| MEDIUM | sway-ir/src/optimize/init_aggr_lowering.rs | 486 | // Essentially, we are treating the nested `init_aggr` as a **root for the rest of the lower | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/test_programs/should_pass/storage_benchmarks/bench.sh | 17 | # Usage: | COMMENT |
| LOW | …t_programs/should_pass/storage_benchmarks/perf_diff.sh | 6 | # Usage: | COMMENT |
| LOW | …ms/should_pass/storage_benchmarks/bench_storage_vec.sh | 23 | # Usage: | COMMENT |
| LOW | …_pass/storage_benchmarks/generate_storage_vec_bench.sh | 5 | # Usage: | COMMENT |
| LOW | …should_pass/storage_benchmarks/bench_storage_fields.sh | 15 | # Usage: | COMMENT |
| LOW | …rams/should_pass/storage_benchmarks/perf_diff_stats.sh | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …emantic_analysis/ast_node/declaration/auto_impl/mod.rs | 1 | //! This module contains common infrastructure for generating and parsing auto-generated code. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | update_fuel_dependencies.sh | 11 | # Define the list of fuel maintained crates | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | forc-pkg/src/source/ipfs.rs | 57 | // TODO: implement local cache search for ipfs sources. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …src/semantic_analysis/ast_node/declaration/trait_fn.rs | 95 | /// This function is used in trait declarations to insert "placeholder" | COMMENT |