Merge pull request #120 from siebrand/7
Various fixes suggested by static code analysis
This commit is contained in:
@@ -76,6 +76,7 @@ $js = <<<JAVASCRIPT
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
$.uls = $.uls || {};
|
||||
//noinspection JSHint
|
||||
$.uls.data = $json;
|
||||
} ( jQuery ) );
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
s<!DOCTYPE html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -20,11 +20,13 @@
|
||||
|
||||
module( 'jquery.uls' );
|
||||
|
||||
var orphanScripts, badRedirects, doubleRedirects, languagesWithoutAutonym;
|
||||
|
||||
/*
|
||||
* Runs over all script codes mentioned in langdb and checks whether
|
||||
* they belong to the 'Other' group.
|
||||
*/
|
||||
var orphanScripts = function () {
|
||||
orphanScripts = function () {
|
||||
var language, script,
|
||||
result = [];
|
||||
|
||||
@@ -42,7 +44,7 @@
|
||||
/*
|
||||
* Runs over all languages and checks that all redirects have a valid target.
|
||||
*/
|
||||
var badRedirects = function () {
|
||||
badRedirects = function () {
|
||||
var language, target,
|
||||
result = [];
|
||||
|
||||
@@ -61,7 +63,7 @@
|
||||
* Runs over all languages and checks that all redirects point to a language.
|
||||
* There's no reason to have double redirects.
|
||||
*/
|
||||
var doubleRedirects = function () {
|
||||
doubleRedirects = function () {
|
||||
var language, target,
|
||||
result = [];
|
||||
|
||||
@@ -80,7 +82,7 @@
|
||||
* Runs over all script codes mentioned in langdb and checks whether
|
||||
* they have something that looks like an autonym.
|
||||
*/
|
||||
var languagesWithoutAutonym = function () {
|
||||
languagesWithoutAutonym = function () {
|
||||
var language,
|
||||
result = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user