File: semgrep-grammars/src/tree-sitter-move-on-aptos/LICENSE
Git repo name: tree-sitter-move-on-aptos
Latest commit in repo: d11dd2ca6c4c96e579b9860d577c6b2deb06443e
Last change in file:
  commit 5d7db449f55cc726c400e6f5d501d934c380f53e
  Author: Andrea Cappa (zi0Black) <13380579+zi0Black@users.noreply.github.com>
  Date:   Fri Jun 7 00:54:55 2024 +0200
  
      Update LICENSE
---
File: semgrep-grammars/src/tree-sitter-move-on-aptos/grammar.js
Git repo name: tree-sitter-move-on-aptos
Latest commit in repo: d11dd2ca6c4c96e579b9860d577c6b2deb06443e
Last change in file:
  commit fb843a9c3b49d83f739340721ba76d2477cdbf19
  Author: ArArgon <liaozping@gmail.com>
  Date:   Mon Aug 5 14:32:12 2024 -0700
  
      fix: change the `return`'s precedence
---
File: semgrep-grammars/src/semgrep-move-on-aptos/grammar.js
Git repo name: workspace
Latest commit in repo: 0627f36717370e4f3e6d12bfd2fd82ba23722c34
Last change in file:
  commit f8e6c96e50156031e3e7552477ae914e25506fba
  Author: Marc-André Laverdière <marc-andre@semgrep.com>
  Date:   Fri Sep 11 20:44:29 2026 -0600
  
      feat: ots grammar operator (registry, test/regen, check-vendored-ots) (#7026)
      
      ## Summary
      
      Converts the ocaml-tree-sitter-semgrep submodule into a part of the
      Semgrep code base.
      Most files are copied as-is, but some modifications are necessary.
      
      ## Details
      
      1. Registry: we no longer include and pin upstream grammars as
      .gitmodules because that creates large checkouts for a part of code
      that's not needed in the build. Instead, we have a registry
      (`upstream-grammars.json`) and a command-line utility for querying it
      (`grammar_registry.py`). Relevant scripts now use the registry CLI.
      
      2. Integrity check: we check the integrity of what's copied using
      `scripts/check-vendored-ots`. That script also lists the exclusions -
      files that were not needed in the new repo or needed to be updated along
      the way.
      
      3. CI updates:
      
      * `ots_is_submodule=false` now set, and increased conformity with the
      rest of the repo for pinning and caching
      * Improved dependencies caching for grammar tests, which were otherwise
      flaky due to too many jobs hitting OPAM at once.
      
      5. Script updates: besides what is mentioned in 1., we also ensured that
      all relevant scripts are in `OSS/lib/ocaml-tree-sitter-semgrep/scripts`
      
      6. Intentional omissions and removal:
      
      * Nothing related to update automation. This will be included in a
      future PR.
      * Removed temporary CI workflows that are no longer needed after the
      integration of the semgrep-LANG submodules.
      
      ## Test plan
      
      - [x] CI tests passing
      
      --- Text above this line is public. Place SENSITIVE info below! ---
      
      Dogfood follow-ups: CODE-9919, CODE-9921.
      Closes CODE-9913.
      
      ## Reviewer guide: pre-existing files
      
      Compared with the merge base of `origin/develop` and HEAD. Excludes
      newly added files and all contents of the former OTS submodule. Small
      but behavior-changing integration edits are included as substantive.
      Generated files and deletions are listed separately so none of the
      pre-existing changed paths are hidden.
      
      ### Substantive integration changes
      
      | File | Lines | Review focus |
      |---|---:|---|
      | `.github/workflows/ocaml-tree-sitter-ci.jsonnet` | +6/−2 | Include
      shared OSS workflow changes in triggers. |
      | `.github/workflows/ocaml-tree-sitter-test-languages.jsonnet` | +2/−2 |
      Switch from submodule checkout to in-tree grammar tooling. |
      | `.github/workflows/regen-grammar.jsonnet` | +11/−7 | Use integrated
      generator and shared build setup for Solidity canary. |
      | `.gitignore` | +0/−6 | Remove temporary OTS Docker-context exclusion.
      |
      | `.gitmodules` | +0/−4 | Remove OTS submodule configuration. |
      | `.pre-commit-config.yaml` | +7/−4 | Keep upstream core/lang excluded;
      lint integration scripts; test typing exclusions. |
      | `OSS/.github/workflows/ocaml-tree-sitter-ci.jsonnet` | +74/−58 | Root
      OCaml/Python test targets, shared setup and build caching. |
      | `OSS/.github/workflows/ocaml-tree-sitter-test-languages.jsonnet` |
      +6/−6 | In-tree grammar checkout and script paths. |
      | `OSS/.github/workflows/ocaml-tree-sitter.libsonnet` | +67/−50 | Shared
      dependency setup, build paths, CLI/build caches, lockfile hashes and
      triggers. |
      | `OSS/.gitignore` | +2/−5 | Replace broad OTS exclusion with ephemeral
      grammar-clone exclusion. |
      | `OSS/.gitmodules` | +0/−5 | Remove OTS submodule configuration. |
      | `OSS/.pre-commit-config.yaml` | +5/−3 | Keep upstream core/lang
      excluded; lint integration scripts; test typing exclusions. |
      | `OSS/Makefile` | +39/−4 | Root grammar build/test/setup targets; OTS
      tests in test-all; cleanup integration. |
      | `OSS/semgrep.opam.template` | +1/−1 | Pin tree-sitter to the vendored
      local core instead of a remote repository. |
      
      ### Removed or replaced files
      
      | File | Lines | Review focus |
      |---|---:|---|
      | `.github/workflows/check-vendored-grammars.jsonnet` | +0/−145 |
      Replaced by the in-tree OTS tooling/documentation. |
      | `.github/workflows/check-vendored-grammars.yml` | +0/−98 | Replaced by
      the in-tree OTS tooling/documentation. |
      | `OSS/languages/GRAMMAR_INTEGRATION.md` | +0/−136 | Replaced by the
      in-tree OTS tooling/documentation. |
      | `OSS/libs/ocaml-tree-sitter-semgrep` | +0/−1 | Gitlink replaced by
      ordinary vendored files; this was not an ordinary source file. |
      | `OSS/scripts/regen-grammar` | +0/−168 | Replaced by the in-tree OTS
      tooling/documentation. |
      | `scripts/check-vendored-grammars` | +0/−133 | Replaced by the in-tree
      OTS tooling/documentation. |
      | `scripts/newly-vendored-grammars` | +0/−31 | Replaced by the in-tree
      OTS tooling/documentation. |
      
      
      ### Small supporting edits
      
      | File | Lines | Review focus |
      |---|---:|---|
      | `.github/workflows/Makefile` | +1/−1 | Documentation, comment, or
      build wiring update. |
      | `AGENTS.md` | +6/−0 | Documentation, comment, or build wiring update.
      |
      | `Makefile` | +1/−0 | Documentation, comment, or build wiring update. |
      | `OSS/AGENTS.md` | +7/−0 | Documentation, comment, or build wiring
      update. |
      | `OSS/dune-project` | +2/−1 | Documentation, comment, or build wiring
      update. |
      | `README.md` | +1/−5 | Documentation, comment, or build wiring update.
      |
      | `WINDOWS.md` | +1/−5 | Documentation, comment, or build wiring update.
      |
      
      PR checklist:
      
      - [x] Documentation is up-to-date
      * Updated `OSS/libs/ocaml-tree-sitter-semgrep/README.md`,
      `doc/add-or-update-grammar.md`, `OSS/AGENTS.md`
        * Removed OSS/languages/GRAMMAR_INTEGRATION.md
        * TODO PR for website update
      - [x] An entry was added to
      [changelog.d](https://semgrep.dev/docs/contributing/contributing-code/#adding-a-changelog-entry)
      for user-facing changes, and to [CLI
      notes](https://golinks.io/cli-notes) for customer support (if needed)
      - [x] Change has no security implications (otherwise, ping security
      team)
      - [x] Change does not log any sensitive information to the INFO,
      WARNING, or ERROR log levels (e.g. tokens, analyzed source code)
      
      See [go/saf-pr](http://go/saf-pr) for a guide on our code review process
---
