Skip to content
Open
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
28 changes: 28 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version = 1

test_patterns = [
"tests/**",
"test/**",
"**/*test*",
"**/*.test.*",
]

exclude_patterns = [
"node_modules/**",
"dist/**",
"target/**",
"vendor/**",
"build/**",
"coverage/**",
"bundle.js",
"**/bundle.js",
"**/generated/**",
]

[[analyzers]]
name = "rust"
enabled = true

[analyzers.meta]
msrv = "stable"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The project's Cargo.toml specifies rust-version = "1.81". Setting msrv to "1.81" instead of "stable" ensures that DeepSource does not suggest language features or APIs that are incompatible with the project's minimum supported Rust version as the Rust stable channel advances.

Suggested change
msrv = "stable"
msrv = "1.81"

cyclomatic_complexity_threshold = "high"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

DeepSource's cyclomatic_complexity_threshold expects an integer value (representing the maximum cyclomatic complexity allowed for a function, with a default of 15). Providing a string like "high" may be invalid or ignored by the analyzer. Consider specifying an integer threshold instead.

Suggested change
cyclomatic_complexity_threshold = "high"
cyclomatic_complexity_threshold = 15

Loading