htdocs: enable strict mode.

This commit is contained in:
XhmikosR 2013-08-29 08:09:11 +03:00
parent 12c46c4738
commit 01ea91ed87
4 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "cppcheck-web",
"version": "0.1.3",
"version": "0.1.4",
"author": "XhmikosR (https://github.com/XhmikosR)",
"description": "The dependencies to build cppcheck's website",
"homepage": "https://github.com/danmar/cppcheck",
@ -42,7 +42,7 @@
"quotmark": "double",
"regexp": true,
"shelljs": true,
"strict": false,
"strict": true,
"trailing": true,
"unused": true
},

View File

@ -1,4 +1,6 @@
/* jshint unused:false, jquery:true */
/* jshint unused:false, jquery:true, browser:true, devel:true */
"use strict";
function addFile() {
var name = prompt("Name of library/platform/etc", "");

View File

@ -2,6 +2,8 @@
/* jshint quotmark:true, jquery:true */
'use strict';
// htmlEntities taken from http://css-tricks.com/snippets/javascript/htmlentities-for-javascript/
function htmlEntities(str) {
return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');

File diff suppressed because one or more lines are too long