Skip to content

Commit cfde990

Browse files
style(Common): Remove non_snake_case allowances and trailing whitespace
Strip `#![allow(non_snake_case)]` and `#![allow(non_upper_case_globals)]` attributes from `Source/IPC`, `Source/Telemetry`, and `Source/Transport` modules. Additionally, remove unnecessary trailing blank lines at the top of documentation comment blocks in the Telemetry and Transport crates. This enforces strict PascalCase naming compliance across the Core library, aligning with the project-wide convention where all functions, variables, and structs must use PascalCase. The removal of whitespace ensures consistent file formatting across the shared abstraction layer.
1 parent 1fd8d43 commit cfde990

34 files changed

Lines changed: 1 addition & 36 deletions

Documentation/Rust

Submodule Rust updated 662 files

Source/IPC/Channel.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
//! offline-gallery stubs).
3232
//! - `Normal`: everything else.
3333
34-
#![allow(non_camel_case_types)]
35-
3634
/// Lane selector for Echo scheduler dispatch.
3735
///
3836
/// Deliberately isolated from `Echo::Task::Priority` so Common stays

Source/IPC/SkyEvent.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
//! `FromStr` in one pass so adding an event is a single-line change that
2727
//! compilers can't forget.
2828
29-
#![allow(non_camel_case_types)]
30-
3129
macro_rules! DefineSkyEvents {
3230

3331
($($Variant:ident => $Wire:literal,)* $(,)?) => {

Source/Telemetry/CaptureError.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Emit `land:<tier>:error` with `error_tag` + `error_message`. The
32
//! Errors & Reliability dashboard rolls these up across Mountain /
43
//! Cocoon / Sky / sidecars via `event LIKE 'land:%:error'`.

Source/Telemetry/CaptureEvent.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Emit a named PostHog event. Stamps the calling `Tier` plus the
32
//! standard Land identity (`$app`, `$app_version`, `$build_mode`,
43
//! `$component`, `$tier`) so dashboards can pivot by tier without

Source/Telemetry/CaptureSession.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Emit `land:<tier>:session:start` with pid / OS / arch. Called once
32
//! by `Initialize::Fn` so the Boot & Startup Performance dashboard
43
//! sees one start event per sidecar process.

Source/Telemetry/Client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Process-wide PostHog client singleton. Populated once by
32
//! `Initialize::Fn`; every `Capture*::Fn` reads through this static.
43
//! Sidecars share one client per process, like Mountain's

Source/Telemetry/Configuration.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Runtime read of `.env.Land.PostHog`. Sidecars don't have their own
32
//! `build.rs` env-bake (Mountain does, for compile-time tree-shake) -
43
//! they read at boot via `std::env::var`. Mountain's `HydrateRuntime

Source/Telemetry/DistinctId.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Stable distinct ID for the dev session. Mirrors Mountain's
32
//! `Binary/Build/PostHogPlugin/DistinctId` so a single dev run merges
43
//! into one PostHog person across every sidecar.

Source/Telemetry/EmitOTLPSpan.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//! Fire-and-forget OTLP span exporter. Lifted from Mountain's
32
//! `IPC/DevLog/EmitOTLPSpan` so Air / Echo / Rest / Grove / Mist /
43
//! SideCar all share the same raw HTTP path. Single failed POST flips

0 commit comments

Comments
 (0)