-
Notifications
You must be signed in to change notification settings - Fork 6
Test: Verify PR feedback and annotation systems #4
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
Changes from all commits
474415c
fb84bd8
46ff140
ab348ff
db38a8e
285e9e7
6bdc3d7
0c17257
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,51 @@ | |||||||||||||||||||||||||||||||||||
| """Module to verify PR feedback systems. | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| This file contains intentional issues to test the PR feedback workflow. | |||||||||||||||||||||||||||||||||||
| Testing the fixed Python indentation issue and static analysis fixes. | |||||||||||||||||||||||||||||||||||
| """ | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| import os | |||||||||||||||||||||||||||||||||||
| from typing import List | |||||||||||||||||||||||||||||||||||
|
Check failure on line 8 in markitdown_mcp/feedback_check.py
|
|||||||||||||||||||||||||||||||||||
Check noticeCode scanning / CodeQL Unused import Note
Import of 'List' is not used.
Copilot AutofixAI 9 months ago The best way to fix the problem is to remove the unused import statement:
Suggested changeset
1
markitdown_mcp/feedback_check.py
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||||||||||||||
| import nonexistent_module # This will trigger import error | |||||||||||||||||||||||||||||||||||
|
Check failure on line 9 in markitdown_mcp/feedback_check.py
|
|||||||||||||||||||||||||||||||||||
Check noticeCode scanning / CodeQL Unused import Note
Import of 'nonexistent_module' is not used.
Copilot AutofixAI 9 months ago To fix the unused import, simply remove the line
Suggested changeset
1
markitdown_mcp/feedback_check.py
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| def poorly_formatted_function(x,y,z): | |||||||||||||||||||||||||||||||||||
| """Missing type hints and bad formatting.""" | |||||||||||||||||||||||||||||||||||
| if x == True: # noqa - Should use 'is True' | |||||||||||||||||||||||||||||||||||
| print(f"Value: {y}") | |||||||||||||||||||||||||||||||||||
| unused_variable = z * 2 | |||||||||||||||||||||||||||||||||||
| return x+y # Missing spaces around operator | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| class InconsistentNaming: | |||||||||||||||||||||||||||||||||||
| """Class with naming issues.""" | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| def __init__(self): | |||||||||||||||||||||||||||||||||||
| self.MyVariable = "should_be_lowercase" | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| def missing_docstring(self, param1): | |||||||||||||||||||||||||||||||||||
| return param1 * 2 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Potential security issue | |||||||||||||||||||||||||||||||||||
| HARDCODED_SECRET = "admin123" | |||||||||||||||||||||||||||||||||||
|
Check notice on line 31 in markitdown_mcp/feedback_check.py
|
|||||||||||||||||||||||||||||||||||
| API_TOKEN = "sk-1234567890abcdef" | |||||||||||||||||||||||||||||||||||
|
Check notice on line 32 in markitdown_mcp/feedback_check.py
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| def risky_eval_function(user_input): | |||||||||||||||||||||||||||||||||||
| """Dangerous function using eval.""" | |||||||||||||||||||||||||||||||||||
| # Security warning: eval is dangerous | |||||||||||||||||||||||||||||||||||
| result = eval(user_input) # noqa | |||||||||||||||||||||||||||||||||||
|
Check failure on line 38 in markitdown_mcp/feedback_check.py
|
|||||||||||||||||||||||||||||||||||
| return result | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| def file_operation_without_error_handling(): | |||||||||||||||||||||||||||||||||||
| """Missing try/except block.""" | |||||||||||||||||||||||||||||||||||
| with open("/etc/passwd") as f: | |||||||||||||||||||||||||||||||||||
| content = f.read() | |||||||||||||||||||||||||||||||||||
| return content | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| def function_with_too_many_arguments(a, b, c, d, e, f, g, h): | |||||||||||||||||||||||||||||||||||
| """Too many parameters.""" | |||||||||||||||||||||||||||||||||||
| return a + b + c + d + e + f + g + h# Testing fixed PR feedback | |||||||||||||||||||||||||||||||||||
Check notice
Code scanning / CodeQL
Unused import Note
Copilot Autofix
AI 9 months ago
To fix this problem, simply remove the unused import statement
import oson line 7 of markitdown_mcp/feedback_check.py. This will eliminate the unnecessary dependency, clean up the import section, and make the codebase more maintainable. No other changes are needed because theosmodule is not referenced elsewhere in this file, and there are no indirect or hidden usages.