community icon indicating copy to clipboard operation
community copied to clipboard

.coafile section generalization includes many inappropriate files

Open jayvdb opened this issue 6 years ago • 7 comments

[DEBUG][19:45:47] Files that will be checked:
[DEBUG][19:45:47] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them.
Executing section generalization...
[WARNING][19:45:48] Failed to read file '/home/travis/build/coala/community/.ci/deploy_key.enc'. It seems to contain non-unicode characters. Leaving it out.
[WARNING][19:45:48] Failed to read file '/home/travis/build/coala/community/activity/__pycache__/scraper.cpython-36.pyc'. It seems to contain non-unicode characters. Leaving it out.

They need to be excluded. Probably others also; see .gitignore.

jayvdb avatar Mar 10 '18 20:03 jayvdb

GitMate.io thinks a possibly related issue is https://github.com/coala/community/issues/6 (Create a .coafile).

gitmate-bot avatar Mar 10 '18 20:03 gitmate-bot

@jayvdb please assign me this issue

AkshJain99 avatar Jan 31 '19 16:01 AkshJain99

so what all types of file we need in generalization section @jayvdb can't we specify particular extension of all the files needed to us?

AkshJain99 avatar Jan 31 '19 17:01 AkshJain99

@AkshJain99 , you have not understood the issue, so .. no .. you can not be assigned. Only asked to be assigned to issues you understand.

jayvdb avatar Feb 03 '19 09:02 jayvdb

@jayvdb sorry i have assigned this early but now i got to understand the issue i have check coala logs and also git ignore and trying to figure out the extra unuse files on which coala is running

but one thing waana ask your logs show something else as shown above in description but my logs is this

[WARNING][11:05:42] No bears matching 'PyPluralNamingBear' were found. Make sure you have coala-bears installed or you have typed the name correctly.
Executing section all...
[WARNING][11:05:42] Detected trailing globstar in ignore glob '/home/akshit/community/.git/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:42] Detected trailing globstar in ignore glob '/home/akshit/community/**/__pycache__/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:42] Detected trailing globstar in ignore glob '/home/akshit/community/*/migrations/**'. Please remove the unnecessary '**' from its end.
Executing section all.whitespace...
[WARNING][11:05:43] Detected trailing globstar in ignore glob '/home/akshit/community/.git/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:43] Detected trailing globstar in ignore glob '/home/akshit/community/**/__pycache__/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:43] Detected trailing globstar in ignore glob '/home/akshit/community/*/migrations/**'. Please remove the unnecessary '**' from its end.
Executing section all.python...
[WARNING][11:05:44] Detected trailing globstar in ignore glob '/home/akshit/community/.git/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:44] Detected trailing globstar in ignore glob '/home/akshit/community/**/__pycache__/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:44] Detected trailing globstar in ignore glob '/home/akshit/community/*/migrations/**'. Please remove the unnecessary '**' from its end.
Executing section all.python.default...
[WARNING][11:05:46] Detected trailing globstar in ignore glob '/home/akshit/community/.git/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:46] Detected trailing globstar in ignore glob '/home/akshit/community/**/__pycache__/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:46] Detected trailing globstar in ignore glob '/home/akshit/community/*/migrations/**'. Please remove the unnecessary '**' from its end.
[WARNING][11:05:53] PyFlakesBear: This result has no patch attached.

gci/management/commands/show_linked_students.py
!  46! The line belonging to the following result cannot be printed because it refers to a line that doesn't seem to exist in the given file.
**** PyFlakesBear [Section: all.python.default | Severity: INFO] ****
!    ! invalid syntax
[    ] *0. Do (N)othing
[    ]  1. (O)pen file
[    ]  2. Add (I)gnore comment
[    ] Enter number (Ctrl-D to exit): 1
!    ! Please enter a value for the parameter 'editor' (The editor to open the file with.): vim
[    ] Changes saved successfully.
[    ] *0. Do (N)othing
[    ]  1. (O)pen file
[    ]  2. Add (I)gnore comment
[    ] Enter number (Ctrl-D to exit): 

by this I am not able to figure out on which file actually coala is running

AkshJain99 avatar Feb 04 '19 05:02 AkshJain99

No, you havent understood the issue. Your comments here show that. What is the goal of the generalisation section of .coafile ?

jayvdb avatar Feb 04 '19 06:02 jayvdb

as far as i understand @jayvdb ithink generalisation section is defined so as to make this file generalised for everyone who use it ,here keyword bear is use which lint all the files and search for the keyword given (here coala) and ignore that keyword in files given so that anybody can use it other that coala

is it something right what i am thinking?

AkshJain99 avatar Feb 04 '19 12:02 AkshJain99