Crafter.Build/tests/Lint/fixture/dirty.cpp
Jorijn van der Graaf 8892154b28
Some checks failed
CI / build-test-release (push) Failing after 7m15s
linting
2026-07-23 01:24:42 +02:00

13 lines
521 B
C++

// 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)