coala-emacs icon indicating copy to clipboard operation
coala-emacs copied to clipboard

coala command: use --limit-files

Open fleimgruber opened this issue 8 years ago • 30 comments

Uses --limit-files instead of --files. Also, additional line-start and line-end regexp patterns.

fleimgruber avatar Jul 22 '17 19:07 fleimgruber

Comment on 0fd59448cfad4c41e1ff1a2e6b42a88808c311c3, file test/resources/language/pep8.py, line 1.

The code does not comply to PEP8.

PEP8Bear, severity NORMAL, section python.

The issue can be fixed by applying the following patch:

--- a/test/resources/language/pep8.py
+++ b/test/resources/language/pep8.py
@@ -1 +1 @@
-a = 1 + 1 # <- not PEP8 compliant
+a = 1 + 1  # <- not PEP8 compliant

sils avatar Jul 22 '17 19:07 sils

@sils So this is the separate PR mentioned in https://github.com/coala/coala-emacs/pull/17. This is really how coala should be called in this case - I even vaguely remember you telling me just that during the sprint.

The issue now is that the PEP8 test file causes coala to complain when checking the repo itself. Can you somehow force this to be accepted despite that?

fleimgruber avatar Jul 22 '17 19:07 fleimgruber

Comment on 0fd59448cfad4c41e1ff1a2e6b42a88808c311c3, file test/resources/language/pep8.py, line 1.

The code does not comply to PEP8.

Origin: PEP8Bear, Section: python.

The issue can be fixed by applying the following patch:

--- a/test/resources/language/pep8.py
+++ b/test/resources/language/pep8.py
@@ -1 +1 @@
-a = 1 + 1 # <- not PEP8 compliant
+a = 1 + 1  # <- not PEP8 compliant

gitmate-bot avatar Jul 24 '17 16:07 gitmate-bot

Anyone working on this repo now? I guess 'Default' is deprecated now.

9r0x avatar Nov 06 '17 08:11 9r0x

ping @fleimgruber

jayvdb avatar Nov 07 '17 07:11 jayvdb

Not currently working on it. Will have a look in the next days.

fleimgruber avatar Nov 07 '17 07:11 fleimgruber

@Grox-Ni the last commit already contains that deprecation.

fleimgruber avatar Nov 08 '17 19:11 fleimgruber

FYI, I am using this on a daily basis and just tried with the most recent PyPI dev version and that works as well. AFAICS, the remaining problem is that gitmate-bot does not honour the "ignore" directive, see also https://github.com/coala/coala-emacs/pull/18#discussion_r129094580.

fleimgruber avatar Nov 08 '17 20:11 fleimgruber

@fleimgruber you are right, I have an idea to solve gitmate's problem, please see #20, do you think I should reopen it?

9r0x avatar Nov 09 '17 00:11 9r0x

@Grox-Ni No. What @jayvdb said in https://github.com/coala/coala-emacs/pull/20#issuecomment-342408430 and following.

fleimgruber avatar Nov 11 '17 13:11 fleimgruber

@fleimgruber Are you still on this? Or should I close this? :)

nemani avatar Feb 24 '18 12:02 nemani

@nemaniarjun this is still waiting for feedback on CI failures because of gitmate-bot, see https://github.com/coala/coala-emacs/pull/18#discussion_r129094580.

fleimgruber avatar Feb 24 '18 13:02 fleimgruber

@fleimgruber @Makman2 I am confused here, which config does gitmate bot use, the one in the PR or the one on master? Also can't we just override the CI so that we can get this merged? (I mean if gitmate uses the coafile from master then we should just merge this)

nemani avatar Feb 24 '18 23:02 nemani

I believe it takes it from the PR, otherwise you can't fix issues once they are on master.

Makman2 avatar Mar 17 '18 18:03 Makman2

However I don't see a problem adding the test files to the ignore setting into the coafile if I see it correctly, should be quite straightforward :+1:

Makman2 avatar Mar 17 '18 18:03 Makman2

Ah sorry haven't read it properly. Let's try to rebase and see if it works. If not, we have to investigate.

Makman2 avatar Mar 17 '18 18:03 Makman2

@gitmate-bot rebase

Makman2 avatar Mar 17 '18 18:03 Makman2

Once more, gitmate was disabled.

Makman2 avatar Mar 17 '18 18:03 Makman2

@gitmate-bot rebase

Makman2 avatar Mar 17 '18 18:03 Makman2

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently :warning:

gitmate-bot avatar Mar 17 '18 18:03 gitmate-bot

Automated rebase with GitMate.io was successful! :tada:

gitmate-bot avatar Mar 17 '18 18:03 gitmate-bot

Hm seems the commits are already up-to-date, could you regenerate the commit hash @fleimgruber and repush? --> git commit --amend --no-edit && git push -f

Makman2 avatar Mar 17 '18 18:03 Makman2

Comment on 0fd59448cfad4c41e1ff1a2e6b42a88808c311c3, file test/resources/language/pep8.py, line 1.

The code does not comply to PEP8.

Origin: PEP8Bear, Section: python.

The issue can be fixed by applying the following patch:

--- a/tmp/tmpan329k2u/test/resources/language/pep8.py
+++ b/tmp/tmpan329k2u/test/resources/language/pep8.py
@@ -1 +1 @@
-a = 1 + 1 # <- not PEP8 compliant
+a = 1 + 1  # <- not PEP8 compliant

gitmate-bot avatar Mar 18 '18 09:03 gitmate-bot

Done. gitmate still complains.

fleimgruber avatar Mar 18 '18 09:03 fleimgruber

Sorry for responding that late, I've become a bit busy and haven't worked through my notification queue^^

And I know the cause: I've actually missed your very first commit in this PR, because it was at the very top of this page. You have to squash the commits, gitmate will do its analysis on each commit and uses the repository state of it. So your commit that added the new filenames in .coafile does not ignore the test file yet and flags a problem.

Makman2 avatar Apr 25 '18 17:04 Makman2

@Makman2 well, how obvious it is in hindsight... done and gitmate does not complain anymore.

fleimgruber avatar Apr 25 '18 21:04 fleimgruber

  1. Commit message:

    • ~~C~~coala :D
    • ~~u~~Use
  2. I see two commits here:

    Uses --limit-files instead of --files. Also, additional line-start and line-end regexp patterns.

    One change for --limit-files and one for the additional patterns.

Makman2 avatar Apr 28 '18 16:04 Makman2

Thanks for review. I addressed your comments, changed the commit message (typos) and reverted the regexp pattern change. With your consent I would squash.

fleimgruber avatar May 13 '18 12:05 fleimgruber

Alright you can squash ;) Please rectify your final commit message so things like line-end aren't mentioned any more (due to your "revert commit" :) )

Makman2 avatar May 31 '18 12:05 Makman2

@Makman2 Squashed.

fleimgruber avatar Jul 10 '18 06:07 fleimgruber