Executive summary
TheAlgorithms/Rust falls short of our standard for production, in part because 205 files are no longer known to anyone active in the project. It scores 62 out of 100 and is rated Adequate, and all 16 of its critical findings are security problems in the build pipeline and in its automatic dependency updates.
Maturity, at 49, is the weakest lens and counts most in the score. The best first steps are recording design decisions and adding a diagnostic log, each worth about 6 points. Raising Maturity to 70 would lift the score to about 69.
Thirteen pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Two secrets can leak from the build pipeline, and one automatic update takes new releases before a bad one can be spotted. Pinning each tool to an exact version, limiting each secret to its own step and setting a waiting period for automatic updates would close these risks.
The product code is 54,215 lines, about €60,000 to rebuild.
If Maturity rose from 49 to 70, the lowest score rated Strong, the score would rise from 62 to about 69.
Rebuild cost: about €60,000 · Estimate
| Cost to rebuild | €20,000 to €100,000, for 333 to 1,055 hours of work, about 0.4 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.8 at a score of 62. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Medium: 54,215 lines of product code |
| What it is not | Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one. |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 backtracking.hamiltonian_cycle | 2 compression.huffman_encoding | 3 data_structures.b_tree | 4 dynamic_programming.knapsack | 5 geometry.point | 6 graph.disjoint_set_union | 7 machine_learning.decision_tree | 8 data_structures.avl_tree | 9 data_structures.linked_list | 10 data_structures.probabilistic.bloom_filter | 11 data_structures.probabilistic.count_min_sketch | 12 data_structures.rb_tree | 13 data_structures.trie | 14 general.huffman_encoding | 15 geometry.closest_points | 16 geometry.graham_scan | 17 geometry.jarvis_scan | 18 geometry.ramer_douglas_peucker | 19 geometry.segment | 20 graph.astar | 21 graph.bellman_ford | 22 graph.bipartite_matching | 23 graph.breadth_first_search | 24 graph.detect_cycle | 25 graph.dijkstra | 26 graph.dinic_maxflow | 27 graph.floyd_warshall | 28 data_structures.floyds_algorithm | 29 data_structures.graph | 30 data_structures.hash_table | 31 data_structures.heap | 32 data_structures.queue | 33 data_structures.skip_list | 34 data_structures.stack_using_singly_linked_list | 35 data_structures.treap | 36 dynamic_programming.word_break | 37 graph.depth_first_search | 38 graph.eulerian_path | 39 math.random | 40 general.fisher_yates_shuffle |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 backtracking.hamiltonian_cycle | ||||||||||||||||||||||||||||||||||||||||
| 2 compression.huffman_encoding | ||||||||||||||||||||||||||||||||||||||||
| 3 data_structures.b_tree | ||||||||||||||||||||||||||||||||||||||||
| 4 dynamic_programming.knapsack | ||||||||||||||||||||||||||||||||||||||||
| 5 geometry.point | ||||||||||||||||||||||||||||||||||||||||
| 6 graph.disjoint_set_union | ||||||||||||||||||||||||||||||||||||||||
| 7 machine_learning.decision_tree | ||||||||||||||||||||||||||||||||||||||||
| 8 data_structures.avl_tree | 1 | |||||||||||||||||||||||||||||||||||||||
| 9 data_structures.linked_list | 1 | |||||||||||||||||||||||||||||||||||||||
| 10 data_structures.probabilistic.bloom_filter | 3 | |||||||||||||||||||||||||||||||||||||||
| 11 data_structures.probabilistic.count_min_sketch | 2 | |||||||||||||||||||||||||||||||||||||||
| 12 data_structures.rb_tree | 1 | |||||||||||||||||||||||||||||||||||||||
| 13 data_structures.trie | 1 | |||||||||||||||||||||||||||||||||||||||
| 14 general.huffman_encoding | 2 | |||||||||||||||||||||||||||||||||||||||
| 15 geometry.closest_points | 1 | |||||||||||||||||||||||||||||||||||||||
| 16 geometry.graham_scan | 1 | |||||||||||||||||||||||||||||||||||||||
| 17 geometry.jarvis_scan | 1 | |||||||||||||||||||||||||||||||||||||||
| 18 geometry.ramer_douglas_peucker | 1 | |||||||||||||||||||||||||||||||||||||||
| 19 geometry.segment | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 graph.astar | 1 | |||||||||||||||||||||||||||||||||||||||
| 21 graph.bellman_ford | 1 | |||||||||||||||||||||||||||||||||||||||
| 22 graph.bipartite_matching | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 graph.breadth_first_search | 2 | 3 | ||||||||||||||||||||||||||||||||||||||
| 24 graph.detect_cycle | 2 | |||||||||||||||||||||||||||||||||||||||
| 25 graph.dijkstra | 1 | |||||||||||||||||||||||||||||||||||||||
| 26 graph.dinic_maxflow | 1 | |||||||||||||||||||||||||||||||||||||||
| 27 graph.floyd_warshall | 1 | |||||||||||||||||||||||||||||||||||||||
| 28 data_structures.floyds_algorithm | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 data_structures.graph | 2 | 2 | ||||||||||||||||||||||||||||||||||||||
| 30 data_structures.hash_table | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 data_structures.heap | 1 | |||||||||||||||||||||||||||||||||||||||
| 32 data_structures.queue | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 data_structures.skip_list | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 34 data_structures.stack_using_singly_linked_list | 2 | 3 | 1 | |||||||||||||||||||||||||||||||||||||
| 35 data_structures.treap | 1 | 4 | ||||||||||||||||||||||||||||||||||||||
| 36 dynamic_programming.word_break | 1 | |||||||||||||||||||||||||||||||||||||||
| 37 graph.depth_first_search | 2 | 1 | ||||||||||||||||||||||||||||||||||||||
| 38 graph.eulerian_path | 1 | |||||||||||||||||||||||||||||||||||||||
| 39 math.random | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 40 general.fisher_yates_shuffle | 1 |
8→4 data_structures.avl_tree uses dynamic_programming.knapsack✕
- Connections
- 1 pair of types, where a type in data_structures.avl_tree uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.data_structures.avl_tree.NodeIter→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- data_structures.avl_tree uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break data_structures.avl_tree, while a change to data_structures.avl_tree can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: data_structures.avl_tree uses a module listed above it, which is the healthy direction.
9→3 data_structures.linked_list uses data_structures.b_tree✕
- Connections
- 1 pair of types, where a type in data_structures.linked_list uses a type in data_structures.b_tree.
- The types involved
the_algorithms_rust.data_structures.linked_list.Node→the_algorithms_rust.data_structures.b_tree.Node
- Direction
- data_structures.linked_list uses data_structures.b_tree, so a change to data_structures.b_tree can break data_structures.linked_list, while a change to data_structures.linked_list can't break data_structures.b_tree.
- Position
- Below the diagonal: data_structures.linked_list uses a module listed above it, which is the healthy direction.
10→4 data_structures.probabilistic.bloom_filter uses dynamic_programming.knapsack✕
- Connections
- 3 pairs of types, where a type in data_structures.probabilistic.bloom_filter uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.data_structures.probabilistic.bloom_filter.BasicBloomFilter→the_algorithms_rust.dynamic_programming.knapsack.Itemthe_algorithms_rust.data_structures.probabilistic.bloom_filter.BloomFilter→the_algorithms_rust.dynamic_programming.knapsack.Itemthe_algorithms_rust.data_structures.probabilistic.bloom_filter.MultiBinaryBloomFilter→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- data_structures.probabilistic.bloom_filter uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break data_structures.probabilistic.bloom_filter, while a change to data_structures.probabilistic.bloom_filter can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: data_structures.probabilistic.bloom_filter uses a module listed above it, which is the healthy direction.
11→4 data_structures.probabilistic.count_min_sketch uses dynamic_programming.knapsack✕
- Connections
- 2 pairs of types, where a type in data_structures.probabilistic.count_min_sketch uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.data_structures.probabilistic.count_min_sketch.CountMinSketch→the_algorithms_rust.dynamic_programming.knapsack.Itemthe_algorithms_rust.data_structures.probabilistic.count_min_sketch.HashCountMinSketch→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- data_structures.probabilistic.count_min_sketch uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break data_structures.probabilistic.count_min_sketch, while a change to data_structures.probabilistic.count_min_sketch can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: data_structures.probabilistic.count_min_sketch uses a module listed above it, which is the healthy direction.
12→4 data_structures.rb_tree uses dynamic_programming.knapsack✕
- Connections
- 1 pair of types, where a type in data_structures.rb_tree uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.data_structures.rb_tree.RBTreeIterator→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- data_structures.rb_tree uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break data_structures.rb_tree, while a change to data_structures.rb_tree can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: data_structures.rb_tree uses a module listed above it, which is the healthy direction.
13→3 data_structures.trie uses data_structures.b_tree✕
- Connections
- 1 pair of types, where a type in data_structures.trie uses a type in data_structures.b_tree.
- The types involved
the_algorithms_rust.data_structures.trie.Trie→the_algorithms_rust.data_structures.b_tree.Node
- Direction
- data_structures.trie uses data_structures.b_tree, so a change to data_structures.b_tree can break data_structures.trie, while a change to data_structures.trie can't break data_structures.b_tree.
- Position
- Below the diagonal: data_structures.trie uses a module listed above it, which is the healthy direction.
14→2 general.huffman_encoding uses compression.huffman_encoding✕
- Connections
- 2 pairs of types, where a type in general.huffman_encoding uses a type in compression.huffman_encoding.
- The types involved
the_algorithms_rust.general.huffman_encoding.HuffmanDictionary→the_algorithms_rust.compression.huffman_encoding.HuffmanNodethe_algorithms_rust.general.huffman_encoding.HuffmanNode→the_algorithms_rust.compression.huffman_encoding.HuffmanNode
- Direction
- general.huffman_encoding uses compression.huffman_encoding, so a change to compression.huffman_encoding can break general.huffman_encoding, while a change to general.huffman_encoding can't break compression.huffman_encoding.
- Position
- Below the diagonal: general.huffman_encoding uses a module listed above it, which is the healthy direction.
15→5 geometry.closest_points uses geometry.point✕
- Connections
- 1 pair of types, where a type in geometry.closest_points uses a type in geometry.point.
- The types involved
the_algorithms_rust.geometry.closest_points.closest_points$module→the_algorithms_rust.geometry.point.Point
- Direction
- geometry.closest_points uses geometry.point, so a change to geometry.point can break geometry.closest_points, while a change to geometry.closest_points can't break geometry.point.
- Position
- Below the diagonal: geometry.closest_points uses a module listed above it, which is the healthy direction.
16→5 geometry.graham_scan uses geometry.point✕
- Connections
- 1 pair of types, where a type in geometry.graham_scan uses a type in geometry.point.
- The types involved
the_algorithms_rust.geometry.graham_scan.graham_scan$module→the_algorithms_rust.geometry.point.Point
- Direction
- geometry.graham_scan uses geometry.point, so a change to geometry.point can break geometry.graham_scan, while a change to geometry.graham_scan can't break geometry.point.
- Position
- Below the diagonal: geometry.graham_scan uses a module listed above it, which is the healthy direction.
17→5 geometry.jarvis_scan uses geometry.point✕
- Connections
- 1 pair of types, where a type in geometry.jarvis_scan uses a type in geometry.point.
- The types involved
the_algorithms_rust.geometry.jarvis_scan.jarvis_scan$module→the_algorithms_rust.geometry.point.Point
- Direction
- geometry.jarvis_scan uses geometry.point, so a change to geometry.point can break geometry.jarvis_scan, while a change to geometry.jarvis_scan can't break geometry.point.
- Position
- Below the diagonal: geometry.jarvis_scan uses a module listed above it, which is the healthy direction.
18→5 geometry.ramer_douglas_peucker uses geometry.point✕
- Connections
- 1 pair of types, where a type in geometry.ramer_douglas_peucker uses a type in geometry.point.
- The types involved
the_algorithms_rust.geometry.ramer_douglas_peucker.ramer_douglas_peucker$module→the_algorithms_rust.geometry.point.Point
- Direction
- geometry.ramer_douglas_peucker uses geometry.point, so a change to geometry.point can break geometry.ramer_douglas_peucker, while a change to geometry.ramer_douglas_peucker can't break geometry.point.
- Position
- Below the diagonal: geometry.ramer_douglas_peucker uses a module listed above it, which is the healthy direction.
19→5 geometry.segment uses geometry.point✕
- Connections
- 1 pair of types, where a type in geometry.segment uses a type in geometry.point.
- The types involved
the_algorithms_rust.geometry.segment.Segment→the_algorithms_rust.geometry.point.Point
- Direction
- geometry.segment uses geometry.point, so a change to geometry.point can break geometry.segment, while a change to geometry.segment can't break geometry.point.
- Position
- Below the diagonal: geometry.segment uses a module listed above it, which is the healthy direction.
20→1 graph.astar uses backtracking.hamiltonian_cycle✕
- Connections
- 1 pair of types, where a type in graph.astar uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.astar.astar$module→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.astar uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.astar, while a change to graph.astar can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.astar uses a module listed above it, which is the healthy direction.
21→1 graph.bellman_ford uses backtracking.hamiltonian_cycle✕
- Connections
- 1 pair of types, where a type in graph.bellman_ford uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.bellman_ford.bellman_ford$module→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.bellman_ford uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.bellman_ford, while a change to graph.bellman_ford can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.bellman_ford uses a module listed above it, which is the healthy direction.
22→1 graph.bipartite_matching uses backtracking.hamiltonian_cycle✕
- Connections
- 1 pair of types, where a type in graph.bipartite_matching uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.bipartite_matching.BipartiteMatching→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.bipartite_matching uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.bipartite_matching, while a change to graph.bipartite_matching can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.bipartite_matching uses a module listed above it, which is the healthy direction.
23→1 graph.breadth_first_search uses backtracking.hamiltonian_cycle✕
- Connections
- 2 pairs of types, where a type in graph.breadth_first_search uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.breadth_first_search.Node→the_algorithms_rust.backtracking.hamiltonian_cycle.Graphthe_algorithms_rust.graph.breadth_first_search.breadth_first_search$module→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.breadth_first_search uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.breadth_first_search, while a change to graph.breadth_first_search can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.breadth_first_search uses a module listed above it, which is the healthy direction.
23→3 graph.breadth_first_search uses data_structures.b_tree✕
- Connections
- 3 pairs of types, where a type in graph.breadth_first_search uses a type in data_structures.b_tree.
- The types involved
the_algorithms_rust.graph.breadth_first_search.Graph→the_algorithms_rust.data_structures.b_tree.Nodethe_algorithms_rust.graph.breadth_first_search.Node→the_algorithms_rust.data_structures.b_tree.Nodethe_algorithms_rust.graph.breadth_first_search.breadth_first_search$module→the_algorithms_rust.data_structures.b_tree.Node
- Direction
- graph.breadth_first_search uses data_structures.b_tree, so a change to data_structures.b_tree can break graph.breadth_first_search, while a change to graph.breadth_first_search can't break data_structures.b_tree.
- Position
- Below the diagonal: graph.breadth_first_search uses a module listed above it, which is the healthy direction.
24→29 graph.detect_cycle uses data_structures.graph part of a loop✕
- Connections
- 2 pairs of types, where a type in graph.detect_cycle uses a type in data_structures.graph.
- The types involved
the_algorithms_rust.graph.detect_cycle.detect_cycle$module→the_algorithms_rust.data_structures.graph.DirectedGraphthe_algorithms_rust.graph.detect_cycle.detect_cycle$module→the_algorithms_rust.data_structures.graph.UndirectedGraph
- Direction
- graph.detect_cycle uses data_structures.graph, so a change to data_structures.graph can break graph.detect_cycle, while a change to graph.detect_cycle can't break data_structures.graph.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
25→1 graph.dijkstra uses backtracking.hamiltonian_cycle✕
- Connections
- 1 pair of types, where a type in graph.dijkstra uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.dijkstra.dijkstra$module→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.dijkstra uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.dijkstra, while a change to graph.dijkstra can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.dijkstra uses a module listed above it, which is the healthy direction.
26→1 graph.dinic_maxflow uses backtracking.hamiltonian_cycle✕
- Connections
- 1 pair of types, where a type in graph.dinic_maxflow uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.dinic_maxflow.DinicMaxFlow→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.dinic_maxflow uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.dinic_maxflow, while a change to graph.dinic_maxflow can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.dinic_maxflow uses a module listed above it, which is the healthy direction.
27→1 graph.floyd_warshall uses backtracking.hamiltonian_cycle✕
- Connections
- 1 pair of types, where a type in graph.floyd_warshall uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.floyd_warshall.floyd_warshall$module→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.floyd_warshall uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.floyd_warshall, while a change to graph.floyd_warshall can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.floyd_warshall uses a module listed above it, which is the healthy direction.
28→9 data_structures.floyds_algorithm uses data_structures.linked_list✕
- Connections
- 1 pair of types, where a type in data_structures.floyds_algorithm uses a type in data_structures.linked_list.
- The types involved
the_algorithms_rust.data_structures.floyds_algorithm.floyds_algorithm$module→the_algorithms_rust.data_structures.linked_list.LinkedList
- Direction
- data_structures.floyds_algorithm uses data_structures.linked_list, so a change to data_structures.linked_list can break data_structures.floyds_algorithm, while a change to data_structures.floyds_algorithm can't break data_structures.linked_list.
- Position
- Below the diagonal: data_structures.floyds_algorithm uses a module listed above it, which is the healthy direction.
29→1 data_structures.graph uses backtracking.hamiltonian_cycle✕
- Connections
- 2 pairs of types, where a type in data_structures.graph uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.data_structures.graph.DirectedGraph→the_algorithms_rust.backtracking.hamiltonian_cycle.Graphthe_algorithms_rust.data_structures.graph.UndirectedGraph→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- data_structures.graph uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break data_structures.graph, while a change to data_structures.graph can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: data_structures.graph uses a module listed above it, which is the healthy direction.
29→24 data_structures.graph uses graph.detect_cycle✕
- Connections
- 2 pairs of types, where a type in data_structures.graph uses a type in graph.detect_cycle.
- The types involved
the_algorithms_rust.data_structures.graph.DirectedGraph→the_algorithms_rust.graph.detect_cycle.DetectCyclethe_algorithms_rust.data_structures.graph.UndirectedGraph→the_algorithms_rust.graph.detect_cycle.DetectCycle
- Direction
- data_structures.graph uses graph.detect_cycle, so a change to graph.detect_cycle can break data_structures.graph, while a change to data_structures.graph can't break graph.detect_cycle.
- Position
- Below the diagonal: data_structures.graph uses a module listed above it, which is the healthy direction.
30→9 data_structures.hash_table uses data_structures.linked_list✕
- Connections
- 1 pair of types, where a type in data_structures.hash_table uses a type in data_structures.linked_list.
- The types involved
the_algorithms_rust.data_structures.hash_table.HashTable→the_algorithms_rust.data_structures.linked_list.LinkedList
- Direction
- data_structures.hash_table uses data_structures.linked_list, so a change to data_structures.linked_list can break data_structures.hash_table, while a change to data_structures.hash_table can't break data_structures.linked_list.
- Position
- Below the diagonal: data_structures.hash_table uses a module listed above it, which is the healthy direction.
31→8 data_structures.heap uses data_structures.avl_tree✕
- Connections
- 1 pair of types, where a type in data_structures.heap uses a type in data_structures.avl_tree.
- The types involved
the_algorithms_rust.data_structures.heap.Heap→the_algorithms_rust.data_structures.avl_tree.Iter
- Direction
- data_structures.heap uses data_structures.avl_tree, so a change to data_structures.avl_tree can break data_structures.heap, while a change to data_structures.heap can't break data_structures.avl_tree.
- Position
- Below the diagonal: data_structures.heap uses a module listed above it, which is the healthy direction.
32→9 data_structures.queue uses data_structures.linked_list✕
- Connections
- 1 pair of types, where a type in data_structures.queue uses a type in data_structures.linked_list.
- The types involved
the_algorithms_rust.data_structures.queue.Queue→the_algorithms_rust.data_structures.linked_list.LinkedList
- Direction
- data_structures.queue uses data_structures.linked_list, so a change to data_structures.linked_list can break data_structures.queue, while a change to data_structures.queue can't break data_structures.linked_list.
- Position
- Below the diagonal: data_structures.queue uses a module listed above it, which is the healthy direction.
33→4 data_structures.skip_list uses dynamic_programming.knapsack✕
- Connections
- 1 pair of types, where a type in data_structures.skip_list uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.data_structures.skip_list.Iter→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- data_structures.skip_list uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break data_structures.skip_list, while a change to data_structures.skip_list can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: data_structures.skip_list uses a module listed above it, which is the healthy direction.
33→8 data_structures.skip_list uses data_structures.avl_tree✕
- Connections
- 1 pair of types, where a type in data_structures.skip_list uses a type in data_structures.avl_tree.
- The types involved
the_algorithms_rust.data_structures.skip_list.SkipList→the_algorithms_rust.data_structures.avl_tree.Iter
- Direction
- data_structures.skip_list uses data_structures.avl_tree, so a change to data_structures.avl_tree can break data_structures.skip_list, while a change to data_structures.skip_list can't break data_structures.avl_tree.
- Position
- Below the diagonal: data_structures.skip_list uses a module listed above it, which is the healthy direction.
34→3 data_structures.stack_using_singly_linked_list uses data_structures.b_tree✕
- Connections
- 2 pairs of types, where a type in data_structures.stack_using_singly_linked_list uses a type in data_structures.b_tree.
- The types involved
the_algorithms_rust.data_structures.stack_using_singly_linked_list.Iter→the_algorithms_rust.data_structures.b_tree.Nodethe_algorithms_rust.data_structures.stack_using_singly_linked_list.IterMut→the_algorithms_rust.data_structures.b_tree.Node
- Direction
- data_structures.stack_using_singly_linked_list uses data_structures.b_tree, so a change to data_structures.b_tree can break data_structures.stack_using_singly_linked_list, while a change to data_structures.stack_using_singly_linked_list can't break data_structures.b_tree.
- Position
- Below the diagonal: data_structures.stack_using_singly_linked_list uses a module listed above it, which is the healthy direction.
34→4 data_structures.stack_using_singly_linked_list uses dynamic_programming.knapsack✕
- Connections
- 3 pairs of types, where a type in data_structures.stack_using_singly_linked_list uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.data_structures.stack_using_singly_linked_list.IntoIter→the_algorithms_rust.dynamic_programming.knapsack.Itemthe_algorithms_rust.data_structures.stack_using_singly_linked_list.Iter→the_algorithms_rust.dynamic_programming.knapsack.Itemthe_algorithms_rust.data_structures.stack_using_singly_linked_list.IterMut→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- data_structures.stack_using_singly_linked_list uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break data_structures.stack_using_singly_linked_list, while a change to data_structures.stack_using_singly_linked_list can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: data_structures.stack_using_singly_linked_list uses a module listed above it, which is the healthy direction.
34→8 data_structures.stack_using_singly_linked_list uses data_structures.avl_tree✕
- Connections
- 1 pair of types, where a type in data_structures.stack_using_singly_linked_list uses a type in data_structures.avl_tree.
- The types involved
the_algorithms_rust.data_structures.stack_using_singly_linked_list.Stack→the_algorithms_rust.data_structures.avl_tree.Iter
- Direction
- data_structures.stack_using_singly_linked_list uses data_structures.avl_tree, so a change to data_structures.avl_tree can break data_structures.stack_using_singly_linked_list, while a change to data_structures.stack_using_singly_linked_list can't break data_structures.avl_tree.
- Position
- Below the diagonal: data_structures.stack_using_singly_linked_list uses a module listed above it, which is the healthy direction.
35→4 data_structures.treap uses dynamic_programming.knapsack✕
- Connections
- 1 pair of types, where a type in data_structures.treap uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.data_structures.treap.NodeIter→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- data_structures.treap uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break data_structures.treap, while a change to data_structures.treap can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: data_structures.treap uses a module listed above it, which is the healthy direction.
35→8 data_structures.treap uses data_structures.avl_tree✕
- Connections
- 4 pairs of types, where a type in data_structures.treap uses a type in data_structures.avl_tree.
- The types involved
the_algorithms_rust.data_structures.treap.Iter→the_algorithms_rust.data_structures.avl_tree.NodeIterthe_algorithms_rust.data_structures.treap.Treap→the_algorithms_rust.data_structures.avl_tree.Iterthe_algorithms_rust.data_structures.treap.Treap→the_algorithms_rust.data_structures.avl_tree.NodeIterthe_algorithms_rust.data_structures.treap.TreapNode→the_algorithms_rust.data_structures.avl_tree.Side
- Direction
- data_structures.treap uses data_structures.avl_tree, so a change to data_structures.avl_tree can break data_structures.treap, while a change to data_structures.treap can't break data_structures.avl_tree.
- Position
- Below the diagonal: data_structures.treap uses a module listed above it, which is the healthy direction.
36→13 dynamic_programming.word_break uses data_structures.trie✕
- Connections
- 1 pair of types, where a type in dynamic_programming.word_break uses a type in data_structures.trie.
- The types involved
the_algorithms_rust.dynamic_programming.word_break.word_break$module→the_algorithms_rust.data_structures.trie.Trie
- Direction
- dynamic_programming.word_break uses data_structures.trie, so a change to data_structures.trie can break dynamic_programming.word_break, while a change to dynamic_programming.word_break can't break data_structures.trie.
- Position
- Below the diagonal: dynamic_programming.word_break uses a module listed above it, which is the healthy direction.
37→1 graph.depth_first_search uses backtracking.hamiltonian_cycle✕
- Connections
- 2 pairs of types, where a type in graph.depth_first_search uses a type in backtracking.hamiltonian_cycle.
- The types involved
the_algorithms_rust.graph.depth_first_search.Vertex→the_algorithms_rust.backtracking.hamiltonian_cycle.Graphthe_algorithms_rust.graph.depth_first_search.depth_first_search$module→the_algorithms_rust.backtracking.hamiltonian_cycle.Graph
- Direction
- graph.depth_first_search uses backtracking.hamiltonian_cycle, so a change to backtracking.hamiltonian_cycle can break graph.depth_first_search, while a change to graph.depth_first_search can't break backtracking.hamiltonian_cycle.
- Position
- Below the diagonal: graph.depth_first_search uses a module listed above it, which is the healthy direction.
37→23 graph.depth_first_search uses graph.breadth_first_search✕
- Connections
- 1 pair of types, where a type in graph.depth_first_search uses a type in graph.breadth_first_search.
- The types involved
the_algorithms_rust.graph.depth_first_search.Graph→the_algorithms_rust.graph.breadth_first_search.Edge
- Direction
- graph.depth_first_search uses graph.breadth_first_search, so a change to graph.breadth_first_search can break graph.depth_first_search, while a change to graph.depth_first_search can't break graph.breadth_first_search.
- Position
- Below the diagonal: graph.depth_first_search uses a module listed above it, which is the healthy direction.
38→9 graph.eulerian_path uses data_structures.linked_list✕
- Connections
- 1 pair of types, where a type in graph.eulerian_path uses a type in data_structures.linked_list.
- The types involved
the_algorithms_rust.graph.eulerian_path.EulerianPathSolver→the_algorithms_rust.data_structures.linked_list.LinkedList
- Direction
- graph.eulerian_path uses data_structures.linked_list, so a change to data_structures.linked_list can break graph.eulerian_path, while a change to graph.eulerian_path can't break data_structures.linked_list.
- Position
- Below the diagonal: graph.eulerian_path uses a module listed above it, which is the healthy direction.
39→4 math.random uses dynamic_programming.knapsack✕
- Connections
- 1 pair of types, where a type in math.random uses a type in dynamic_programming.knapsack.
- The types involved
the_algorithms_rust.math.random.IterMut→the_algorithms_rust.dynamic_programming.knapsack.Item
- Direction
- math.random uses dynamic_programming.knapsack, so a change to dynamic_programming.knapsack can break math.random, while a change to math.random can't break dynamic_programming.knapsack.
- Position
- Below the diagonal: math.random uses a module listed above it, which is the healthy direction.
39→34 math.random uses data_structures.stack_using_singly_linked_list✕
- Connections
- 1 pair of types, where a type in math.random uses a type in data_structures.stack_using_singly_linked_list.
- The types involved
the_algorithms_rust.math.random.PCG32→the_algorithms_rust.data_structures.stack_using_singly_linked_list.IterMut
- Direction
- math.random uses data_structures.stack_using_singly_linked_list, so a change to data_structures.stack_using_singly_linked_list can break math.random, while a change to math.random can't break data_structures.stack_using_singly_linked_list.
- Position
- Below the diagonal: math.random uses a module listed above it, which is the healthy direction.
40→39 general.fisher_yates_shuffle uses math.random✕
- Connections
- 1 pair of types, where a type in general.fisher_yates_shuffle uses a type in math.random.
- The types involved
the_algorithms_rust.general.fisher_yates_shuffle.fisher_yates_shuffle$module→the_algorithms_rust.math.random.PCG32
- Direction
- general.fisher_yates_shuffle uses math.random, so a change to math.random can break general.fisher_yates_shuffle, while a change to general.fisher_yates_shuffle can't break math.random.
- Position
- Below the diagonal: general.fisher_yates_shuffle uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 16 | High / Critical |
| A02:2025 — Security Misconfiguration | 1 | Medium |
Roadmap
Begin by resolving the 205 orphaned files in the Knowledge Freshness dimension, prioritizing huffman_encoding.rs, mod.rs, and energy.rs. Next, establish architectural clarity by documenting significant design decisions in a dedicated ADR folder and expand the README with getting-started instructions and a project map. Strengthen observability by adding verbose logging to error paths to aid debugging, and maintain release hygiene by implementing a changelog to track shipped changes.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them. | +6.3 pts | Medium | Architecture documentation |
| Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce. | +5.9 pts | Medium | Observability |
| Expand the README with getting-started, architecture overview and a project map. | +5.9 pts | Medium | Documentation (README) |
| Resolve the 205 Orphaned file finding(s) in Knowledge Freshness — start with huffman_encoding.rs (2), mod.rs (2), energy.rs. | +8.9 pts | High | Knowledge Freshness |
| Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release. | +2.3 pts | Medium | Release Hygiene |
| Resolve the 3 Off-boarding risk finding(s) in Bus Factor. | +1.1 pts | Low | Bus Factor |
| Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. | +0.8 pts | Low | Project Cohesion |
| Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. | +0.6 pts | Low | Static Analysis (SAST) |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 4.6 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| src/data_structures/rb_tree.rs | 7.0 | Mixed | Cyclomatic Complexity: the_algorithms_rust::data_structures::rb_tree::delete_fixup (cyclomatic 16) |
| src/data_structures/avl_tree.rs | 7.2 | Mixed | Code Duplication: Duplicated block (12 lines × 2) |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| src/math/elliptic_curve.rs | 7.3 | Mixed | Explicit Debt: TodoComment |
| src/math/field.rs | 7.3 | Mixed | Explicit Debt: TodoComment |
| src/data_structures/skip_list.rs | 7.4 | Mixed | Cognitive Complexity: SkipList::delete (cognitive 28) |
| src/ciphers/chacha.rs | 7.4 | Mixed | Code Duplication: Edited copy of a member (19 corresponding lines) |
| src/hashing/sha2.rs | 7.4 | Mixed | Code Duplication: Duplicated block (14 lines × 2) |
| src/graph/bellman_ford.rs | 7.8 | Mixed | Cyclomatic Complexity: the_algorithms_rust::graph::bellman_ford::bellman_ford (cyclomatic 18) |
| src/geometry/closest_points.rs | 7.8 | Mixed | Cyclomatic Complexity: the_algorithms_rust::geometry::closest_points::closest_points_aux (cyclomatic 17) |
| src/math/infix_to_postfix.rs | 7.8 | Mixed | Cyclomatic Complexity: the_algorithms_rust::math::infix_to_postfix::infix_to_postfix (cyclomatic 16) |
| src/graph/floyd_warshall.rs | 7.8 | Mixed | Cognitive Complexity: the_algorithms_rust::graph::floyd_warshall::floyd_warshall (cognitive 34) |
| src/machine_learning/support_vector_classifier.rs | 7.8 | Mixed | Cognitive Complexity: SVC::solve_dual (cognitive 26) |
| src/machine_learning/decision_tree.rs | 7.8 | Mixed | Cognitive Complexity: the_algorithms_rust::machine_learning::decision_tree::build_tree (cognitive 21) |
| src/compression/huffman_encoding.rs | 7.8 | Mixed | Cognitive Complexity: the_algorithms_rust::compression::huffman_encoding::demonstrate_huffman_from_file (cognitive 20) |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 40 of 40 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 40 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 303 of 315 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | — | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT READ here — but this repository measures it: a coverage step in CI (`cargo llvm-cov`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.rs), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- D19 Documentation Quality — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
- D19 Documentation Quality — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
- D21 Naming Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
- D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
- D24 Comment Value — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- D44 Platform End-of-Life — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via Dockerfile (REDACTED). docker build failed (exit 1) — 1 | >>> FROM gitpod/workspace-rust:2024-06-05-14-45-28 2 | 3 | USER gitpod -------------------- ERROR: failed to solve: gitpod/workspace-rust:2024-06-05-14-45-28: failed to resolve source metadata for docker.io/gitpod/workspace-rust:2024-06-05-14-45-28: failed to do request: Head "https://registry-1.docker.io/v2/gitpod/workspace-rust/manifests/2024-06-05-14-45-28": Forbidden; runtime evidence skipped.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby or Scala was found, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby or Scala was found, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
- X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java, TypeScript/JavaScript, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart and Ruby source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart or Ruby was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and PHP, Java, Kotlin, Python, Ruby, Scala, Dart, Swift, Erlang, Go and JavaScript/TypeScript source only, and no C# was loaded and no PHP, Java, Kotlin, Python, Ruby, Scala, Dart, Swift, Erlang, Go, JavaScript or TypeScript was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax and MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
Dimensions
D1 · Cyclomatic Complexity
4 function(s) exceeded the cyclomatic complexity threshold of 15; the worst was the_algorithms_rust::graph::bellman_ford::bellman_ford at 18. A further 13 function(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being EnergyUnit::to_joule at 45 — they are counted neither in the figure above nor in this dimension's score. 6 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: src/conversions/energy.rs (EnergyUnit::to_joule at 45), src/conversions/volume.rs (VolumeUnit::to_cubic_meters at 33), src/ciphers/polybius.rs (the_algorithms_rust::ciphers::polybius::decode_ascii at 27), src/conversions/pressure.rs (PressureUnit::from_str at 26), src/conversions/weight.rs (WeightUnit::from_str at 24), and 1 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
What to do
- Bring the 4 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with the_algorithms_rust::graph::bellman_ford::bellman_ford (cyclomatic 18), the_algorithms_rust::geometry::closest_points::closest_points_aux (cyclomatic 17), the_algorithms_rust::data_structures::rb_tree::delete_fixup (cyclomatic 16). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 4 together lifts Cyclomatic Complexity from 9.5 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
27 function(s) exceeded the cognitive complexity threshold of 15; the worst was the_algorithms_rust::graph::bellman_ford::bellman_ford at 39.
What to do
- Bring the 27 bodies over 15 down to 15 or less in Cognitive Complexity — start with the_algorithms_rust::graph::bellman_ford::bellman_ford (cognitive 39), the_algorithms_rust::data_structures::rb_tree::delete_fixup (cognitive 34), the_algorithms_rust::graph::floyd_warshall::floyd_warshall (cognitive 34). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 27 together lifts Cognitive Complexity from 7.0 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
0 over-large unit(s) detected — types, modules or files that carry too much.
D4 · Code Duplication
37 duplicated block group(s) detected. A further 3 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
What to do
- Resolve the 6 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with naive.rs, random_forest.rs, support_vector_classifier.rs. — One of this dimension's main actionable groups (6 warning-level).
- Resolve the 5 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with hill_cipher.rs, rgb_hsv_conversion.rs, rhumbline.rs. — One of this dimension's main actionable groups (5 warning-level).
- Resolve the 5 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with chacha.rs (2), aes.rs, tea.rs. — One of this dimension's main actionable groups (5 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 70 classes have LCOM4 above 3.
D9 · Test Distribution
1652 test methods: 1652 unit, 0 integration, 0 BDD, 0 e2e. The Rust suite contributes 1652 `#[test]` function(s) across 392 file(s) declaring at least one; its unit/integration split is Cargo's own — 0 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
D11 · Test Reliability
0 flaky across 1 measured tier(s). Rust (repository root, 392 test files): measured (0 flaky).
D12 · Dependency Hygiene
0 outdated, 0 yanked direct Cargo dependencies. Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from Cargo.lock there.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 31 shipped crate(s) use a banned license. Licences were resolved from crates.io over the crates a consumer compiles — this repository commits no Cargo.lock, so its graph was resolved here: its manifests' `[dependencies]` and `[build-dependencies]` closed over the crates.io index, each crate at the newest release its requirement admits (what a fresh `cargo generate-lockfile` picks, not a graph the repository has pinned). Crates it asks for ONLY under `[dev-dependencies]` are excluded: they are not compiled by anything that depends on this repository.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D16 · Bus Factor
22 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/ciphers/aes.rs. Counted over 242 of the 407 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D17 · Explicit Debt
5 deducted task-comment markers across 54215 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 5 TodoComment finding(s) in Explicit Debt — start with elliptic_curve.rs (2), field.rs (2), mex.rs. — One of this dimension's main actionable groups (5 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D26 · Project Cohesion
1 of 1 build units (Cargo) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
16 finding(s): 0 critical, 16 high, 0 medium, 0 low. 13 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- No action in Static Analysis (SAST) — all 13 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (13 issue-level, 0 of them charged here).
D31 · IaC & Container Security
1 finding(s): 0 critical, 0 high, 1 medium, 0 low.
What to do
- Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D34 · Knowledge Freshness
208 of 242 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/conversions/weight.rs. Counted over 242 of the 407 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 205 Orphaned file finding(s) in Knowledge Freshness — start with huffman_encoding.rs (2), mod.rs (2), energy.rs. — One of this dimension's main actionable groups (205 recommendation-level).
- Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with weight.rs, depreciation.rs, rb_tree.rs. — One of this dimension's main actionable groups (3 recommendation-level).
- Resolve the 1 Concentrated knowledge decay finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
Frontend & cross-cutting dimensions
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX9 · CQS / query purity
M1 · Documentation (README)
- The root README is 95 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise — or with no heading at all — is not seen and this row may understate what the document covers.
- 28 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
What to do
- Expand the README with getting-started, architecture overview and a project map.
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 1 of 1 project(s) that lack one — worth up to 2 pts.
- Review the README against recent changes; refresh the parts that drifted.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P10 · Library API & versioning
P2 · Observability
- No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
What to do
- Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
P3 · Security & performance tooling
What to do
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
X1 · Async correctness
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X21 · Side-effecting pattern guard
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X30 · Support guard that admits what it rejects
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 96% | Exemplary | Strongest area. |
| Architecture | 88% | Adequate — gated by D26 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 49% | Weak — gated by D34, M1, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 57% | Adequate — gated by P2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 86% | Strong | Solid. |
Unscored — 3 check(s) recorded observations but carry no score
- P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
- X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
- X7 Silent fallback defaults — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 75 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — Not applicable: Rust with no dependency-injection crate has no container to hand one lifetime's instance to another — every value is owned by the code that builds it, and the borrow checker rejects a longer-lived value keeping a borrow of a shorter-lived one.
- AX2 Stateful singletons — Not applicable: Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written.
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — docker build failed (exit 1) — 1 | >>> FROM gitpod/workspace-rust:2024-06-05-14-45-28 2 | 3 | USER gitpod -------------------- ERROR: failed to solve: gitpod/workspace-rust:2024-06-05-14-45-28: failed to resolve source metadata for docker.io/gitpod/workspace-rust:2024-06-05-14-45-28: failed to do request: Head "https://registry-1.docker.io/v2/gitpod/workspace-rust/manifests/2024-06-05-14-45-28": Forbidden; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no data at rest for these controls to protect.
- C2 Access Controls — No access-control surface detected in the analyzed source — this repository starts no server another machine can reach (no actix-web HttpServer, axum::serve, Rocket launch, warp::serve, poem or salvo Server, tonic Server::builder, hyper or tiny_http server outside examples and tests, none bound beyond loopback). Access control is therefore N/A here — a crate is authorized by the application that serves it, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over.
- D10 Test Quality — ~0 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D19 Documentation Quality — D19 reads .NET projects as units only; 2 folder(s) declared by Cargo.toml were not judged for an overview, an example or the map.
- D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
- D21 Naming Consistency — Naming consistency is measured on C# only; Rust not measured.
- D22 Internal API Consistency — API consistency is measured on C# only; the exposed Rust surface was not measured.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — D24 reads C# and Visual Basic comments only — this repository's production source is .rs, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.rs), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D36 Supply-chain Provenance & Signing — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release).
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
- D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
- D5 Coupling — Not applicable — this Cargo build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (18 value object(s))
- ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Rust source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `#[bench]`, criterion's `bench_function`/`bench_with_input`, `#[divan::bench]` or `#[library_benchmark]` in any `.rs` file, or criterion, divan, iai or a `[[bench]]` target in a Cargo.toml, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: Rust spells out every heap allocation and makes borrowed slices (&[T], &str) its ordinary parameter types, so the allocation-aware style this card rewards elsewhere is the language's baseline rather than a rung to climb.
- PF3 Async & latency hygiene — Not applicable: this repository declares no async functions, so there is no asynchronous code for a blocking call to stall.
- S1 Web-Security Posture — No web surface: 421 Rust file(s) were read for weak hashes and ciphers, key material fixed in the source, disabled TLS certificate validation and obsolete TLS versions, and none was found. This repository serves no HTTP of its own — no HTTP-server crate (actix-web, axum, Rocket, warp, poem, tide, salvo, tonic, a hyper server, …) among its Cargo manifests' run-time dependencies, and no server started in its production source — so HTTPS enforcement, HSTS, cookie flags and input validation are N/A here, as they are for a C# library or worker. If this codebase starts serving HTTP, the dimension reactivates automatically.
- X12 Unreachable branch — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X13 Undrained process stream — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X16 Unfloored truncation loop — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X17 Uncapped recursion over a caller-supplied document — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X18 Disposal-pattern correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X19 Unrestored process-global state — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X2 Cancellation propagation — no C# was loaded; this repository's Rust was read, and no request in it can be cancelled by a caller — a Rust request takes no token: a future is cancelled by dropping it, from outside the call (select!, a timeout, an aborted task), and reqwest, hyper and tonic take none
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X22 Contradicted release guard — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X23 Unguarded diagnostic materialisation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X25 Inert configuration knob — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. Rust's compiler refuses the unsynchronised version: a collection shared between a callback's thread and the waiting body must be `Sync`, which a `Vec`, `VecDeque` or `HashMap` is only behind a `Mutex`/`RwLock`, so the race this check looks for cannot be written in safe Rust. Not a gap in the analyzer and not a finding about your code.
- X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Rust was read, and it logs through none: the `log` crate's macros take one finished message (as log4net does in C#; its `kv` values are an opt-in its backends mostly drop), `println!`/`eprintln!` are not loggers, or it makes no log call outside its tests and examples at all. Calls through `tracing` (`tracing::info!`, or `info!` imported from it) would be judged.
- X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 16 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 80 finding(s)
- the_algorithms_rust::graph::bellman_ford::bellman_ford (cognitive 39) src/graph/bellman_ford.rs:14
- the_algorithms_rust::data_structures::rb_tree::delete_fixup (cognitive 34) src/data_structures/rb_tree.rs:362
- the_algorithms_rust::graph::floyd_warshall::floyd_warshall (cognitive 34) src/graph/floyd_warshall.rs:17
- the_algorithms_rust::geometry::closest_points::closest_points_aux (cognitive 30) src/geometry/closest_points.rs:29
- the_algorithms_rust::graph::page_rank::page_rank (cognitive 26) src/graph/page_rank.rs:14
- the_algorithms_rust::graph::depth_first_search_tic_tac_toe::main (cognitive 24) src/graph/depth_first_search_tic_tac_toe.rs:60
- the_algorithms_rust::dynamic_programming::optimal_bst::optimal_search_tree (cognitive 23) src/dynamic_programming/optimal_bst.rs:13
- the_algorithms_rust::data_structures::rb_tree::insert_fixup (cognitive 22) src/data_structures/rb_tree.rs:237
- the_algorithms_rust::geometry::jarvis_scan::jarvis_march (cognitive 22) src/geometry/jarvis_scan.rs:6
- the_algorithms_rust::machine_learning::cholesky::cholesky (cognitive 22) src/machine_learning/cholesky.rs:1
- the_algorithms_rust::math::infix_to_postfix::infix_to_postfix (cognitive 22) src/math/infix_to_postfix.rs:8
- the_algorithms_rust::sorting::cycle_sort::cycle_sort (cognitive 22) src/sorting/cycle_sort.rs:3
- the_algorithms_rust::machine_learning::decision_tree::build_tree (cognitive 21) src/machine_learning/decision_tree.rs:180
- the_algorithms_rust::compression::huffman_encoding::demonstrate_huffman_from_file (cognitive 20) src/compression/huffman_encoding.rs:303
- the_algorithms_rust::math::miller_rabin::big_miller_rabin (cognitive 19) src/math/miller_rabin.rs:67
- the_algorithms_rust::math::postfix_evaluation::evaluate_postfix (cognitive 19) src/math/postfix_evaluation.rs:34
- the_algorithms_rust::string::suffix_array::generate_suffix_array (cognitive 19) src/string/suffix_array.rs:30
- the_algorithms_rust::geometry::graham_scan::graham_scan (cognitive 18) src/geometry/graham_scan.rs:15
- the_algorithms_rust::string::manacher::manacher (cognitive 17) src/string/manacher.rs:1
- the_algorithms_rust::graph::topological_sort::topological_sort (cognitive 16) src/graph/topological_sort.rs:16
- the_algorithms_rust::sorting::cocktail_shaker_sort::cocktail_shaker_sort (cognitive 16) src/sorting/cocktail_shaker_sort.rs:1
- Duplicated block (7 lines × 2) src/general/permutations/naive.rs:7
- Duplicated block (7 lines × 2) src/machine_learning/random_forest.rs:34
- Duplicated block (7 lines × 2) src/machine_learning/support_vector_classifier.rs:263
- Duplicated block (7 lines × 2) src/math/matrix_ops.rs:125
- Duplicated block (7 lines × 2) src/compression/huffman_encoding.rs:117
- Duplicated block (7 lines × 2) src/data_structures/lazy_segment_tree.rs:63
- TodoComment src/math/elliptic_curve.rs:100
- TodoComment src/math/elliptic_curve.rs:110
- TodoComment src/math/field.rs:41
- TodoComment src/math/field.rs:212
- TodoComment src/general/mex.rs:15
- Duplicated block (9 lines × 2) src/ciphers/hill_cipher.rs:211
- Duplicated block (9 lines × 2) src/conversions/rgb_hsv_conversion.rs:68
- Duplicated block (9 lines × 2) src/navigation/rhumbline.rs:9
- Duplicated block (9 lines × 2) src/math/mersenne_primes.rs:14
- Duplicated block (9 lines × 2) src/hashing/sha2.rs:71
- Duplicated block (6 lines × 2) src/ciphers/aes.rs:237
- Duplicated block (6 lines × 2) src/ciphers/chacha.rs:99
- Duplicated block (6 lines × 2) src/ciphers/tea.rs:17
- Duplicated block (6 lines × 2) src/navigation/rhumbline.rs:17
- Duplicated block (6 lines × 2) src/ciphers/chacha.rs:87
- the_algorithms_rust::graph::bellman_ford::bellman_ford (cyclomatic 18) src/graph/bellman_ford.rs:14
- the_algorithms_rust::geometry::closest_points::closest_points_aux (cyclomatic 17) src/geometry/closest_points.rs:29
- the_algorithms_rust::data_structures::rb_tree::delete_fixup (cyclomatic 16) src/data_structures/rb_tree.rs:362
- the_algorithms_rust::math::infix_to_postfix::infix_to_postfix (cyclomatic 16) src/math/infix_to_postfix.rs:8
- Duplicated block (12 lines × 2) src/data_structures/avl_tree.rs:292
- Duplicated block (12 lines × 2) src/data_structures/rb_tree.rs:529
- Duplicated block (12 lines × 2) src/hashing/sha2.rs:89
- Duplicated block (5 lines × 2) src/data_structures/avl_tree.rs:135
- Duplicated block (5 lines × 2) src/ciphers/tea.rs:53
- Duplicated block (5 lines × 2) src/graph/floyd_warshall.rs:21
- SkipList::delete (cognitive 28) src/data_structures/skip_list.rs:154
- SkipList::insert (cognitive 21) src/data_structures/skip_list.rs:95
- Duplicated block (10 lines × 2) src/data_structures/avl_tree.rs:44
- Duplicated block (10 lines × 2) src/math/fast_fourier_transform.rs:126
- Duplicated block (8 lines × 2) src/searching/ternary_search_min_max_recursive.rs:8
- Duplicated block (8 lines × 2) src/graph/breadth_first_search.rs:79
- SVC::solve_dual (cognitive 26) src/machine_learning/support_vector_classifier.rs:178
- RBTree::delete (cognitive 24) src/data_structures/rb_tree.rs:91
- GeneticAlgorithm::solve (cognitive 19) src/general/genetic.rs:174
- RandomForest::predict (cognitive 17) src/machine_learning/random_forest.rs:134
- REDACTED
- Edited copy of a member (19 corresponding lines) src/ciphers/chacha.rs:86
- Edited copy of a member (29 corresponding lines) src/ciphers/vernam.rs:40
- Members sharing a duplicated core (4 members, 50+ identical tokens) src/hashing/md5.rs:35
- Duplicated block (48 lines × 2) src/conversions/volume.rs:65
- Duplicated block (27 lines × 2) src/ciphers/vernam.rs:41
- Duplicated block (26 lines × 2) src/data_structures/skip_list.rs:96
- Duplicated block (14–23 lines × 2) src/data_structures/rb_tree.rs:393
- Duplicated block (13–21 lines × 2) src/data_structures/rb_tree.rs:416
- Duplicated block (17–18 lines × 2) src/data_structures/rb_tree.rs:262
- Duplicated block (18 lines × 2) src/searching/ternary_search_min_max.rs:8
- Duplicated block (15 lines × 3) src/machine_learning/decision_tree.rs:31
- Duplicated block (14 lines × 2) src/hashing/sha2.rs:104
- Duplicated block (11 lines × 2) src/data_structures/avl_tree.rs:112
- Duplicated block (4–6 lines × 4) src/hashing/md5.rs:77
- README may be stale
- Coverage collected but not gated
- No structured logging
Minor — 219 finding(s)
- Orphaned file src/conversions/energy.rs:1
- Orphaned file src/general/genetic.rs:1
- Orphaned file src/compression/huffman_encoding.rs:1
- Orphaned file src/conversions/volume.rs:1
- Orphaned file src/conversions/pressure.rs:1
- Orphaned file src/data_structures/linked_list.rs:1
- Orphaned file src/bit_manipulation/binary_shifts.rs:1
- Orphaned file src/machine_learning/decision_tree.rs:1
- Orphaned file src/ciphers/diffie_hellman.rs:1
- Orphaned file src/dynamic_programming/smith_waterman.rs:1
- Orphaned file src/conversions/rgb_hsv_conversion.rs:1
- Orphaned file src/math/matrix_ops.rs:1
- Orphaned file src/machine_learning/random_forest.rs:1
- Orphaned file src/compression/lz77.rs:1
- Orphaned file src/backtracking/graph_coloring.rs:1
- Orphaned file src/dynamic_programming/knapsack.rs:1
- Orphaned file src/backtracking/rat_in_maze.rs:1
- Orphaned file src/math/elliptic_curve.rs:1
- Orphaned file src/general/huffman_encoding.rs:1
- Orphaned file src/ciphers/hill_cipher.rs:1
- Orphaned file src/data_structures/lazy_segment_tree.rs:1
- Orphaned file src/data_structures/skip_list.rs:1
- Orphaned file src/conversions/roman_numerals.rs:1
- Orphaned file src/backtracking/hamiltonian_cycle.rs:1
- Orphaned file src/ciphers/rsa_cipher.rs:1
- Off-boarding risk: anonymized user #1
- Off-boarding risk: anonymized user #2
- Off-boarding risk: anonymized user #3
- Most significant orphaned file src/conversions/weight.rs:1
- Most significant orphaned file src/financial/depreciation.rs:1
- Most significant orphaned file src/data_structures/rb_tree.rs:1
- Further sole-owners (lower concentration)
- Projects may be oversized for their cohesion
- Concentrated knowledge decay
- Thin README
- No ADRs
- No changelog
- Duplicated predicate src/searching/binary_search.rs:99
- Silent fallback default on Err src/ciphers/polybius.rs:50
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-ed144e95710b42d1868278a9acd5cdab/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-ed144e95710b42d1868278a9acd5cdab/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt . | 16 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | none (dependency manifest found, not scanned for vulnerabilities here) | — | none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet). | 0 | — |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 1 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | none (dependency manifest found, not scanned for vulnerabilities here) | — | none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet). | 0 | — |