drop jslint lines

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-06-06 18:11:47 +02:00
parent df503ff92c
commit 3bbce3b8cd
71 changed files with 0 additions and 102 deletions

View File

@ -342,9 +342,7 @@ Ext.define('PVE.Parser', { statics: {
}
data.bridge = bridge_res[1];
data.tag = bridge_res[4];
/*jslint confusion: true*/
data.firewall = bridge_res[5] ? 1 : 0;
/*jslint confusion: false*/
} else {
data[match_res[1]] = match_res[2];
}
@ -423,11 +421,9 @@ Ext.define('PVE.Parser', { statics: {
}
});
/*jslint confusion: true*/
if (data.rate > 0) {
tmparray.push('rate=' + data.rate);
}
/*jslint confusion: false*/
return tmparray.join(',');
},
@ -597,7 +593,6 @@ Ext.define('PVE.Parser', { statics: {
},
parseTfaType: function(value) {
/*jslint confusion: true*/
var match;
if (!value || !value.length) {
return undefined;

View File

@ -214,7 +214,6 @@ Ext.define('PVE.StateProvider', {
},
get: function(name, defaultValue){
/*jslint confusion: true */
var me = this;
var data;

View File

@ -19,7 +19,6 @@ Ext.Ajax.defaultHeaders = {
'Accept': 'application/json'
};
/*jslint confusion: true */
Ext.define('PVE.Utils', { utilities: {
// this singleton contains miscellaneous utilities
@ -795,7 +794,6 @@ Ext.define('PVE.Utils', { utilities: {
},
render_size: function(value, metaData, record, rowIndex, colIndex, store) {
/*jslint confusion: true */
if (!Ext.isNumeric(value)) {
return '';

View File

@ -33,11 +33,9 @@ Ext.define('PVE.button.Split', {
if (me.confirmMsg) {
msg = me.confirmMsg;
// confirMsg can be boolean or function
/*jslint confusion: true*/
if (Ext.isFunction(me.confirmMsg)) {
msg = me.confirmMsg(rec);
}
/*jslint confusion: false*/
Ext.MessageBox.defaultButton = me.dangerous ? 2 : 1;
Ext.Msg.show({
title: gettext('Confirm'),
@ -57,7 +55,6 @@ Ext.define('PVE.button.Split', {
},
initComponent: function() {
/*jslint confusion: true */
var me = this;

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.ceph.CephInstallWizard', {
extend: 'PVE.window.Wizard',
alias: 'widget.pveCephInstallWizard',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.CephCreateFS', {
extend: 'Proxmox.window.Edit',
alias: 'widget.pveCephCreateFS',

View File

@ -61,7 +61,6 @@ Ext.define('PVE.CephCreatePool', {
}
],
initComponent : function() {
/*jslint confusion: true */
var me = this;
if (!me.nodename) {

View File

@ -307,7 +307,6 @@ Ext.define('PVE.ceph.ServiceList', {
}
});
/*jslint confusion: true*/
Ext.define('PVE.ceph.ServiceWidget', {
extend: 'Ext.Component',
alias: 'widget.pveCephServiceWidget',

View File

@ -53,7 +53,6 @@ Ext.define('PVE.data.ResourceStore', {
constructor: function(config) {
// fixme: how to avoid those warnings
/*jslint confusion: true */
var me = this;

View File

@ -24,7 +24,6 @@ Ext.define('PVE.dc.BackupEdit', {
name: 'vmid'
});
/*jslint confusion: true*/
// 'value' can be assigned a string or an array
var selModeField = Ext.create('Proxmox.form.KVComboBox', {
xtype: 'proxmoxKVComboBox',
@ -225,7 +224,6 @@ Ext.define('PVE.dc.BackupEdit', {
},
vmidField
];
/*jslint confusion: false*/
var ipanel = Ext.create('Proxmox.panel.InputPanel', {
onlineHelp: 'chapter_vzdump',
@ -628,7 +626,6 @@ Ext.define('PVE.dc.BackupView', {
sortable: false,
dataIndex: 'vmid',
renderer: function(value, metaData, record) {
/*jslint confusion: true */
if (record.data.all) {
if (record.data.exclude) {
return Ext.String.format(me.allExceptText, record.data.exclude);

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('pve-cluster-nodes', {
extend: 'Ext.data.Model',
fields: [

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.ClusterCreateWindow', {
extend: 'Proxmox.window.Edit',
xtype: 'pveClusterCreateWindow',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.dc.OptionView', {
extend: 'Proxmox.grid.ObjectGrid',
alias: ['widget.pveDcOptionView'],

View File

@ -81,7 +81,6 @@ Ext.define('PVE.SecurityGroupList', {
base_url: "/cluster/firewall/groups",
initComponent: function() {
/*jslint confusion: true */
var me = this;
if (me.rule_panel == undefined) {

View File

@ -75,7 +75,6 @@ Ext.define('PVE.dc.StorageView', {
return function() { me.createStorageEditWindow(type); };
};
var addMenuItems = [], type;
/*jslint forin: true */
for (type in PVE.Utils.storageSchema) {
var storage = PVE.Utils.storageSchema[type];
if (storage.hideAdd) {

View File

@ -1,5 +1,4 @@
/*global u2f,QRCode,Uint8Array*/
/*jslint confusion: true*/
Ext.define('PVE.window.TFAEdit', {
extend: 'Ext.window.Window',
mixins: ['Proxmox.Mixin.CBind'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.dc.UserView', {
extend: 'Ext.grid.GridPanel',

View File

@ -105,7 +105,6 @@ clist_loop:
flex: 1,
allowBlank: false,
validator: function(value) {
/*jslint confusion: true */
if (!me.rendered) {
return;
}

View File

@ -238,7 +238,6 @@ Ext.define('PVE.form.GlobalSearchField', {
me.callParent();
/*jslint confusion: true*/
/*because shift is also a function*/
// bind ctrl+shift+f and ctrl+space
// to open/close the search

View File

@ -59,7 +59,6 @@ Ext.define('PVE.form.HotplugFeatureSelector', {
});
/* because above is hotplug an array */
/*jslint confusion: true*/
if (data.length === 0) {
return { 'hotplug':'0' };
} else {

View File

@ -63,7 +63,6 @@ Ext.define('PVE.form.NodeSelector', {
},
validator: function(value) {
/*jslint confusion: true */
var me = this;
if (!me.onlineValidator || (me.allowBlank && !value)) {
return true;

View File

@ -15,11 +15,9 @@ Ext.define('PVE.form.PrivilegesSelector', {
method: 'GET',
success: function(response, options) {
var data = [], key;
/*jslint forin: true */
for (key in response.result.data) {
data.push([key, key]);
}
/*jslint forin: false */
me.store.setData(data);

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.form.VMCPUFlagSelector', {
extend: 'Ext.grid.Panel',
alias: 'widget.vmcpuflagselector',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
/* filter is a javascript builtin, but extjs calls it also filter */
Ext.define('PVE.form.VMSelector', {
extend: 'Ext.grid.Panel',

View File

@ -7,7 +7,6 @@ Ext.define('PVE.FirewallOptions', {
base_url: undefined,
initComponent : function() {
/*jslint confusion: true */
var me = this;

View File

@ -477,7 +477,6 @@ Ext.define('PVE.FirewallRules', {
initComponent: function() {
/*jslint confusion: true */
var me = this;
if (!me.list_refs_url) {

View File

@ -129,7 +129,6 @@ Ext.define('PVE.window.ReplicaEdit', {
}
});
/*jslint confusion: true */
/* callback is a function and string */
Ext.define('PVE.grid.ReplicaView', {
extend: 'Ext.grid.Panel',

View File

@ -58,7 +58,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
}
});
/*jslint confusion: true */
var vmidStore = (me.vmid) ? {} : {
model: 'PVEResources',
autoLoad: true,
@ -105,7 +104,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
allowBlank: false
}
];
/*jslint confusion: false */
me.column2 = [
{

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.lxc.CreateWizard', {
extend: 'PVE.window.Wizard',
mixins: ['Proxmox.Mixin.CBind'],

View File

@ -91,7 +91,6 @@ Ext.define('PVE.lxc.DNSEdit', {
}
});
/*jslint confusion: true */
Ext.define('PVE.lxc.DNS', {
extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.pveLxcDNS'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.lxc.FeaturesInputPanel', {
extend: 'Proxmox.panel.InputPanel',
xtype: 'pveLxcFeaturesInputPanel',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
/* hidden: boolean and string
* bind: function and object
* disabled: boolean and string
@ -197,7 +196,6 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
if (Ext.isDefined(me.vmconfig["mp"+value])) {
return "Mount point is already in use.";
}
/*jslint confusion: true*/
/* returns a string above */
return true;
}
@ -372,10 +370,8 @@ Ext.define('PVE.lxc.MountPointEdit', {
success: function(response, options) {
ipanel.setVMConfig(response.result.data);
if (me.confid) {
/*jslint confusion: true*/
/*data is defined as array above*/
var value = response.result.data[me.confid];
/*jslint confusion: false*/
var mp = PVE.Parser.parseLxcMountPoint(value);
if (!mp) {

View File

@ -112,7 +112,6 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
return result;
}
// validator can return bool/string
/*jslint confusion:true*/
return true;
}
},

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.lxc.Options', {
extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.pveLxcOptions'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
var labelWidth = 120;
Ext.define('PVE.lxc.MemoryEdit', {

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.lxc.RessourceView', {
extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.pveLxcRessourceView'],

View File

@ -131,7 +131,6 @@ Ext.define('PVE.node.Directorylist', {
},
initComponent: function() {
/*jslint confusion: true */
var me = this;
me.nodename = me.pveSelNode.data.node;

View File

@ -127,7 +127,6 @@ Ext.define('PVE.node.DiskList', {
],
initComponent: function() {
/*jslint confusion: true */
var me = this;
var nodename = me.pveSelNode.data.node;
@ -358,7 +357,6 @@ Ext.define('PVE.DiskSmartWindow', {
default:
// includes 'ata'
// cannot use empty case because
// of jslint
grid.setVisible(true);
text.setVisible(false);
grid.setStore(rec.attributes());

View File

@ -147,7 +147,6 @@ Ext.define('PVE.node.LVMList', {
},
initComponent: function() {
/*jslint confusion: true */
var me = this;
me.nodename = me.pveSelNode.data.node;

View File

@ -155,7 +155,6 @@ Ext.define('PVE.node.LVMThinList', {
},
initComponent: function() {
/*jslint confusion: true */
var me = this;
me.nodename = me.pveSelNode.data.node;

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.node.CreateZFS', {
extend: 'Proxmox.window.Edit',
xtype: 'pveCreateZFS',
@ -228,7 +227,6 @@ Ext.define('PVE.node.ZFSDevices', {
},
initComponent: function() {
/*jslint confusion: true */
var me = this;
if (!me.nodename) {
@ -271,7 +269,6 @@ Ext.define('PVE.node.ZFSStatus', {
border: false,
initComponent: function() {
/*jslint confusion: true */
var me = this;
if (!me.nodename) {
@ -463,7 +460,6 @@ Ext.define('PVE.node.ZFSList', {
},
initComponent: function() {
/*jslint confusion: true */
var me = this;
me.nodename = me.pveSelNode.data.node;

View File

@ -217,11 +217,9 @@ Ext.define('PVE.panel.Config', {
}
me.savedItems = {};
/*jslint confusion:true*/
if (me.items[0]) {
me.firstItem = me.items[0].itemId;
}
/*jslint confusion:false*/
me.store = Ext.create('Ext.data.TreeStore', {
root: {

View File

@ -283,7 +283,6 @@ Ext.define('PVE.IPSetGrid', {
},
initComponent: function() {
/*jslint confusion: true */
var me = this;
if (!me.list_refs_url) {

View File

@ -67,7 +67,6 @@ Ext.define('PVE.panel.StatusView', {
field.updateValue(renderer.call(field, me.getRecordValue(field.textField)));
} else if(field.valueField !== undefined) {
var used = me.getRecordValue(field.valueField);
/*jslint confusion: true*/
/* string and int */
var max = field.maxField !== undefined ? me.getRecordValue(field.maxField) : 1;

View File

@ -192,7 +192,6 @@ Ext.define('PVE.qemu.CloudInit', {
me.editorConfig.url = me.baseurl + '/config';
me.editorConfig.pveSelNode = me.pveSelNode;
/*jslint confusion: true*/
/* editor is string and object */
me.rows = {
ciuser: {
@ -314,7 +313,6 @@ Ext.define('PVE.qemu.CloudInit', {
visible: false
};
}
/*jslint confusion: false*/
PVE.Utils.forEachBus(['ide', 'scsi', 'sata'], function(type, id) {
me.rows[type+id] = {

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.qemu.CreateWizard', {
extend: 'PVE.window.Wizard',
alias: 'widget.pveQemuCreateWizard',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
/* 'change' property is assigned a string and then a function */
Ext.define('PVE.qemu.HDInputPanel', {
extend: 'Proxmox.panel.InputPanel',
@ -349,7 +348,6 @@ Ext.define('PVE.qemu.HDInputPanel', {
me.callParent();
}
});
/*jslint confusion: false */
Ext.define('PVE.qemu.HDEdit', {
extend: 'Proxmox.window.Edit',
@ -389,7 +387,6 @@ Ext.define('PVE.qemu.HDEdit', {
me.items = [ ipanel ];
me.callParent();
/*jslint confusion: true*/
/* 'data' is assigned an empty array in same file, and here we
* use it like an object
*/
@ -409,6 +406,5 @@ Ext.define('PVE.qemu.HDEdit', {
}
}
});
/*jslint confusion: false*/
}
});

View File

@ -60,7 +60,6 @@ Ext.define('PVE.qemu.HardwareView', {
var caps = Ext.state.Manager.get('GuiCap');
var diskCap = caps.vms['VM.Config.Disk'];
/*jslint confusion: true */
var rows = {
memory: {
header: gettext('Memory'),
@ -219,7 +218,6 @@ Ext.define('PVE.qemu.HardwareView', {
visible: false
}
};
/*jslint confusion: false */
PVE.Utils.forEachBus(undefined, function(type, id) {
var confid = type + id;

View File

@ -188,7 +188,6 @@ Ext.define('PVE.qemu.IPConfigEdit', {
isAdd: true,
initComponent : function() {
/*jslint confusion: true */
var me = this;

View File

@ -173,7 +173,6 @@ Ext.define('PVE.qemu.NetworkEdit', {
isAdd: true,
initComponent : function() {
/*jslint confusion: true */
var me = this;

View File

@ -45,7 +45,6 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
initComponent : function() {
var me = this;
/*jslint confusion: true */
me.items = [
{
xtype: 'displayfield',
@ -90,7 +89,6 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
}
}
];
/*jslint confusion: false */
me.callParent();
}

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.qemu.Options', {
extend: 'Proxmox.grid.PendingObjectGrid',
alias: ['widget.PVE.qemu.Options'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true */
Ext.define('PVE.qemu.SerialnputPanel', {
extend: 'Proxmox.panel.InputPanel',

View File

@ -92,7 +92,6 @@ Ext.define('PVE.qemu.Smbios1Edit', {
extend: 'Proxmox.window.Edit',
initComponent : function() {
/*jslint confusion: true */
var me = this;

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.qemu.SystemInputPanel', {
extend: 'Proxmox.panel.InputPanel',
xtype: 'pveQemuSystemPanel',

View File

@ -74,7 +74,6 @@ Ext.define('PVE.sdn.ControllerView', {
return function() { me.createSDNControllerEditWindow(type); };
};
var addMenuItems = [], type;
/*jslint forin: true */
for (type in PVE.Utils.sdncontrollerSchema) {
var controller = PVE.Utils.sdncontrollerSchema[type];

View File

@ -74,7 +74,6 @@ Ext.define('PVE.sdn.ZoneView', {
return function() { me.createSDNEditWindow(type); };
};
let addMenuItems = [], type;
/*jslint forin: true */
for (type in PVE.Utils.sdnzoneSchema) {
let zone = PVE.Utils.sdnzoneSchema[type];

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.CephFSInputPanel', {
extend: 'PVE.panel.StorageBase',
controller: 'cephstorage',

View File

@ -115,7 +115,6 @@ Ext.define('PVE.storage.TemplateDownload', {
width: 900,
height: 600,
initComponent : function() {
/*jslint confusion: true */
var me = this;
var grid = Ext.create('PVE.grid.TemplateSelector', {
@ -175,7 +174,6 @@ Ext.define('PVE.storage.Upload', {
modal: true,
initComponent : function() {
/*jslint confusion: true */
var me = this;
var xhr;

View File

@ -155,7 +155,6 @@ Ext.define('PVE.storage.LVMInputPanel', {
// here value is an array,
// while before it was a string
/*jslint confusion: true*/
me.column1.push({
xtype: 'pveContentTypeSelector',
cts: ['images', 'rootdir'],
@ -165,7 +164,6 @@ Ext.define('PVE.storage.LVMInputPanel', {
multiSelect: true,
allowBlank: false
});
/*jslint confusion: false*/
me.column2 = [
{

View File

@ -149,7 +149,6 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
// here value is an array,
// while before it was a string
/*jslint confusion: true*/
me.column1.push({
xtype: 'pveContentTypeSelector',
cts: ['images', 'rootdir'],
@ -159,7 +158,6 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
multiSelect: true,
allowBlank: false
});
/*jslint confusion: false*/
me.column2 = [];

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.NFSScan', {
extend: 'Ext.form.field.ComboBox',
alias: 'widget.pveNFSScan',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.Ceph.Model', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.cephstorage',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.ZFSInputPanel', {
extend: 'PVE.panel.StorageBase',

View File

@ -61,7 +61,6 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
// value is an array,
// while before it was a string
/*jslint confusion: true*/
me.column1.push(
{xtype: 'pveContentTypeSelector',
cts: ['images', 'rootdir'],
@ -71,7 +70,6 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
multiSelect: true,
allowBlank: false
});
/*jslint confusion: false*/
me.column2 = [
{
xtype: 'proxmoxcheckbox',

View File

@ -61,7 +61,6 @@ Ext.define('PVE.window.BulkAction', {
var items = [];
if (me.action === 'migrateall') {
/*jslint confusion: true*/
/*value is string and number*/
items.push(
{
@ -112,7 +111,6 @@ Ext.define('PVE.window.BulkAction', {
hidden: true // only visible if running container chosen
}
);
/*jslint confusion: false*/
} else if (me.action === 'startall') {
items.push({
xtype: 'hiddenfield',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.ceph.Install', {
extend: 'Ext.window.Window',
xtype: 'pveCephInstallWindow',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.FirewallEnableEdit', {
extend: 'Proxmox.window.Edit',
alias: ['widget.pveFirewallEnableEdit'],

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.FirewallLograteInputPanel', {
extend: 'Proxmox.panel.InputPanel',
xtype: 'pveFirewallLograteInputPanel',

View File

@ -1,4 +1,3 @@
/*jslint confusion: true*/
Ext.define('PVE.window.Migrate', {
extend: 'Ext.window.Window',

View File

@ -92,7 +92,6 @@ Ext.define('PVE.window.Restore', {
},
];
/*jslint confusion: true*/
if (me.vmtype === 'lxc') {
items.push({
xtype: 'proxmoxcheckbox',
@ -101,7 +100,6 @@ Ext.define('PVE.window.Restore', {
fieldLabel: gettext('Unprivileged container')
});
}
/*jslint confusion: false*/
me.formPanel = Ext.create('Ext.form.Panel', {
bodyPadding: 10,