Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F650937
RuboCop analysis for Tommy
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Sep 21 2018, 11:00
2018-09-21 11:00:34 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
RuboCop analysis for Tommy
View Options
>>> Lint for tommy.rb:
Warning (Style/FrozenStringLiteralComment) RuboCop
Style/FrozenStringLiteralComment: Missing magic comment `#
frozen_string_literal: true`.
>>> 1 # -------------------------------------------------------------
^
2 # Tommy - Visualisation dashboard for Jenkins
3 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4 # Author: Arfon Smitn (Zooniverse)
Warning (Metrics/AbcSize) RuboCop
Metrics/AbcSize: Assignment Branch Condition size for parse_project is
too high. [25.81/15]
52 ##
53 # Parses a job element of the Jenkins API.
54 # Returns a Project instance.
>>> 55 def self.parse_project(data)
^
56 project = Project.new(
57 name: data['displayName'].tr('-', ' '),
58 last_build_number: data['builds'].first['number'],
Warning (Metrics/MethodLength) RuboCop
Metrics/MethodLength: Method has too many lines. [24/10]
52 ##
53 # Parses a job element of the Jenkins API.
54 # Returns a Project instance.
>>> 55 def self.parse_project(data)
^
56 project = Project.new(
57 name: data['displayName'].tr('-', ' '),
58 last_build_number: data['builds'].first['number'],
Warning (Layout/EmptyLineAfterGuardClause) RuboCop
Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
74 'lastFailedBuild' => 'last_failed_url='
75 }
76 urls.each do |api_property, local_property|
>>> 77 next if data[api_property].blank?
^
78 project.send(local_property, data[api_property]['url'])
79 end
80
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
195258
Default Alt Text
RuboCop analysis for Tommy (2 KB)
Attached To
Mode
P203 RuboCop analysis for Tommy
Attached
Detach File
Event Timeline
Log In to Comment