sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
256 stars 242 forks source link

Refactored the Code and improved the Code Quality and Performance #934

Closed HarshCasper closed 3 years ago

HarshCasper commented 3 years ago

This pull request fixes some of the quality issues raised by DeepSource on my fork of this repository.

Summary of fixes:

You can see all the issues raised by DeepSource here.

These Issues were fixed automatically by DeepSource

Using DeepSource to continuously analyze your repository

If you do not want to use DeepSource to continuously analyze this repo, I'll remove the .deepsource.toml from this PR and you can merge the rest of the fixes.

srevinsaju commented 3 years ago

Hello @HarshCasper

Thanks for your PR

I have a few questions

HarshCasper commented 3 years ago

Hi @srevinsaju

Thanks for taking the time to review this. The Commits were made by the DeepSource App and I pushed all the changes to a Single Commit.

If you would like, I can split the changes into smaller commits and send individual PRs for them to make it easy for them to review. If there is not a hard-fast requirement to squash the Commits before the merge, I will have the commits attributed to the Bot.

Since the DeepSource Analysis has pointers that feature issues that can be auto fixed or can be just manually fixed, I would love to work on the same.

HarshCasper commented 3 years ago

@chimosky I guess it would be best, if I close this PR and start work on a fresh one adding discrete changes to the same. Kindly let me know if that would work.

chimosky commented 3 years ago

@chimosky I guess it would be best, if I close this PR and start work on a fresh one adding discrete changes to the same. Kindly let me know if that would work.

That would be great, thanks.

quozl commented 3 years ago

Thanks. Reviewed.

I've cherry-picked 7bbff9f5981("Deepsource: unnecessary else or elif") and 0388f516b ("Deepsource: Remove unused private method") and pushed to master.