htdocs: enable strict mode.
This commit is contained in:
parent
12c46c4738
commit
01ea91ed87
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cppcheck-web",
|
"name": "cppcheck-web",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"author": "XhmikosR (https://github.com/XhmikosR)",
|
"author": "XhmikosR (https://github.com/XhmikosR)",
|
||||||
"description": "The dependencies to build cppcheck's website",
|
"description": "The dependencies to build cppcheck's website",
|
||||||
"homepage": "https://github.com/danmar/cppcheck",
|
"homepage": "https://github.com/danmar/cppcheck",
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"quotmark": "double",
|
"quotmark": "double",
|
||||||
"regexp": true,
|
"regexp": true,
|
||||||
"shelljs": true,
|
"shelljs": true,
|
||||||
"strict": false,
|
"strict": true,
|
||||||
"trailing": true,
|
"trailing": true,
|
||||||
"unused": 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() {
|
function addFile() {
|
||||||
var name = prompt("Name of library/platform/etc", "");
|
var name = prompt("Name of library/platform/etc", "");
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
/* jshint quotmark:true, jquery:true */
|
/* jshint quotmark:true, jquery:true */
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
// htmlEntities taken from http://css-tricks.com/snippets/javascript/htmlentities-for-javascript/
|
// htmlEntities taken from http://css-tricks.com/snippets/javascript/htmlentities-for-javascript/
|
||||||
function htmlEntities(str) {
|
function htmlEntities(str) {
|
||||||
return String(str).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
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