mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -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 $
|
||||||
+define JSON
|
+define JSON
|
||||||
+define jQuery
|
+define jQuery
|
||||||
|
+define define
|
||||||
|
|
||||||
### Files
|
### Files
|
||||||
# Specify which files to lint
|
# Specify which files to lint
|
||||||
@ -125,40 +126,9 @@
|
|||||||
# To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
|
# To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
|
||||||
# or "+process Folder\Path\*.htm".
|
# or "+process Folder\Path\*.htm".
|
||||||
#
|
#
|
||||||
+process jquery.ordered-map.js
|
|
||||||
+process ipa.js
|
+process src/libs/browser.js
|
||||||
+process widget.js
|
+process src/libs/jquery.ordered-map.js
|
||||||
+process field.js
|
+process src/freeipa/*.js
|
||||||
+process net.js
|
+process src/*.js
|
||||||
+process dialog.js
|
+process ./*.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
|
|
@ -4,12 +4,15 @@
|
|||||||
|
|
||||||
|
|
||||||
var profile = (function(){
|
var profile = (function(){
|
||||||
|
|
||||||
|
var js_files = /\.js$/;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
resourceTags: {
|
resourceTags: {
|
||||||
|
|
||||||
// all JavaScript files are AMD modules
|
// all JavaScript files are AMD modules
|
||||||
amd: function(filename, mid) {
|
amd: function(filename, mid) {
|
||||||
return /\.js$/.test(filename);
|
return js_files.test(filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/*jsl:import jquery.ordered-map.js */
|
|
||||||
/* Authors:
|
/* Authors:
|
||||||
* Pavel Zuna <pzuna@redhat.com>
|
* Pavel Zuna <pzuna@redhat.com>
|
||||||
* Adam Young <ayoung@redhat.com>
|
* Adam Young <ayoung@redhat.com>
|
||||||
|
@ -41,7 +41,9 @@ if (!Array.prototype.indexOf) {
|
|||||||
var n = 0;
|
var n = 0;
|
||||||
if (arguments.length > 0) {
|
if (arguments.length > 0) {
|
||||||
n = Number(arguments[1]);
|
n = Number(arguments[1]);
|
||||||
|
/*jsl:ignore*/
|
||||||
if (n !== n) { // shortcut for verifying if it's NaN
|
if (n !== n) { // shortcut for verifying if it's NaN
|
||||||
|
/*jsl:end*/
|
||||||
n = 0;
|
n = 0;
|
||||||
} else if (n !== 0 && n !== Infinity && n !== -Infinity) {
|
} else if (n !== 0 && n !== Infinity && n !== -Infinity) {
|
||||||
n = (n > 0 || -1) * Math.floor(Math.abs(n));
|
n = (n > 0 || -1) * Math.floor(Math.abs(n));
|
||||||
|
Loading…
Reference in New Issue
Block a user