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

.coafile section generalization includes many inappropriate files #90

Open
jayvdb opened this issue Mar 10, 2018 · 7 comments
Open

.coafile section generalization includes many inappropriate files #90

jayvdb opened this issue Mar 10, 2018 · 7 comments

Comments

@jayvdb
Copy link
Member

jayvdb commented Mar 10, 2018

[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.

@gitmate-bot
Copy link
Collaborator

GitMate.io thinks a possibly related issue is #6 (Create a .coafile).

@AkshJain99
Copy link
Member

@jayvdb please assign me this issue

@AkshJain99
Copy link
Member

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?

@jayvdb
Copy link
Member Author

jayvdb commented Feb 3, 2019

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

@AkshJain99
Copy link
Member

@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

@jayvdb
Copy link
Member Author

jayvdb commented Feb 4, 2019

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

@AkshJain99
Copy link
Member

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?

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

No branches or pull requests

3 participants