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

test_patterns = [
"tests/**",
"test/**",
"**/*test*",
"**/*.test.*",
]
Comment on lines +3 to +8

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 pattern **/*test* is extremely broad and will match any file or directory path containing the substring "test". In this repository, this matches production assets such as assets/bundled_skills/test-helper/skill.md.

This can cause DeepSource to misclassify production files/assets as test code, which applies different (often less strict) analysis rules. Consider removing **/*test* or replacing it with more specific patterns.

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


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

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

[analyzers.meta]
cyclomatic_complexity_threshold = "high"

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

[analyzers.meta]
dialect = "bash"
Comment on lines +29 to +34

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The DeepSource shell analyzer does not support any meta options (such as dialect). Specifying an invalid or unsupported meta option will cause a schema validation error in DeepSource, preventing the analysis from running.

ShellCheck (which powers the shell analyzer) automatically detects the shell dialect from the shebang line (e.g., #!/bin/bash in your scripts) or via inline directives. We should remove the [analyzers.meta] block for the shell analyzer.

Suggested change
[[analyzers]]
name = "shell"
enabled = true
[analyzers.meta]
dialect = "bash"
[[analyzers]]
name = "shell"
enabled = true

Loading