ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Schaefer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-21365) Accidental globals in JavaScript code
Date Wed, 28 Jun 2017 13:15:00 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-21365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Max Schaefer updated AMBARI-21365:
----------------------------------
    Affects Version/s: trnk
               Status: Patch Available  (was: Open)

> Accidental globals in JavaScript code
> -------------------------------------
>
>                 Key: AMBARI-21365
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21365
>             Project: Ambari
>          Issue Type: Improvement
>          Components: contrib
>    Affects Versions: trnk
>            Reporter: Max Schaefer
>            Priority: Minor
>         Attachments: AMBARI-21365.patch
>
>
> As detected by [lgtm|https://lgtm.com], a few JavaScript variables are used like local
variables but are missing declarations, meaning that they become globals by default. This
seems unlikely to be intentional, and is fixed by the attached patch.
> For more details see https://lgtm.com/projects/g/apache/ambari/alerts. (Full disclosure:
I work on the JavaScript analysis behind lgtm.)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message