diff --git a/packages/altive_lints/lib/src/assists/wrap_with_macro_template_document_comment.dart b/packages/altive_lints/lib/src/assists/wrap_with_macro_template_document_comment.dart index 1dcaa64..028af23 100644 --- a/packages/altive_lints/lib/src/assists/wrap_with_macro_template_document_comment.dart +++ b/packages/altive_lints/lib/src/assists/wrap_with_macro_template_document_comment.dart @@ -56,6 +56,12 @@ class WrapWithMacroTemplateDocumentComment extends DartAssist { return; } + final currentComment = node.tokens.join(); + if (currentComment.contains('{@template') && + currentComment.contains('{@endtemplate}')) { + return; + } + if (!node.isDocumentation) { return; }