Update JavaScript Lint configuration file

Update is needed because various files were moved to different directories.

https://fedorahosted.org/freeipa/ticket/112
This commit is contained in:
Petr Vobornik 2012-11-12 14:06:53 +01:00
parent b9ef6ab0c4
commit be0a120134
4 changed files with 13 additions and 39 deletions

View File

@ -118,6 +118,7 @@
+define $
+define JSON
+define jQuery
+define define
### Files
# Specify which files to lint
@ -125,40 +126,9 @@
# To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
# or "+process Folder\Path\*.htm".
#
+process jquery.ordered-map.js
+process ipa.js
+process widget.js
+process field.js
+process net.js
+process dialog.js
+process search.js
+process details.js
+process add.js
+process association.js
+process facet.js
+process entity.js
+process navigation.js
+process rule.js
+process certificate.js
+process entitle.js
+process user.js
+process group.js
+process hbac.js
+process hbactest.js
+process host.js
+process hostgroup.js
+process netgroup.js
+process selinux.js
+process service.js
+process serverconfig.js
+process sudo.js
+process policy.js
+process aci.js
+process dns.js
+process automount.js
+process automember.js
+process idrange.js
+process trust.js
+process webui.js
+process login.js
+process reset_password.js
+process src/libs/browser.js
+process src/libs/jquery.ordered-map.js
+process src/freeipa/*.js
+process src/*.js
+process ./*.js

View File

@ -4,12 +4,15 @@
var profile = (function(){
var js_files = /\.js$/;
return {
resourceTags: {
// all JavaScript files are AMD modules
amd: function(filename, mid) {
return /\.js$/.test(filename);
return js_files.test(filename);
}
}
};

View File

@ -1,4 +1,3 @@
/*jsl:import jquery.ordered-map.js */
/* Authors:
* Pavel Zuna <pzuna@redhat.com>
* Adam Young <ayoung@redhat.com>

View File

@ -41,7 +41,9 @@ if (!Array.prototype.indexOf) {
var n = 0;
if (arguments.length > 0) {
n = Number(arguments[1]);
/*jsl:ignore*/
if (n !== n) { // shortcut for verifying if it's NaN
/*jsl:end*/
n = 0;
} else if (n !== 0 && n !== Infinity && n !== -Infinity) {
n = (n > 0 || -1) * Math.floor(Math.abs(n));