bugout-dev / locust

"git diff" over abstract syntax trees
MIT License
51 stars 7 forks source link

Adds a Javascript language analyzer #36

Closed zomglings closed 3 years ago

zomglings commented 3 years ago

Resolves https://github.com/bugout-dev/locust/issues/21

Some work still remains around:

  1. Polyglot Locust docker images? Or at least chaining together a Locust pipeline through docker containers.
  2. Publishing the Javascript plugin to NPM
  3. Defining Locust data structures in a protobuf-like data format so that we can autogenerate types/containers for various languages.

But this is the architecture we will use for additional languages going forward.

github-actions[bot] commented 3 years ago

Locust summary

Git references

Initial: 0418cad
Terminal: 9be912e

locust/parse.py
Changes:
tests/test_parse.py
Changes:
locust/cli.py
Changes:
locust/git.py
Changes:
  • Name: HunkBoundary
    Type: class
    Changed lines: 4
    Total lines: 4
    • Name: HunkInfo
      Type: class
      Changed lines: 3
      Total lines: 6
      • Name: PatchInfo
        Type: class
        Changed lines: 2
        Total lines: 6
        • Name: get_patches
          Type: function
          Changed lines: 12
          Total lines: 30
          • Name: hunk_boundary
            Type: function
            Changed lines: 26
            Total lines: 26
            • Name: process_hunk
              Type: function
              Changed lines: 6
              Total lines: 22
              • Name: revision_file
                Type: function
                Changed lines: 7
                Total lines: 38
                locust/render.py
                Changes:
                • Name: run
                  Type: function
                  Changed lines: 2
                  Total lines: 21
                  tests/test_git.py
                  Changes: