AtomLinter / linter-codeclimate

An Atom Linter plugin for the Code Climate CLI
http://github.com/codeclimate/codeclimate
MIT License
10 stars 5 forks source link

Fix/one spawn per project #83

Closed cgalvarez closed 6 years ago

cgalvarez commented 6 years ago

This PR has the following goals:

And still waiting for the following bugs to be fixed in their respective repos:

There are some issues left that are very annoying, but I don't have any clue on how to fix them, and can be the subject of future PRs:

Also, this PR...

Fixes #75 Fixes #76 Closes #77 with a temporary workaround Fixes #81 Closes #69, since it should be supported by CodeClimate CLI in first place, and it should miss some issues (like duplicated code), which this PR aims to solve. Closes #74 Closes #77 Closes #78

Edited by @Arcanemagus to automatically close issues/PRs.

cgalvarez commented 6 years ago

The tests seem to hang, cannot make them even print any error.

Anyone that could lend me a hand on this? This PR can be installed and tested locally with:

git clone -b 'fix/one-spawn-per-project' https://github.com/cgalvarez/linter-codeclimate.git linter-codeclimate-pr
cd ./linter-codeclimate-pr
apm link --dev
apm install
atom -d .
cgalvarez commented 6 years ago

Wow, I was about to give up, but the tests take ~273s on CI to finish!! Locally ~20s. What an amazing difference... but finally get it working and passing!! :tada: :tada: :tada:

EugeneGrigorenko commented 6 years ago

Is it gonna be merged?

Arcanemagus commented 6 years ago

Looks like the Code Climate people aren't maintaining this ๐Ÿ˜†๐Ÿ˜ข.

Taking a look over this now, that diff summary looks daunting ๐Ÿ˜ฎ.

cgalvarez commented 6 years ago

@Arcanemagus Thank you very much for detailed review. I'll take a look at all your reported issues ASAP and make a new commit to fix them all.

cgalvarez commented 6 years ago

I've just fixed all your reported issues. Let me know If I've missed something or you want me to make a rebase or something :wink:

I think it would be desirable to disable some Code Climate engines run in CI to make tests run faster.

Arcanemagus commented 6 years ago

Since CI is passing, and I can't run this locally (Windows), I'll go ahead and merge this. ๐Ÿ˜†

Arcanemagus commented 6 years ago

@cgalvarez Assuming @AtomLinter/linter-codeclimate has no issues with it, if you want to be brought on as a maintainer for this project I would be fine with that ๐Ÿ˜‰.

Arcanemagus commented 6 years ago

Published in v0.3.0 ๐ŸŽ‰.

cgalvarez commented 6 years ago

@Arcanemagus Great! I will be glad to help anytime I can.