Skip to content

Support multiple append_text_comment rules - #314

Merged
jeparlefrancais merged 2 commits into
mainfrom
support-multiple-append-comment
Sep 26, 2025
Merged

jeparlefrancais merged 2 commits into
mainfrom
support-multiple-append-comment

Conversation

@jeparlefrancais

@jeparlefrancais jeparlefrancais commented Sep 26, 2025 •

Copy link
Copy Markdown
Contributor

Closes #310

This fixes how comments are appended to make sure they merge correctly when the rule is used multiple times in a darklua config.

These changes also fix a bug in the code generator related to how multiline comments were written.

  • add entry to the changelog

This fixes how comments are appended to make sure they merge correctly
when the rule is used multiple times in a darklua config.

These changes also fix a bug in the code generator related to how
multiline comments were written.
@github-actions

Copy link
Copy Markdown

Coverage after merging support-multiple-append-comment into main will be

87.18%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/generator
   token_based.rs92.40%100%94.71%92.18%1001–1002, 1023–1024, 1038–1040, 1063–1064, 1073–1075, 1094–1095, 1104–1106, 1157–1162, 1316, 1386, 139–140, 1423–1431, 1507–1516, 1541–1543, 156–157, 1575–1584, 1628, 1686, 169–170, 191–192, 212–214, 2142–2143, 2169–2173, 2202–2206, 2426, 2430, 2443, 254, 306–310, 380–381, 387, 399, 459–460, 482–483, 499–500, 542, 630–631, 664–665, 733–734, 775–776, 817–821, 838, 860–862, 89, 926–927, 936–937, 944, 959, 964–968, 987–988
src/rules
   append_text_comment.rs81.82%100%88.89%81.01%102–105, 123–124, 167–172, 205–207, 32–38, 49, 51–54

@jeparlefrancais
jeparlefrancais merged commit 61f01a3 into main Sep 26, 2025
@jeparlefrancais
jeparlefrancais deleted the support-multiple-append-comment branch September 26, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple append_text_comment rules should use multiple lines

1 participant