package dunolint
A linter for build files in dune projects
Install
dune-project
Dependency
Authors
Maintainers
Sources
dunolint-0.0.20251006.tbz
sha256=1b064927c9e1ef5352a1886ae34a206fef0ce6a913c19a77b0162acc108e0e50
sha512=6cbc08ba318bef6584d15a4491e3dde1bf436109ce0f8b7c400a9f91bbcee64c5785bc924df11eafe98243ec2f188a7f92c58c5062729f3e2af1e9977f1a5e67
doc/dunolint.dunolinter/Dunolinter/Comment_handler/index.html
Module Dunolinter.Comment_handler
Source
A utility module to help with the management of comments in sexps files.
extended_range
computes the range for a library entry, that includes the original range for the entry, but where the stop
offset of the range may be shifted to the right, until the end of the line, if this captures a comment placed on the same line as the value.
For example:
(libraries foo bar ;; a comment for bar on the same line baz)
extended_range foo
will be foo
's original range unchanged. And extended_range bar
will include bar and its comment too.
A convenient wrapper for extended_range
that specializes to sexp arguments found when rewritting sexps with Sexps_rewriter
.
A convenient wrapper that extracts and returns the substring matching the entire extended_range
from the original contents.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>