Skip to content

Commit 102827d

Browse files
committed
fix some visible links
1 parent 239138b commit 102827d

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

bin/lint.rb

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ def self.bib_missing_mandatory_fields(bib)
12191219
end
12201220

12211221
##
1222-
# GTN:015, GTN:016, GTN:025, GTN:026, others.
1222+
# GTN:015, GTN:016, GTN:025, GTN:026, GTN:027 others.
12231223
# These error messages indicate something is amiss with your workflow. Please consult the error message to correct it.
12241224
def self.fix_ga_wf(contents)
12251225
results = []
@@ -1229,15 +1229,17 @@ def self.fix_ga_wf(contents)
12291229

12301230
results.push(ReviewDogEmitter.file_error(
12311231
path: @path, message: "This workflow is missing required tags. Please add `\"tags\": [\"#{topic}\"]`",
1232-
code: 'GTN:015'
1232+
code: 'GTN:015',
1233+
fn: __method__.to_s,
12331234
))
12341235
end
12351236

12361237
if !contents.key?('annotation')
12371238
results.push(ReviewDogEmitter.file_error(
12381239
path: @path,
12391240
message: 'This workflow is missing an annotation. Please add `"annotation": "title of tutorial"`',
1240-
code: 'GTN:016'
1241+
code: 'GTN:016',
1242+
fn: __method__.to_s,
12411243
))
12421244
end
12431245

@@ -1246,7 +1248,8 @@ def self.fix_ga_wf(contents)
12461248
path: @path,
12471249
message: 'This workflow is missing a license. Please select a valid OSI license. ' \
12481250
'You can correct this in the Galaxy workflow editor.',
1249-
code: 'GTN:026'
1251+
code: 'GTN:026',
1252+
fn: __method__.to_s,
12501253
))
12511254
end
12521255

@@ -1263,7 +1266,8 @@ def self.fix_ga_wf(contents)
12631266
match_end: 0,
12641267
replacement: nil,
12651268
message: "A step in your workflow (#{step_id}) uses an invalid tool ID (#{id}) or a tool ID from the testtoolshed. These are not permitted in GTN tutorials. If this is in error, you can add it to the top of _plugins/utils.rb",
1266-
code: 'GTN:017'
1269+
code: 'GTN:017',
1270+
fn: __method__.to_s,
12671271
)
12681272
]
12691273
end
@@ -1602,19 +1606,25 @@ def self.run_linter_global
16021606
enumerate_type(/:/).each do |path|
16031607
format_reviewdog_output(
16041608
ReviewDogEmitter.file_error(path: path,
1605-
message: 'There are colons in this filename, that is forbidden.', code: 'GTN:014')
1609+
message: 'There are colons in this filename, that is forbidden.',
1610+
code: 'GTN:014',
1611+
fn: __method__.to_s,
1612+
)
16061613
)
16071614
end
16081615

16091616
enumerate_symlinks.each do |path|
16101617
if !File.exist?(Pathname.new(path).realpath)
16111618
format_reviewdog_output(
1612-
ReviewDogEmitter.file_error(path: path, message: 'This is a BAD symlink', code: 'GTN:013')
1619+
ReviewDogEmitter.file_error(path: path, message: 'This is a BAD symlink',
1620+
code: 'GTN:013',
1621+
fn: __method__.to_s)
16131622
)
16141623
end
16151624
rescue StandardError
16161625
format_reviewdog_output(
1617-
ReviewDogEmitter.file_error(path: path, message: 'This is a BAD symlink', code: 'GTN:013')
1626+
ReviewDogEmitter.file_error(path: path, message: 'This is a BAD symlink', code: 'GTN:013',
1627+
fn: __method__.to_s)
16181628
)
16191629
end
16201630
enumerate_type(/data[_-]library.ya?ml/).each do |path|

0 commit comments

Comments
 (0)