We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
metrics.globalVariables
offenders.globalVariables
$ sudo phantomas --url https://foo.org/signup --reporter json
"globalVariables": 12,
But the globalVariables array is an array with one element
globalVariables
"globalVariables": [ "$, Backbone, Modernizr, _, define, html5, jQuery, jQuery110206297926814295352, require, requirejs, router, translator" ],
metrics.globalVariables == 12, but the offenders.globalVariables only has a single item in it's array (which is a ", " delimited string):
offenders.globalVariables[0] = "$, Backbone, Modernizr, _, define, html5, jQuery, jQuery110206297926814295352, require, requirejs, router, translator"
Each global variable should be its own array element (something like offenders.globalVariables = offenders.globalVariables[0].split(", "))
offenders.globalVariables = offenders.globalVariables[0].split(", ")
offenders.globalVariables[0]
offenders.globalVariables[1]
offenders.globalVariables[11]
The text was updated successfully, but these errors were encountered:
@pdehaan, good point. I was considering this approach when implementing this.
Sorry, something went wrong.
macbre
No branches or pull requests
Steps to reproduce:
$ sudo phantomas --url https://foo.org/signup --reporter json
metrics.globalVariables
andoffenders.globalVariables
results:But the
globalVariables
array is an array with one elementActual results:
metrics.globalVariables
== 12, but theoffenders.globalVariables
only has a single item in it's array (which is a ", " delimited string):Expected results:
Each global variable should be its own array element (something like
offenders.globalVariables = offenders.globalVariables[0].split(", ")
)offenders.globalVariables[0]
=== "$"offenders.globalVariables[1]
=== "Backbone"offenders.globalVariables[11]
=== "translator"The text was updated successfully, but these errors were encountered: