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

Plugin error when headerFile nested in folder #284

Open
xqzlgy2 opened this issue Nov 3, 2020 · 0 comments
Open

Plugin error when headerFile nested in folder #284

xqzlgy2 opened this issue Nov 3, 2020 · 0 comments
Labels

Comments

@xqzlgy2
Copy link

xqzlgy2 commented Nov 3, 2020

If a Java project is nested inside the root folder like this:

projectRoot
│
└───JavaProject
     │   check_style.xml
     │   microsoft.header
     │   pom.xml
     └───com.a.b
         │   A.java
         │   B.java
         │   ...

And we add headerFile check in check_style.xml like this:

<module name="RegexpHeader">
    <property name="headerFile" value="microsoft.header"/>
</module>

When we set configuration file, we will get error:
image

Because the plugin will search for headerFile at project root, but it could not find.
Actually, the searching scope should be the path where the configuration file located, not project root.

@jdneo jdneo added the bug label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants