Current section
Files
Jump to
Current section
Files
lattice_text
gleam.toml
gleam.toml
name = "lattice_text"
version = "1.0.0"
description = "Plain-text CRDT for Gleam using YATA-style left/right origins"
licences = ["MIT"]
repository = { type = "github", user = "tylerbutler", repo = "lattice" }
gleam = ">= 1.7.0"
[dependencies]
gleam_stdlib = ">= 0.48.0 and < 2.0.0"
gleam_json = ">= 3.1.0 and < 4.0.0"
lattice_core = ">= 1.0.0 and < 2.0.0"
lattice_sequence = ">= 1.0.0 and < 2.0.0"
lattice_text_core = ">= 1.0.0 and < 2.0.0"
[dev-dependencies]
startest = ">= 0.8.0 and < 1.0.0"
qcheck = ">= 1.0.0 and < 2.0.0"
glinter = ">= 2.19.0 and < 3.0.0"
[tools.glinter]
include = ["src/", "test/"]
# warnings_as_errors makes every *enabled* rule fail CI, so the few rules we
# don't enforce are turned off below; tests get a lenient profile in [ignore].
warnings_as_errors = true
[tools.glinter.rules]
# Library public API is consumed externally, so "never used in this package"
# is expected — not an issue.
unused_exports = "off"
# The codebase intentionally does not use argument labels.
label_possible = "off"
[tools.glinter.ignore]
# The non-try convenience API preserves existing assert-on-invalid-index
# behavior; callers that need fallible handling should use the try_* variants.
"src/lattice_text/text.gleam" = ["assert_ok_pattern"]
# Tests use `let assert Ok(...)`, discard errors, panic in unreachable match
# arms, and skip return-type annotations by convention; these rules apply to
# src/ only.
"test/**/*.gleam" = ["assert_ok_pattern", "thrown_away_error", "discarded_result", "avoid_panic", "missing_type_annotation", "short_variable_name"]