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

Incorrect kics_line from json parser #4327

Closed
joaoReigota1 opened this issue Oct 1, 2021 · 0 comments · Fixed by #4328
Closed

Incorrect kics_line from json parser #4327

joaoReigota1 opened this issue Oct 1, 2021 · 0 comments · Fixed by #4328
Assignees
Labels
bug Something isn't working go Pull requests that update Go code

Comments

@joaoReigota1
Copy link
Collaborator

Json lines are returning the wrong line for this case:

{
  "resource": [
    {
      "properties": "..."
    },
    {
      "resource": [
        "properties": "..."
      ],
      "properties": "..."
    }
  ]
}

The last property is getting the incorrect path which by consequence returns the wrong kics_line

@joaoReigota1 joaoReigota1 added bug Something isn't working go Pull requests that update Go code labels Oct 1, 2021
@joaoReigota1 joaoReigota1 self-assigned this Oct 1, 2021
joaoReigota1 added a commit that referenced this issue Oct 1, 2021
Signed-off-by: João Reigota <joao.reigota@checkmarx.com>
rogeriopeixotocx pushed a commit that referenced this issue Oct 1, 2021
Signed-off-by: João Reigota <joao.reigota@checkmarx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working go Pull requests that update Go code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant