-
Notifications
You must be signed in to change notification settings - Fork 8
Migrate from code_climate to QLTY #282
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| # Configuration version for compatibility with the tool | ||
| config_version = "0" | ||
|
|
||
| # Glob patterns to exclude from analysis (e.g., build artifacts and dependencies) | ||
| exclude_patterns = [ | ||
| "**/node_modules/**", # Ignore node_modules directories | ||
| "**/dist/**", # Ignore distribution/build output | ||
| "**/coverage/**" # Ignore code coverage output | ||
| ] | ||
|
|
||
| # Glob patterns to identify test files | ||
| test_patterns = [ | ||
| "**/*.test.ts" # Match TypeScript test files | ||
| ] | ||
|
|
||
| # === Smells Configuration === | ||
| # Controls how detected code smells are reported | ||
| [smells] | ||
| mode = "comment" # Adds comments in code or PRs to report smells | ||
|
|
||
| # === Source Configuration === | ||
| # Defines a code source for analysis | ||
| [[source]] | ||
| name = "default" # Name of the source | ||
| default = true # Marks this as the default source to scan | ||
|
|
||
| # === Individual Code Smell Toggles === | ||
| # Enables or disables detection of specific code smells | ||
|
|
||
| [smells.boolean_logic] | ||
| enabled = true # Detects overly complex or nested boolean logic | ||
|
|
||
| [smells.similar_code] | ||
| enabled = true # Detects similar (but not identical) code blocks | ||
|
|
||
| [smells.duplication] | ||
| enabled = true # Detects duplication of code blocks | ||
|
|
||
| [smells.identical_code] | ||
| enabled = true # Detects exact duplicate code blocks | ||
|
|
||
| [smells.function_parameters] | ||
| enabled = false # Flags functions with too many parameters | ||
|
|
||
| [smells.nested_control_flow] | ||
| enabled = false # Would flag deeply nested control flow (e.g., many if/else) | ||
|
|
||
| [smells.file_complexity] | ||
| enabled = false # Would flag files with high overall complexity | ||
|
|
||
| [smells.function_complexity] | ||
| enabled = false # Would flag individual functions that are too complex | ||
|
|
||
| [smells.return_statements] | ||
| enabled = false # Would flag functions with multiple return paths | ||
|
|
||
| # === Plugins Section === | ||
| # Each plugin performs a specific type of analysis or linting | ||
|
|
||
| [[plugin]] | ||
| name = "actionlint" # Validates GitHub Actions workflows | ||
|
|
||
| [[plugin]] | ||
| name = "checkov" # Performs security and compliance checks on IaC files | ||
| version = "3.2.49" # Specific version of Checkov to use | ||
|
|
||
| [[plugin]] | ||
| name = "osv-scanner" # Scans for known vulnerabilities using OSV database | ||
|
|
||
| [[plugin]] | ||
| name = "ripgrep" # Fast searching for pattern matching in codebase | ||
|
|
||
| [[plugin]] | ||
| name = "trivy" # Scans for vulnerabilities in containers and dependencies | ||
|
|
||
| [[plugin]] | ||
| name = "trufflehog" # Detects secrets and sensitive data in code | ||
|
|
||
| [[plugin]] | ||
| name = "yamllint" # Lints YAML files for syntax and style | ||
| enabled = false | ||
|
|
||
| [[plugin]] | ||
| name = "markdownlint" # Lints Markdown files | ||
| enabled = false | ||
|
|
||
| [[plugin]] | ||
| name = "prettier" # Ensures consistent code formatting | ||
| version = "2.8.4" | ||
| enabled = false | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.