Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions ci/sembr/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 20 additions & 1 deletion ci/sembr/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ fn lengthen_lines(content: &str, limit: usize) -> String {
let Some(next_line) = content.get(n + 1) else {
continue;
};
if ignore(next_line, in_code_block) || REGEX_IGNORE_END.is_match(line) {
if ignore(next_line, in_code_block)
|| REGEX_LIST_ENTRY.is_match(next_line)
|| REGEX_IGNORE_END.is_match(line)
{
continue;
}
if line.len() + next_line.len() < limit {
Expand Down Expand Up @@ -244,12 +247,28 @@ short sentences
<div class='warning'>
a bit of text inside
</div>
preserve next line
1. one

preserve next line
- two

preserve next line
* three
";
let expected = "\
do not split short sentences
<div class='warning'>
a bit of text inside
</div>
preserve next line
1. one

preserve next line
- two

preserve next line
* three
";
assert_eq!(expected, lengthen_lines(original, 50));
}
Expand Down
4 changes: 2 additions & 2 deletions src/sanitizers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

The rustc compiler contains support for following sanitizers:

* [AddressSanitizer][clang-asan] a faster memory error detector. Can
detect out-of-bounds access to heap, stack, and globals, use after free, use
* [AddressSanitizer][clang-asan] a faster memory error detector.
Can detect out-of-bounds access to heap, stack, and globals, use after free, use
after return, double free, invalid free, memory leaks.
* [ControlFlowIntegrity][clang-cfi] LLVM Control Flow Integrity (CFI) provides
forward-edge control flow protection.
Expand Down
Loading