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

inception - parse comments in doc tests #43

Open
drahnr opened this issue Jun 18, 2020 · 0 comments
Open

inception - parse comments in doc tests #43

drahnr opened this issue Jun 18, 2020 · 0 comments
Labels
enhancement 🦚 New feature or request help wanted 🤝 Extra attention is needed
Milestone

Comments

@drahnr
Copy link
Owner

drahnr commented Jun 18, 2020

Summary

//! a doc comment
//! ```rust
//! /// currently this is not checked, can contain garbage
//! fn y() -> usize { 2usize }
//! ```


// I am ok!
struct Foo;

the inner documentation comments should also be checked as separate entity, as if the doc-test was a separate file.

Skeptic uses cmark just as we do, and the simplest approach would be to re-inject code blocks into the pipeline as virtual files.

@drahnr drahnr added enhancement 🦚 New feature or request help wanted 🤝 Extra attention is needed labels Jun 18, 2020
@drahnr drahnr mentioned this issue Jun 19, 2020
3 tasks
@drahnr drahnr added this to the v0.4.0 milestone Jul 14, 2020
@drahnr drahnr modified the milestones: v0.4.0, v0.5.0 Aug 17, 2020
@drahnr drahnr modified the milestones: v0.5.0, v0.6.0 Nov 17, 2020
@drahnr drahnr mentioned this issue Apr 7, 2021
3 tasks
@drahnr drahnr modified the milestones: v0.8.0, 0.9.0 Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🦚 New feature or request help wanted 🤝 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant