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

ImportOrderChecker grouping not working as expected #76

Open
redkhalil opened this issue Jun 23, 2020 · 0 comments
Open

ImportOrderChecker grouping not working as expected #76

redkhalil opened this issue Jun 23, 2020 · 0 comments

Comments

@redkhalil
Copy link

redkhalil commented Jun 23, 2020

This is my configuration

<check level="error" class="org.scalastyle.scalariform.ImportOrderChecker" enabled="true">
        <parameters>
            <parameter name="groups">java,scala,others,mycompany</parameter>
            <parameter name="group.java">javax?\..+</parameter>
            <parameter name="group.scala">scala\..+</parameter>
            <parameter name="group.mycompany">com.mycompany\..+</parameter>
            <parameter name="group.others">.+</parameter>
        </parameters>
    </check>

and the following import is being flagged as invalid by scalastyle, reporting There should be no empty line separating imports in the same group.

com.rabbitmq.this

com.mycompany.that

However if I change the order to java,scala,mycompany,others then there is no error reported.

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