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

spotless and markdown #504

Closed
slawekjaranowski opened this issue May 12, 2024 · 3 comments · Fixed by #505
Closed

spotless and markdown #504

slawekjaranowski opened this issue May 12, 2024 · 3 comments · Fixed by #505
Labels

Comments

@slawekjaranowski
Copy link
Member

We need check only project markdown files.
Generated files from target should be excluded.

Reproduce, eg in tidy-maven-plugin execute site build twice:

mvn site

mvn site 

we have:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.12.1:site (default-site) on project tidy-maven-plugin: failed to get report for org.apache.maven.plugins:maven-plugin-report-plugin: Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.43.0:check (spotless-check) on project tidy-maven-plugin: The following files had format violations:
[ERROR]     target/site/apidocs/legal/jquery.md
[ERROR]         @@ -1,6 +1,7 @@
[ERROR]          ##·jQuery·v3.6.1
[ERROR]          
[ERROR]          ###·jQuery·License
[ERROR]         +
[ERROR]          ```
....
@slawekjaranowski
Copy link
Member Author

@slachiewicz can you look 😄

@slachiewicz
Copy link
Member

@slawekjaranowski
Copy link
Member Author

maybe:

                <include>*.md</include>
                <include>src/**/.md</include>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants