Skip to content

Remove code comments - #95

Merged
davesnx merged 1 commit into
mainfrom
comment-purge
Nov 21, 2026
Merged

davesnx merged 1 commit into
mainfrom
comment-purge

Conversation

@davesnx

@davesnx davesnx commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Removes the code comments in source, tests, CLI, website, scripts, CI and build files. Code is unchanged apart from formatting.

Each comment was sorted into one of four groups:

Other changes:

  • Removed seven empty test lists that held only commented-out tests (nan_infinite, toboolean, regex_split, regex_splits, destructuring_alternative, loc, generators_iterators). The test count stays at 6594.
  • query-json.opam is regenerated from query-json.opam.template.
  • The public API doc comments in Core.mli, Demand.mli, Read.mli and Write.mli are deleted too.

Kept: shebangs, the Makefile ## help text, the JSDoc @type in website/vite.config.js, and the prose in the cli/test/*.t cram files.

The max_fast_digits comment led to a bug in the JavaScript build. Decimals with 10 to 18 digits overflow there, for example 1234567890.5 prints as -53922298.3. Filed as #94.

Checks

  • make format-check
  • dune build --root . --profile=release @all
  • make test: 6594 tests pass
  • make web-build

Merge risk: low. The diff only deletes comments and empty test lists, plus the formatting changes that follow.

Summary by CodeRabbit

  • Documentation
    • Removed explanatory comments and section labels across the project. These edits do not change application behavior or available features.
  • Tests
    • Updated and reorganized runtime test cases, including coverage for numeric precision and boundaries, sorting, paths, and string handling. Existing test expectations and functionality remain unchanged.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This change removes comments and section labels across configuration, scripts, source code, and tests. It also removes commented-out tests and several runtime test groups from the registry. Implementations and configuration behavior remain unchanged.

Changes: Comment Cleanup and Test Suite Updates

Layer / File(s) Summary
Repository, tooling, and website annotations
.gitattributes, .github/workflows/ci.yml, .gitignore, Makefile, benchmarks/bench.sh, cli/*, js/dune, query-json.opam*, scripts/*, website/*
Comments and section labels were removed. Existing settings, recipes, and executable code remain unchanged.
Language declarations and function mappings
source/Ast.ml, source/Language.ml, source/Lexer.ml
Comments were removed from AST constructors, function mappings, and lexer declarations. The mappings and logic remain unchanged.
Core APIs and interpreter annotations
source/Core.*, source/Demand.mli, source/Error.mli, source/Interpreter.ml
API and implementation comments were removed. Declarations and interpreter logic remain unchanged.
Jotason implementation and test annotations
source/jotason/Codec.ml, source/jotason/Common.ml, source/jotason/Read.*, source/jotason/Write.*, source/jotason/test/*
Comments and documentation were removed. Implementations and registered Jotason test cases remain unchanged.
Parser, error, and runtime test updates
source/test/Test_errors.ml, source/test/Test_parse.ml, source/test/Test_runtime.ml
Comments and commented-out tests were removed. Several runtime test groups were removed from the registry; the merge-boundary test invocation was consolidated while retaining its cases.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · up to 7ebf6

This change removes comments and empty test lists and does not alter runtime behavior. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Remove code comments" matches the main change. The PR deletes comments across source, tests, CLI, website, scripts, CI, and build files. It is short and specific. It does not name the decis…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Remove code comments" matches the main change. The PR deletes comments across source, tests, CLI, website, scripts, CI, and build files. It is short and specific. It does not name the decision-record or stale-comment scope, but that detail is not required for a title.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b50040c3-4134-49dd-9059-0c5d55f40630
Commits

Reviewing files that changed from the base of the PR and between 254b2b3 and 7ebf6f9.

Files selected for processing: 39

  • .gitattributes
  • .github/workflows/ci.yml
  • .gitignore
  • Makefile
  • benchmarks/bench.sh
  • cli/Repl.mlx
  • cli/cli.ml
  • js/dune
  • query-json.opam
  • query-json.opam.template
  • scripts/install.sh
  • scripts/make-npm-release.js
  • scripts/release-postinstall.js
  • source/Ast.ml
  • source/Core.ml
  • source/Core.mli
  • source/Demand.mli
  • source/Error.mli
  • source/Interpreter.ml
  • source/Language.ml
  • source/Lexer.ml
  • source/console-style/Console_style.ml
  • source/jotason/Codec.ml
  • source/jotason/Common.ml
  • source/jotason/Read.ml
  • source/jotason/Read.mli
  • source/jotason/Write.ml
  • source/jotason/Write.mli
  • source/jotason/test/Test_jotason.ml
  • source/jotason/test/Test_read.ml
  • source/jotason/test/Test_write.ml
  • source/jotason/test/Testable.ml
  • source/test/Test_errors.ml
  • source/test/Test_parse.ml
  • source/test/Test_runtime.ml
  • website/App.mlx
  • website/monaco-editor.js
  • website/styles.css
  • website/vite.config.js
Files with no reviewable changes: 27

  • .gitattributes
  • .github/workflows/ci.yml
  • .gitignore
  • benchmarks/bench.sh
  • cli/Repl.mlx
  • cli/cli.ml
  • scripts/make-npm-release.js
  • scripts/release-postinstall.js
  • source/Core.ml
  • source/Core.mli
  • source/Demand.mli
  • source/Error.mli
  • source/Language.ml
  • source/console-style/Console_style.ml
  • source/jotason/Read.ml
  • source/jotason/Read.mli
  • source/jotason/Write.mli
  • source/jotason/test/Test_jotason.ml
  • source/jotason/test/Test_read.ml
  • source/jotason/test/Test_write.ml
  • source/jotason/test/Testable.ml
  • source/test/Test_errors.ml
  • source/test/Test_parse.ml
  • website/App.mlx
  • website/monaco-editor.js
  • website/styles.css
  • website/vite.config.js

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@github-actions

Copy link
Copy Markdown

@davesnx
davesnx merged commit 2ab20d0 into main Nov 21, 2026
5 checks passed
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.

1 participant