project, docs: the linter goes

The Catcrafts house-style rules (Crafter.LintRules) rode in project.cpp
as a dependency crafter-build cloned once and built on every load; the tree
never passed them (111 findings on the 1.1.0 tree, 156 on an early freeze
of this range (2e87e26), 100 of the 156 the shared naming rule's, each
for a variable whose name begins with a capital — the
fp6 journal's lint captures, lint-tip-2e87e26), CI never ran them,
and AGENTS.md kept a census nobody acted on. Out: the dependency, the
import and the five AddRules calls, the lint-disable comments in 25
files and on 4 lines, §4.2 and the census of §6 — now "Code style", the
three rules that were never the linter's; the cross-compiling section
becomes §4.2 and its six citations — §4.1's sysroot sentence, §9.1, the CI
workflow, the APKBUILD, build-package.sh, make-sysroot.sh — follow. Jorijn, 2026-10-17: "just
remove the linter, we are ignoring it anyway".
This commit is contained in:
Jorijn van der Graaf 2026-10-18 00:05:06 +02:00
commit 910e2594a0
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
30 changed files with 17 additions and 95 deletions

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Aka — USIM AKA (3GPP TS 33.102) glue for IMS registration:

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Engine — the daemon's decisions as pure reducers: the call state
machine (CallMachine), the registration recovery policy (RegRecovery,
@ -1322,7 +1321,7 @@ export namespace imsd::engine {
};
std::string FormatStoredSms(const StoredSms& r) {
auto hex = [](std::string_view s) { return imsd::util::ToHex(std::span<const std::uint8_t>(reinterpret_cast<const std::uint8_t*>(s.data()), s.size())); }; // lint-disable-line no-char-pointer
auto hex = [](std::string_view s) { return imsd::util::ToHex(std::span<const std::uint8_t>(reinterpret_cast<const std::uint8_t*>(s.data()), s.size())); };
std::string out;
out += std::format("id={}\n", r.id);
out += std::format("received={}\n", r.receivedAt);
@ -1503,7 +1502,7 @@ export namespace imsd::engine {
r.actions.push_back(SmsAction{SmsAction::Type::Log, std::format("short message over IP from {} ({} bytes) while SMS_OVER_IMS is off: 480", from, body.size())});
return r;
}
std::span<const std::uint8_t> bytes(reinterpret_cast<const std::uint8_t*>(body.data()), body.size()); // lint-disable-line no-char-pointer
std::span<const std::uint8_t> bytes(reinterpret_cast<const std::uint8_t*>(body.data()), body.size());
r.rp = imsd::sms::ParseRp(bytes, true);
if (!r.rp) {
r.actions.push_back(SmsAction{SmsAction::Type::Log, std::format("MESSAGE from {} with {} bytes that are no RP message: {}", from, body.size(), imsd::util::ToHex(bytes))});

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Ipsec — IMS security-association plumbing expressed as `ip xfrm` command
lines, plus a reader for an SA already installed in the kernel.

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Messages — the SIP request/response text the engine puts on the wire.
@ -598,7 +597,7 @@ export namespace imsd::msg {
l.push_back(std::format("Content-Length: {}", rp.size()));
l.push_back("");
std::string out = detail::Join(l);
out.append(reinterpret_cast<const char*>(rp.data()), rp.size()); // lint-disable-line no-char-pointer
out.append(reinterpret_cast<const char*>(rp.data()), rp.size());
return out;
}
}

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Qmi — the bytes of the QMI WDS exchanges imsd-pcscf has with the modem
to learn the ims PDN's P-CSCF list, and the readers of the answers.

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Sdp — SDP offer/answer building + parsing for the voice media plane.

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Sip — SIP message text layer + TCP framing.

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Sms — the short message codecs SMS over IP rides on (TS 24.341 carries
the same bytes a 2G/3G phone puts in an RP-DATA, inside a SIP MESSAGE body of

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types
/*
Imsd:Util — small self-contained primitives the rest of the engine builds on:
random SIP tokens, IPv6 detection + host/port formatting, the RFC 5952

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// lint-disable-file fixed-width-types no-char-pointer
/*
ImsdBus — what the two system-bus daemons (imsd, imsd-ofonod) share on the
bus side: the polkit gate in front of call control and messaging.