borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
11.15k stars 742 forks source link

use coala? #1366

Closed ThomasWaldmann closed 7 years ago

ThomasWaldmann commented 8 years ago

coala bot that reviews pull requests.

coala detect code duplication.

complexity metrics.

grammar check for docs.

C checks for similar stuff.

Generic stuff checker tabs etc.

enkore commented 8 years ago

http://coala-analyzer.org/

enkore commented 8 years ago

If we use it, put it in the flake (?) tox env, if that works?

v-- probably easy, assuming not too many issues are flagged :D

PlasmaPower commented 8 years ago

Shouldn't we create another coala environment instead of grouping it with flake8? I'm assuming coala won't totally replace flake8, right?

enkore commented 8 years ago

Technically yes, but creating environments is quite slow on travis (because it's "always" the first time on travis), so having a separate environment would make the build run longer by maybe 5 minutes or so.

ThomasWaldmann commented 8 years ago

See PR #1569.

sils commented 8 years ago

I'm assuming coala won't totally replace flake8, right?

@PlasmaPower if coala isn't able to totally replace flake8 please tell us what's missing :) There was a Flake8Bear in the works which should ease switching in the future as you'll for sure be able to reuse your existing configuration but the contributor didn't continue working on it. (See https://github.com/coala-analyzer/coala-bears/issues/169 ) If that's of interest to you please tell us or consider helping out :)

sils commented 7 years ago

Hi, just got this notification as we were deploying the first stable working versionof gitmate.io - you might find that interesting. Just turn it on and it'll use the coafile you already have :)

ThomasWaldmann commented 7 years ago

@sils thanks for the info! gitmate looks interesting, but look what I got when clicking "login with github":

gitmate-access

Write access to code repo -> NOPE NOPE NOPE NEVER. Admin access to settings -> NOPE.

So, can you do it with less intrusive permissions (I know github permission system sucks, but did you try?).

sils commented 7 years ago

hey, thanks for that feedback :) we're aware that this is an issue and have already worked out plans to mitigate that before beginning to code. However, this is an MVP up since a few hours, getting the functionality was our priority up until now. We're working on using GitHub integrations which will allow more fine grained permission management and will ultimately solve that. However to do that we have a long road ahead of us, the "github integrations" are still in beta even I think. We're also thinking about this issue on GitLab where they don't have anything like this. Another issue is that ideally we want a "gitmate-bot" user to perform the actions, not the user who logged in.

So well, there's a plethora of problems on that end yet to be resolved, if you have any experience with that we appreciate any hints.

If it helps you, all code that is running there except the environment variables is open source at code.gitmate.io but it still doesn't change that you're putting that key in our db. However, you can selfhost it yourself for now, we're just writing up documentation on how to self deploy it, it's fairly easy as we have a docker compose setup.

ThomasWaldmann commented 7 years ago

@sils good that you are working on improving security/privacy, I guess we'll just run coala locally until that is ready. I can't help with github permissions, sorry.

sils commented 7 years ago

Actually I took a look at the docs and if I'm not mistaken we might be able to fix it short-term (maybe tomorrow) without having to switch to integrations. We basically just need to be able to label, comment, read, set commit status.

On Jun 3, 2017 16:43, "TW" notifications@github.com wrote:

@sils https://github.com/sils good that you are working on improving security/privacy, I guess we'll just run coala locally until that is ready. I can't help with github permissions, sorry.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/borgbackup/borg/issues/1366#issuecomment-305979258, or mute the thread https://github.com/notifications/unsubscribe-auth/AFc6KMfDPg9f6LIy3Jn2WeqnSwHhvfDIks5sAXD8gaJpZM4JTXk9 .

step21 commented 5 years ago

Just FYI, coala-analyzer.org mentioned above is dead, it is now apparently at coala.io