Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on tracing anonymous functions #6

Merged
merged 9 commits into from
Mar 10, 2024

Conversation

gafreax
Copy link
Contributor

@gafreax gafreax commented Mar 3, 2024

I write some update that show the name of the anonymous function and also add the line number.

Also related to these issues:
issue 4
issue 5

The output now will be

./index.js: 59 (ERROR)
  [line: 76] anonymous: addToList: 24 (ERROR)
  [line: 58] anonymous: buildLevel: 6 (OK)
  [line: 44] anonymous: isAligned: 5 (OK)

The output with JSON format will be:

[
  {
    "file": "./index.js",
    "functionComplexities": [
      {
        "name": "anonymous: addToList",
        "complexity": 24,
        "line": 76
      },
      {
        "name": "anonymous: buildLevelsList",
        "complexity": 6,
        "line": 58
      },
      {
        "name": "anonymous: isAligned",
        "complexity": 5,
        "line": 44
      }
    ]
  }
]

@gafreax gafreax changed the title Gaf issue anonymous function Issue on tracing anonymous functions Mar 3, 2024
@pilotpirxie pilotpirxie merged commit df1659e into pilotpirxie:main Mar 10, 2024
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.

None yet

2 participants