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

Try adding support for ignore modules by regular expression pattern #16

Merged
merged 3 commits into from
Jun 10, 2021

Conversation

nicomen
Copy link
Contributor

@nicomen nicomen commented Jun 9, 2021

Hi, loved your talk at TPC 2021.

You asked for pull requests. Here's one for allowing ignoring modules by regex pattern. Should be useful for instance to not touch use MyCompany:: lines, or perhaps using a pattern like ^Mo(use|o|ose\b, like ^Test:: or similar.

Perhaps the ignore-modules-pattern-filename option is excessive given that one can combine regexps but just tried to follow the same approach as ignore-modules-*

@oalders
Copy link
Member

oalders commented Jun 9, 2021

Thanks very much for this @nicomen! This was something I had thought about, but ended up working around it by using long lists of modules to ignore. :)

Copy link
Member

@oalders oalders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! 🎉 Thanks for taking the time to put this together. I just had a few comments.

author/script/perlimports Outdated Show resolved Hide resolved
author/script/perlimports Outdated Show resolved Hide resolved
author/script/perlimports Outdated Show resolved Hide resolved
lib/App/perlimports/Document.pm Outdated Show resolved Hide resolved
t/cli.t Show resolved Hide resolved
@oalders
Copy link
Member

oalders commented Jun 9, 2021

The tests are failing on perltidy, so might be helpful to run that as well?

@nicomen
Copy link
Contributor Author

nicomen commented Jun 10, 2021

Did my new changes work out, or is it more left to fix?

@oalders
Copy link
Member

oalders commented Jun 10, 2021

This is great.Thanks @nicomen!

@oalders oalders merged commit f266bc8 into perl-ide:main Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants