Skip to content

Commit

Permalink
Detect multi-line comment block (web-devkits#34)
Browse files Browse the repository at this point in the history
Signed-off-by: amitrahman1026 <[email protected]>
  • Loading branch information
amitrahman1026 committed Nov 9, 2023
1 parent 51ef8c9 commit 5878901
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/advisors/cpp_exception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class CppExceptionAdvisor implements IAdvisor {
if (
fileExt.includes(path.extname(m.file)) &&
!m.content.trim().startsWith("//") &&
!m.content.trim().startsWith("/*")
!m.content.trim().startsWith("/*") &&
!m.content.trim().endsWith("*/")
) {
log.info(
`The line with throw pattern is in file ${m.file} @ line ${m.line}:\n${m.content}`
Expand Down

0 comments on commit 5878901

Please sign in to comment.