@@ -80,7 +80,6 @@ def extended_dot_version
8080 # 5.3.0.rc4-1
8181 # 3.0.5.rc6.24.g431768c-1
8282 #
83- # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
8483 def base_pkg_version ( version = Pkg ::Config . version )
8584 return "#{ dot_version ( version ) } -#{ Pkg ::Config . release } " . split ( '-' ) if final? ( version ) || Pkg ::Config . vanagon_project
8685
@@ -143,13 +142,11 @@ def final?(version = Pkg::Config.version)
143142 # with the intent that it never change the official source tree.
144143 #
145144 # rubocop:disable Metrics/AbcSize
146- # rubocop:disable Metrics/CyclomaticComplexity
147- # rubocop:disable Metrics/PerceivedComplexity
148145 def versionbump ( workdir = nil )
149146 version = ENV [ 'VERSION' ] || Pkg ::Config . version . to_s . strip
150147 new_version = '"' + version + '"'
151148
152- version_file = "#{ workdir ? workdir + '/' : '' } #{ Pkg ::Config . version_file } "
149+ version_file = "#{ workdir + '/' if workdir } #{ Pkg ::Config . version_file } "
153150
154151 # Read the previous version file in...
155152 contents = IO . read ( version_file )
@@ -182,7 +179,7 @@ def versionbump(workdir = nil)
182179 # input json file and output if it "looks tagged" or not
183180 #
184181 # @param json_data [hash] json data hash containing the ref to check
185- def report_json_tags ( json_data ) # rubocop:disable Metrics/AbcSize
182+ def report_json_tags ( json_data )
186183 puts 'component: ' + File . basename ( json_data [ 'url' ] )
187184 puts 'ref: ' + json_data [ 'ref' ] . to_s
188185 if Pkg ::Util ::Git . remote_tagged? ( json_data [ 'url' ] , json_data [ 'ref' ] . to_s )
0 commit comments