[Koha-bugs] [Bug 9284] New: JavaScript should conform to coding guidelines recommended by JSHint

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 13 21:54:56 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9284

            Bug ID: 9284
           Summary: JavaScript should conform to coding guidelines
                    recommended by JSHint
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: oleonard at myacpl.org

JSHint can be used to check JavaScript for errors and potential problems. It
can be installed on a variety of platforms and integrated into various editors:

http://www.jshint.com/platforms/

I propose that we use JSHint with default settings as a set of coding
guidelines for JavaScript in Koha, and that patches correcting errors be
attached to this omnibus bug.

Some typical JSHint errors for example:

js/additem.js: line 3, col 52, Missing radix parameter.
js/additem.js: line 5, col 41, Use '!==' to compare with '0'.
js/additem.js: line 68, col 25, Use '===' to compare with 'undefined'.
js/additem.js: line 122, col 58, Missing semicolon.
js/additem.js: line 206, col 21, Bad line breaking before '+'.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list