@@ -27,7 +27,7 @@ See [`summarize`](@ref), [`list_of_issues`](@ref), and
27
27
function analyze end
28
28
29
29
"""
30
- summarize([io::IO,] AbstractData; name_source = nothing, verbose = true, max_issues = typemax(Int), kwargs...)
30
+ summarize([io::IO,] AbstractData; model = nothing, verbose = true, max_issues = typemax(Int), kwargs...)
31
31
32
32
Print a summary of the analysis results contained in `AbstractData` to the
33
33
specified IO stream. If no IO stream is provided, it defaults to `stdout`.
@@ -43,11 +43,11 @@ be a subtype of `AbstractIssue`). In the verbose case it will provide a text
43
43
explaning the issue. In the non-verbose case it will provide just the issue
44
44
name.
45
45
46
- summarize([io::IO,] issue::AbstractIssue; name_source = nothing, verbose = true)
46
+ summarize([io::IO,] issue::AbstractIssue; model = nothing, verbose = true)
47
47
48
48
This variant allows summarizing a single issue instance of type `AbstractIssue`.
49
- The model tha led to the issue can be provided to `name_source `, it will be used
50
- to generate the name of variables and constraints in the issue summary.
49
+ The model that led to the issue can be provided to `model `, it will be
50
+ used to generate the name of variables and constraints in the issue summary.
51
51
"""
52
52
function summarize end
53
53
79
79
function summarize (
80
80
io:: IO ,
81
81
issue:: AbstractIssue ;
82
- name_source = nothing ,
82
+ model = nothing ,
83
83
verbose = true ,
84
84
)
85
85
if verbose
86
- return _verbose_summarize (io, issue, name_source )
86
+ return _verbose_summarize (io, issue, model )
87
87
else
88
- return _summarize (io, issue, name_source )
88
+ return _summarize (io, issue, model )
89
89
end
90
90
end
91
91
92
92
function summarize (
93
93
io:: IO ,
94
94
issues:: Vector{T} ;
95
- name_source = nothing ,
95
+ model = nothing ,
96
96
verbose = true ,
97
97
max_issues = typemax (Int),
98
98
) where {T<: AbstractIssue }
@@ -102,7 +102,7 @@ function summarize(
102
102
print (io, " \n\n ## List of issues\n\n " )
103
103
for issue in first (issues, max_issues)
104
104
print (io, " * " )
105
- summarize (io, issue, verbose = verbose, name_source = name_source )
105
+ summarize (io, issue, verbose = verbose, model = model )
106
106
print (io, " \n " )
107
107
end
108
108
return
0 commit comments