1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

L #-: Disable new rubocop checks

Lint vCenter related files

(cherry picked from commit cf74695688)
This commit is contained in:
Tino Vazquez 2021-05-13 19:20:26 +02:00
parent 0ceef20753
commit 7a11baccbd
5 changed files with 13 additions and 4 deletions

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

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))

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)

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)

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)