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

Silence annoying ltex error on no error #5

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

tdeo
Copy link
Member

@tdeo tdeo commented Dec 10, 2024

@tdeo tdeo requested review from matthieu-gendreau, a team and dumitraand and removed request for a team December 10, 2024 12:24
Copy link

@matthieu-gendreau matthieu-gendreau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks it will definitively improve the DX when updating the documentation!

❓there are no tests within this repository?

@@ -4,6 +4,12 @@ repos:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: https://github.com/shellcheck-py/shellcheck-py

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😕 Is this related to this ltex?

"$ltex_version" 2>&1 |
sed -E 's|(app/javascript/documentation/.*?\.md):|\1x:|g' || true)

echo "$output" | grep "SEVERE: java.io.IOException: Stream closed" >/dev/null || echo "$output"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 it could make it harder to debug if a future issue would trigger a java IOException that would be stripped from the output?

@tdeo
Copy link
Member Author

tdeo commented Dec 10, 2024

Thanks it will definitively improve the DX when updating the documentation!

❓there are no tests within this repository?

I don't know how I'd test pre-commit hooks with python in the first place. The dev workflow is pretty interactive locally by using pre-commit try-repo but honestly I don't think it's worth the effort of setting up something for real

@tdeo tdeo merged commit a535c10 into main Dec 10, 2024
1 check passed
@tdeo tdeo deleted the zde/silence_ltex_errors branch December 10, 2024 14:21
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

Successfully merging this pull request may close these issues.

2 participants