-
Notifications
You must be signed in to change notification settings - Fork 0
fix: satisfy env codacy diff typing #53
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
Closed
Closed
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
483b0ae
fix: share coverage helper imports
Prekzursil 829e104
fix: clear env main codacy residue
Prekzursil 4769b09
style: normalize env quality helper line endings
Prekzursil 76718da
style: shorten env shared-helper coverage assertions
Prekzursil 189b843
docs: clear env coverage helper codacy drift
Prekzursil 3d4e10c
fix: satisfy env codacy diff typing
Prekzursil cf17fe9
fix: refresh quality-zero-platform workflow refs
Prekzursil 274655d
chore: add qlty config for env-inspector
Prekzursil 8d9f3f0
fix: tighten env-inspector quality helper compatibility
Prekzursil 181ad72
fix: resolve env-inspector sonar follow-ups
Prekzursil c379c31
fix: clear env-inspector Codacy and Sonar follow-ups
Prekzursil 9fe062e
fix: clear remaining env-inspector provider follow-ups
Prekzursil 18edd21
fix: clear remaining env-inspector sonar hotspot
Prekzursil 91256f2
fix: resolve env-inspector provider import drift
Prekzursil 6909545
fix: resolve env-inspector merge drift
Prekzursil 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
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
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,60 @@ | ||
| # This file was automatically generated by `qlty init`. | ||
| # You can modify it to suit your needs. | ||
| # We recommend you to commit this file to your repository. | ||
| # | ||
| # This configuration is used by both Qlty CLI and Qlty Cloud. | ||
| # | ||
| # Qlty CLI -- Code quality toolkit for developers | ||
| # Qlty Cloud -- Fully automated Code Health Platform | ||
| # | ||
| # Try Qlty Cloud: https://qlty.sh | ||
| # | ||
| # For a guide to configuration, visit https://qlty.sh/d/config | ||
| # Or for a full reference, visit https://qlty.sh/d/qlty-toml | ||
| config_version = "0" | ||
|
|
||
| exclude_patterns = [ | ||
| "*_min.*", | ||
| "*-min.*", | ||
| "*.min.*", | ||
| "**/*.d.ts", | ||
| "**/.yarn/**", | ||
| "**/bower_components/**", | ||
| "**/build/**", | ||
| "**/cache/**", | ||
| "**/config/**", | ||
| "**/db/**", | ||
| "**/deps/**", | ||
| "**/dist/**", | ||
| "**/extern/**", | ||
| "**/external/**", | ||
| "**/generated/**", | ||
| "**/Godeps/**", | ||
| "**/gradlew/**", | ||
| "**/mvnw/**", | ||
| "**/node_modules/**", | ||
| "**/protos/**", | ||
| "**/seed/**", | ||
| "**/target/**", | ||
| "**/testdata/**", | ||
| "**/vendor/**", | ||
| "**/assets/**", | ||
| ] | ||
|
|
||
| test_patterns = [ | ||
| "**/test/**", | ||
| "**/spec/**", | ||
| "**/*.test.*", | ||
| "**/*.spec.*", | ||
| "**/*_test.*", | ||
| "**/*_spec.*", | ||
| "**/test_*.*", | ||
| "**/spec_*.*", | ||
| ] | ||
|
|
||
| [smells] | ||
| mode = "block" | ||
|
|
||
| [[source]] | ||
| name = "default" | ||
| default = true |
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Fragile exit code handling when handler returns
None.The logic has a subtle issue: when
handler(active_service, args)returnsNone(as_list_recordsdoes),exit_codeis assignedNone. The special case on lines 202-203 fixes this for the"list"command, but if any other handler were to returnNonein the future, the function would returnNoneinstead of a valid exit code.Consider making
_list_recordsreturn0for consistency with other handlers, which would eliminate the special case:🛠️ Proposed fix
Then remove the special case:
try: exit_code = handler(active_service, args) - if args.command == "list": - exit_code = 0 except ValueError as exc: print(str(exc), file=sys.stderr)🤖 Prompt for AI Agents