(self, context)
| 10 | |
| 11 | # Hook to a specific type of a node |
| 12 | def node_String(self, context): |
| 13 | yield Detection( |
| 14 | detection_type = "CustomAnalyzer", |
| 15 | signature = f"str#{context.visitor.normalized_path}#{context.node.line_no}", |
| 16 | message = "String detection", |
| 17 | extra = { |
| 18 | "string_content": str(context.node) |
| 19 | }, |
| 20 | tags = {"custom_tag",} |
| 21 | ) |