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

Cannot read property 'replace' of undefined #23

Open
brpaz opened this issue Sep 3, 2020 · 0 comments
Open

Cannot read property 'replace' of undefined #23

brpaz opened this issue Sep 3, 2020 · 0 comments

Comments

@brpaz
Copy link

brpaz commented Sep 3, 2020

Hello. I am getting this error when parsing the following Junit file:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
	<testsuite name="Errors unhandled." tests="1">
		<testcase name="/github/workspace/cmd/server/main.go">
			<failure message="Found 1 vulnerability. See stacktrace for details.">Results:
[/github/workspace/cmd/server/main.go:23] - Errors unhandled. (Confidence: 2, Severity: 0, CWE: 703)
> 22: 	if os.Getenv(&#34;APP_ENV&#34;) == &#34;dev&#34; {
23: 		godotenv.Load()
24: 	}
</failure>
		</testcase>
	</testsuite>
</testsuites>

I guess it´s because my XML file doesn't have a class name attribute. Maybe this action, should fallback to the name property. I known for example ESlint junit results also doesnt have the classname attribute.

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

No branches or pull requests

1 participant