Better HN
topnewbestaskshowjobs
Log inSign up

mennanov

2 karma · joined Jan 26, 2023 (3y ago) · 3 submissions

Submissions

comment 3w ago · link · parent

I'm working on a cross-file deterministic drift checker https://github.com/mennanov/blockwatch

The idea is that the source code is annotated with special rules which configure how parts of the code (also configs and docs) depend on each other. This can be done either directly in the source code comments or in a config file blockwatch.toml

This tool is very useful for large codebases that e.g. share constants across programming languages and configs, have docs that should strictly reflect the current state of the code, etc

It uses tree-sitter to parse the source code, 35+ languages are supported.

The project is actively developed, your feedback is welcomed! Thanks!

comment 9mo ago · link · parent

https://github.com/mennanov/blockwatch

BlockWatch - a language agnostic linter that keeps your code, documentation, and configuration in sync and enforces strict formatting and validation rules.

It helps you avoid broken docs and messy config files by enforcing rules directly in your comments. You can link code to documentation, enforce sorting order, ensure uniqueness, and validate code with Regex or AI.

It works with most major languages.