@@ -21,11 +21,11 @@ function get_package_name_from_project_toml(path)
21
21
elseif isfile (joinpath (path, " Project.toml" ))
22
22
project_path = joinpath (path, " Project.toml" )
23
23
else
24
- return err (" No `Project.toml` file found at $path or $(joinpath (path, " Project.toml" )) " )
24
+ return err (" No `Project.toml` file found at $path or $(joinpath (path, " Project.toml" )) . " )
25
25
end
26
26
project = parsefile (project_path)
27
27
if ! haskey (project, " name" )
28
- return err (" `Project.toml` does not have `name` entry; does not correspond to valid Julia package" )
28
+ return err (" `Project.toml` does not have `name` entry; does not correspond to valid Julia package. " )
29
29
end
30
30
package = Symbol (project[" name" ])
31
31
return package, project_path
@@ -177,7 +177,7 @@ function main(args)
177
177
elseif x == " --checklist"
178
178
should_run_checks = true # Automatically imply --check
179
179
if length (args) == 0
180
- return err (" Argument `--checklist` requires a value" )
180
+ return err (" Argument `--checklist` requires a value. " )
181
181
end
182
182
values = split (popfirst! (args), " ," )
183
183
# If any of passed checks is not an exclude, then starts with an empty list
@@ -187,7 +187,7 @@ function main(args)
187
187
for value in values
188
188
unique! (selected_checks)
189
189
if ! (value in valid_check_values)
190
- return err (" Invalid check passed to --checklist: $value " )
190
+ return err (" Invalid check passed to --checklist: $value . " )
191
191
end
192
192
if value == " all"
193
193
selected_checks = copy (CHECKS)
@@ -196,7 +196,7 @@ function main(args)
196
196
elseif startswith (EXCLUDE_PREFIX)(value)
197
197
check = value[(1 + length (EXCLUDE_PREFIX)): end ]
198
198
if ! (check in CHECKS)
199
- return err (" Check $check is not part of the valid checks, so it can't be excluded" )
199
+ return err (" Check $check is not part of the valid checks, so it can't be excluded. " )
200
200
end
201
201
i = findfirst (selected_checks .== check)
202
202
if ! isnothing (i)
@@ -211,7 +211,7 @@ function main(args)
211
211
path = abspath (x)
212
212
else
213
213
# Unknown argument
214
- return err (" Argument `$x ` is not a supported flag, directory, or file. See the output of `--help` for usage details " )
214
+ return err (" Argument `$x ` is not a supported flag, directory, or file." )
215
215
end
216
216
end
217
217
end
@@ -239,7 +239,7 @@ function main(args)
239
239
end
240
240
if should_run_checks
241
241
if length (selected_checks) == 0
242
- return err (" The passed combination of checks $values made the selection empty" )
242
+ return err (" The passed combination of checks $values made the selection empty. " )
243
243
end
244
244
return run_checks (package, selected_checks)
245
245
end
0 commit comments