Skip to content
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

Improve description of KeywordBear #1274

Closed
coala-bot opened this issue Jan 7, 2017 · 17 comments
Closed

Improve description of KeywordBear #1274

coala-bot opened this issue Jan 7, 2017 · 17 comments

Comments

@coala-bot
Copy link

Why does it check for comment ranges in the code, explain it a bit in the description . I'm getting inconsistent patch on different files. Description in comments.

Opened via gitter by @aptrishu

@aptrishu
Copy link
Member

aptrishu commented Jan 7, 2017

Consider the test file

//#warning We should implement it for cross node compatibility
//#warning

we get this patch -
sc2

Now for this test file

#warning We should implement it for cross node compatibility
//#warning

we get this patch -
sc1

.coafile -

[Default]
language = C
bears = KeywordBear
files = javaji/check.c
use_spaces = yeah
keywords = #warning

@Makman2
Copy link
Member

Makman2 commented Jan 7, 2017

looks more like a bug to me, because it doesn't detect the second line^^

@aptrishu
Copy link
Member

Actually it detects the second line but doesn't propose a patch for it.

@Makman2
Copy link
Member

Makman2 commented Jan 11, 2017

that's what I wanted to say :P 🎉

@Techievena
Copy link
Member

I think it shouldn't propose a patch at all. It has just got to find the position of the keyword. That's it.

@Makman2
Copy link
Member

Makman2 commented Jan 11, 2017

@Techievena we offer the user a patch to remove the comment, that should happen for both todos in the example^^ he doesn't have to accept it :)

@Techievena
Copy link
Member

Well I'm getting this kind of result

@Techievena
Copy link
Member

image

@Techievena
Copy link
Member

image

@Makman2
Copy link
Member

Makman2 commented Jan 12, 2017

yes as you see you can't apply the patch for the second #warning comment

@aptrishu
Copy link
Member

first one is same as mine.. and in second screenshot you also messed up a bit with coafile. :P

@Techievena
Copy link
Member

@aptrishu No the coafile is actually the same. I've just copied the file. Actually both the results are different. The first one asks for a patch for Keyword warning. But when I'm searching for Keyword #warning it is searching for keyword ' '. Well @Makman2 I got it we also got the KeywordBear to ask for a patch for the second line #warning. Will work on it. 😃 . I just wanted to point out this flaw.

@aptrishu
Copy link
Member

yeah you gotta prefix #warning with a \ .

Techievena added a commit to Techievena/coala-bears that referenced this issue Jan 12, 2017
Propose patches to the user for all the keywords found
in the file.

Fixes coala#1274
Techievena added a commit to Techievena/coala-bears that referenced this issue Jan 12, 2017
Propose patches to remove all the comments in which
keywords are found in the file.

Fixes coala#1274
Techievena added a commit to Techievena/coala-bears that referenced this issue Jan 12, 2017
Propose patches to remove all the comments in which
keywords are found in the file.

Fixes coala#1274
Techievena added a commit to Techievena/coala-bears that referenced this issue Jan 13, 2017
Propose patches to remove all the comments in which
keywords are found in the file.

Fixes coala#1274
Techievena added a commit to Techievena/coala-bears that referenced this issue Jan 13, 2017
Propose patches to remove all the comments in which
keywords are found in the file.

Fixes coala#1274
@Makman2
Copy link
Member

Makman2 commented Jan 14, 2017

@Techievena that little patch did fix this issue? :D

@Makman2
Copy link
Member

Makman2 commented Jan 14, 2017

btw could you make a test for this if possible? You can open up another issue for it^^

@Techievena
Copy link
Member

stbd-series-preview_157x157_157x157

@Techievena
Copy link
Member

This one perfectly fits in this @Makman2 😆 . Now I have taken up one medium and a low issue related to Java (and me being completely ignorant about the package system and all stuffs related to Java). Those issues will take some time. I promise I'll work on this as soon as I'm finished with them.

namanyadav12 added a commit to namanyadav12/coala-bears that referenced this issue Jan 15, 2017
Add test for coala#1274
The test checks the diff to make sure that it proposes a
patch to remove the comments even for multiple comments.

Closes coala#1306
namanyadav12 added a commit to namanyadav12/coala-bears that referenced this issue Jan 15, 2017
Add test for coala#1274
The test checks the diff to make sure that it proposes a
patch to remove the comments even for multiple comments.

Closes coala#1306
namanyadav12 added a commit to namanyadav12/coala-bears that referenced this issue Jan 15, 2017
Add test for coala#1274
The test checks the diff to make sure that it proposes a
patch to remove the comments even for multiple comments.

Closes coala#1306
namanyadav12 added a commit to namanyadav12/coala-bears that referenced this issue Jan 16, 2017
Add test for coala#1274
The test checks the diff to make sure that it proposes a
patch to remove the comments even for multiple comments.

Closes coala#1306
namanyadav12 added a commit to namanyadav12/coala-bears that referenced this issue Jan 19, 2017
Add test for coala#1274
The test checks the diff to make sure that it proposes a
patch to remove the comments even for multiple comments.

Closes coala#1306
gosom pushed a commit to gosom/coala-bears that referenced this issue Jul 15, 2017
Propose patches to remove all the comments in which
keywords are found in the file.

Fixes coala#1274
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants