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

nf-core lint searches vim tmp files #477

Closed
erikrikarddaniel opened this issue Dec 6, 2019 · 9 comments
Closed

nf-core lint searches vim tmp files #477

erikrikarddaniel opened this issue Dec 6, 2019 · 9 comments

Comments

@erikrikarddaniel
Copy link
Member

Files matching .*.sw? should probably not be included in what's linted.

@ewels
Copy link
Member

ewels commented Dec 6, 2019

hah, oops.. Which linting step is this?

@ewels ewels added the linting label Jan 31, 2020
@ewels
Copy link
Member

ewels commented Jan 31, 2020

Hi @erikrikarddaniel,

Are you able to confirm which linting step you had this issue with? Just so that we can be sure to track down the error.

Cheers,

Phil

@erikrikarddaniel
Copy link
Member Author

erikrikarddaniel commented Feb 1, 2020 via email

@ewels
Copy link
Member

ewels commented Feb 2, 2020

I don’t think that the linting looks at main.nf at all, or any of the config files. It checks those by running nextflow config - so it’s up to Nextflow to ignore temp files for those. It’s possible that the linting would pick up on temp files for other stuff I guess, but I’m not sure which files or tests would be affected by this.

If it’s ok, I’ll close this issue now. But please reopen if it happens again with the specific error / warning that you get from a temp file and it should be easy enough to track down.

Phil

@ewels ewels closed this as completed Feb 2, 2020
@fasterius
Copy link

I'm getting similar behaviour with TODO strings and vim undo-files (<file.extension>.un~): even TODOs that I've fixed are still showing up in the undo files (as they are part of the files' histories), which is a bit annoying. A workaround is of course to just store my undo-files in my home folder, but I prefer them to be in the same directory as their original file.

@ewels
Copy link
Member

ewels commented Jul 13, 2020

Fix is to improve the code that ignores files in the check_pipeline_todos() function:

ignore = [".git"]

At the moment it will only work with exact filename matches though, so will need to be extended to use fnmatch to match file patterns as well.

@ewels ewels reopened this Jul 13, 2020
@ewels
Copy link
Member

ewels commented Jul 21, 2020

Suggestion for glob patterns: *~ and *?

@fasterius
Copy link

Should work, though I don't know if any others use *~. Either use that or *.un~if you want to be more specific.

@ewels
Copy link
Member

ewels commented Jul 23, 2020

I can't see why we would need to commit any files ending in ~. Easy enough to change / manually add if we do anyway, so I'd rather keen it broad I think.

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

No branches or pull requests

3 participants