-
Notifications
You must be signed in to change notification settings - Fork 1
chore: add DeepSource configuration #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||||||||||||||||
| version = 1 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| test_patterns = [ | ||||||||||||||||||||
| "tests/**", | ||||||||||||||||||||
| "test/**", | ||||||||||||||||||||
| "**/*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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The DeepSource ShellCheck (which powers the
Suggested change
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 asassets/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.