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

Add possibility to avoid ordering of certain modules, or group before sorting #18

Open
nicomen opened this issue Jun 9, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@nicomen
Copy link
Contributor

nicomen commented Jun 9, 2021

I have been used to separate 'use' lines for external modules, and for in-house modules for tidyness and easy to have an overview. It would be nice if one could skip sorting certain modules (in a namespace for instance), or perhaps possiblity to define blocks to group modules in, and sort inside the blocks.

Example:

use Foo;
use Bar;

use ACompany::Zeta;
use ACompany::Acme;

=>

use Bar ();
use Foo ();

use ACompany::Acme qw(some_used_import);
use ACompany::Zeta ();
@nicomen nicomen changed the title Add possibility to avoid ordering of modules Add possibility to avoid ordering of certain modules, or group before sorting Jun 9, 2021
@oalders
Copy link
Member

oalders commented Jun 9, 2021

I think this makes sense to me. What I was thinking to start with was maybe just to sort contiguous sets of modules, so that should work with what you've proposed above.

@oalders oalders added the enhancement New feature or request label Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants