L #-: Disable new rubocop checks

Lint vCenter related files
This commit is contained in:
Tino Vazquez committed 2021-05-13 19:20:45 +02:00
1 parent 2921c75a44
commit cf74695688
5 files changed
+13 -4

No files matched your search

+9
View File
@@ -748,6 +748,12 @@ Style/SwapValues:
# LINT
######
Lint/IneffectiveAccessModifier:
Enabled: false
Lint/OrAssignmentToConstant:
Enabled: false
Lint/ConstantDefinitionInBlock:
Enabled: false
@@ -908,6 +914,9 @@ Metrics/AbcSize:
Metrics/MethodLength:
Enabled: false
Naming/VariableName:
Enabled: false
# uppercase constant mandatory
Naming/ConstantName:
Enabled: true
+1 -1
View File
@@ -272,7 +272,7 @@ CommandParser::CmdParser.new(ARGV) do
vi_client,
options[:object])
if options[:object] == "networks" && !args.first.nil?
if options[:object] == 'networks' && !args.first.nil?
indexes = args.first
else
importer.retrieve_resources(helper.parse_opts(options))
+1 -1
View File
@@ -64,7 +64,7 @@ require 'nsx_driver'
def modified?(template)
template_xml = Nokogiri::XML(template)
action = template_xml.xpath('//TEMPLATE/NIC[ATTACH="YES"]')
action.empty? ? false : true
!action.empty?
end
template = Base64.decode64(STDIN.read)
+1 -1
View File
@@ -64,7 +64,7 @@ require 'nsx_driver'
def modified?(template)
template_xml = Nokogiri::XML(template)
action = template_xml.xpath('//TEMPLATE/NIC[ATTACH="YES"]')
action.empty? ? false : true
!action.empty?
end
template = Base64.decode64(STDIN.read)
+1 -1
View File
@@ -64,7 +64,7 @@ require 'nsx_driver'
def modified?(template)
template_xml = Nokogiri::XML(template)
action = template_xml.xpath('//TEMPLATE/NIC[ATTACH="YES"]')
action.empty? ? false : true
!action.empty?
end
template = Base64.decode64(STDIN.read)