MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / issue

Method issue

atomic-audit/src/substantive/mod.rs:44–57  ·  view source on GitHub ↗
(&self, rule: Rule, node: Node<'_>, detail: impl Into<String>)

Source from the content-addressed store, hash-verified

42 }
43
44 fn issue(&self, rule: Rule, node: Node<'_>, detail: impl Into<String>) -> StructuralIssue {
45 StructuralIssue {
46 rule,
47 start_line: node.start_position().row as u32 + 1,
48 end_line: node.end_position().row as u32
49 + u32::from(
50 node.end_position().column > 0
51 || node.end_position().row == node.start_position().row,
52 ),
53 source: tokens::text(node, self.source).into(),
54 detail: detail.into(),
55 manageability: None,
56 }
57 }
58}
59
60fn code_children(node: Node<'_>) -> Vec<Node<'_>> {

Callers 6

inspectFunction · 0.80
forwarding_wrapperFunction · 0.80
vacuous_assertionFunction · 0.80
guard_across_awaitFunction · 0.80
manageabilityFunction · 0.80
inspectFunction · 0.80

Calls 1

textFunction · 0.50

Tested by

no test coverage detected