htdocs: enable strict mode.
This commit is contained in:
parent
12c46c4738
commit
01ea91ed87
|
@ -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
|
||||
},
|
||||
|
|
|
@ -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", "");
|
||||
|
|
|
@ -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, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue