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

[new release] file-rewriter (2 packages) (0.0.3) #26650

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

mbarbin
Copy link
Contributor

@mbarbin mbarbin commented Sep 30, 2024

This is the initial release for 2 packages for applying small rewrites to tweak or refactor your files. Short synopsis below, more info at https://github.com/mbarbin/file-rewriter.

Synopsis

file-rewriter

File_rewriter is an OCaml library for applying small rewrites to tweak or refactor your files. It provides a convenient interface to apply surgical textual substitutions on the fly, while navigating the contents of a file through an abstract representation containing code locations.

sexps-rewriter

Sexps_rewriter is a specialized version of the main library dedicated to rewriting sexp files.

Motivation

We created these libraries as part of an ongoing work to create linting and refactoring tools for the many dune files found in big monorepos (see dunolint).

@mbarbin mbarbin marked this pull request as ready for review September 30, 2024 09:43
@avsm avsm merged commit 792d948 into ocaml:master Sep 30, 2024
3 checks passed
@avsm
Copy link
Member

avsm commented Sep 30, 2024

Thanks! You may want to announce this on https://discuss.ocaml.org, where we have a Community category and an announce tag for this purpose.

@mbarbin
Copy link
Contributor Author

mbarbin commented Oct 2, 2024

Thanks @avsm . I saw the package landed on ocaml.org. It doesn't have odoc pages on its home page (says "! No Docs"). I'd like to fix this. How can I enable it? Thanks!

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