Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13,472 changes: 13,472 additions & 0 deletions -

Large diffs are not rendered by default.

78 changes: 68 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ unsafe_code = "forbid"
unused_mut = "warn"
noop_method_call = "warn"
unused_import_braces = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }

[workspace.lints.clippy]
# See clippy rules details https://rust-lang.github.io/rust-clippy/master/index.html
Expand Down
33 changes: 33 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Clippy configuration for GTS-Rust
avoid-breaking-exported-api = false

check-inconsistent-struct-field-initializers = true

lint-commented-code = true

# Type complexity threshold (default is 250)
type-complexity-threshold = 190

# Cognitive complexity threshold (default is 25)
cognitive-complexity-threshold = 25

# Function length threshold (default is 100)
too-many-lines-threshold = 200

allow-expect-in-tests = true
allow-unwrap-in-tests = true

# Stricter thresholds for LLM-generated code
single-char-binding-names-threshold = 4
large-error-threshold = 128

# Stack size limits
stack-size-threshold = 512000

# Struct field limits
max-struct-bools = 2

# Disallowed types (prevent common mistakes)
disallowed-types = [
{ path = "std::collections::LinkedList", reason = "Use Vec instead - LinkedList has poor cache locality" },
]
4 changes: 4 additions & 0 deletions gts-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ atty.workspace = true
chrono.workspace = true
regex.workspace = true
walkdir.workspace = true

[dev-dependencies]
tempfile = "3.8"
tower = "0.5"
Loading
Loading