This commit is contained in:
parent
a25b0a1ded
commit
8892154b28
70 changed files with 2780 additions and 596 deletions
8
tests/Lint/fixture/clean.cpp
Normal file
8
tests/Lint/fixture/clean.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// Fixture with no lint violations — rules asserting on dirty.cpp must not
|
||||
// fire here.
|
||||
int CleanAnswer() {
|
||||
return 42;
|
||||
}
|
||||
13
tests/Lint/fixture/dirty.cpp
Normal file
13
tests/Lint/fixture/dirty.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
// Fixture with deliberate violations at fixed line numbers —
|
||||
// tests/Lint/main.cpp asserts on these exact lines. Do not reflow.
|
||||
|
||||
// MARKER inside a comment: must be invisible to CommentStripped() (line 7)
|
||||
int DirtyTab() {
|
||||
return 1; // deliberate tab indent (line 9)
|
||||
}
|
||||
|
||||
const char* dirtyString = "MARKER inside a string literal (line 12)";
|
||||
int MARKER_in_code = 13; // identifier survives CommentStripped() (line 13)
|
||||
Loading…
Add table
Add a link
Reference in a new issue