Ticket #7863 (closed defect: fixed)
Remove lint from auxiliary JS files
| Reported by: | mpatel | Owned by: | was |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.3.1 |
| Component: | notebook | Keywords: | |
| Cc: | timdumol | Work issues: | |
| Report Upstream: | N/A | Reviewers: | Tim Dumol |
| Authors: | Mitesh Patel | Merged in: | sagenb-0.6 |
| Dependencies: | Stopgaps: |
Description (last modified by mpatel) (diff)
JSLint on "The Good Parts" setting, applied to sagenb/data/sage/js/*.js but not notebook_lib.js. The latter will have its own ticket.
For now, I've disabled strict mode, since most (all?) current browsers don't yet have it.
Given the present architecture of the notebook JS library --- use lots of global variables, etc. --- I haven't implemented all of JSLint's suggestions. More generally:
"If you're writing javascript code, JSLint is a really fine piece of software, too. You don't have to follow its recommendations blindly, but understanding what it says about your code can greatly improve your skills." -- http://jsbeautifier.org/
Attachments
Change History
comment:1 Changed 3 years ago by mpatel
- Status changed from new to needs_review
- Description modified (diff)
Changed 3 years ago by mpatel
-
attachment
trac_7863-declare_vars_aux_js.patch
added
Declare vars in functions, etc., in aux JS files. Depends on #7786. sagenb repo.
Changed 3 years ago by mpatel
-
attachment
trac_7863-declare_vars_aux_js_v2.patch
added
Rebased vs. #7786 v11. Replaces previous.
