Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rework : solving problem of saving result of --sql-query in CSV file #5685

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

Open
Aridhi-Dhia-eddine wants to merge 4 commits into sqlmapproject:master
base: master
Choose a base branch
Loading
from Aridhi-Dhia-eddine:my-sqlmap-contribution

Conversation

@Aridhi-Dhia-eddine
Copy link

@Aridhi-Dhia-eddine Aridhi-Dhia-eddine commented Apr 12, 2024

Copy link

@Imran-imtiaz48 Imran-imtiaz48 left a comment

Choose a reason for hiding this comment

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

Review Analysis:

  1. Code Formatting and Structure:
    o Both old and new code snippets appear identical in terms of functionality and structure. They iterate over temp_res and s lists to update a dictionary d and append it to dt_save. The subsequent conditional check for len(queryRes) also remains the same.
    Improvement Suggestions:
  2. Documentation and Comments:
    o Consider adding comments or documentation within the code to clarify the purpose of each section (#*******************************************). This helps new developers understand the logic or intention behind that specific block of code.
  3. Error Handling and Validation:
    o Ensure that the conditional check if(len(queryRes)!=0): is accompanied by appropriate error handling or validation logic if queryRes could potentially be None or of unexpected length. Robust error handling improves code reliability.
  4. Consistency and Best Practices:
    o Review the entire codebase for consistency in variable naming (temp_res, s, d, dt_save, file_csv, queryRes, etc.) and adhere to best practices such as using meaningful variable names and following a consistent indentation style.
    Conclusion:
    The provided code snippets show consistency in functionality between the old and new versions. To enhance the GitHub repository, focus on improving documentation clarity, ensuring error handling, and maintaining code consistency. These practices contribute to better readability, maintainability, and reliability of the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@Imran-imtiaz48 Imran-imtiaz48 Imran-imtiaz48 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /