mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
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:
parent
b9ef6ab0c4
commit
be0a120134
@ -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
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -1,4 +1,3 @@
|
||||
/*jsl:import jquery.ordered-map.js */
|
||||
/* Authors:
|
||||
* Pavel Zuna <pzuna@redhat.com>
|
||||
* Adam Young <ayoung@redhat.com>
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user