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

Support for disabling warnings #95

Open
ghost opened this issue May 11, 2023 · 1 comment
Open

Support for disabling warnings #95

ghost opened this issue May 11, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented May 11, 2023

HI there,

First of all thanks for the great library!

Is there a way to disable the warnings or control the warnings that come through? Example this is what I get when I run ssort .

WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
WARNING: can't determine dependencies on * import
@bwhmather
Copy link
Owner

We've been discussing this recently and think that the reason for having these warnings no longer holds. Early versions of ssort tried to do a lot of fairly "clever" grouping, and failed dependency resolution would lead to mad reshuffling. Now that things are more sensible, failed dependency resolution will usually just result in no change.

I've raised #96 to remove the whole lot.

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

No branches or pull requests

1 participant