-
-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Description
I ran Aqua.jl on the code base (current master) and found some ambiguities currently on master, posting that here to keep track of them, might PR later, otherwise somebody can pick it in the meantime:
julia> Aqua.test_ambiguities(JuMP)
7 ambiguities found
Ambiguity #1
add_to_expression!(aff::JuMP.GenericAffExpr{C,V}, new_coef::Union{Number, LinearAlgebra.UniformScaling}, new_var::V) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/aff_expr.jl:250
add_to_expression!(aff::JuMP.GenericAffExpr{C,V}, new_var::V, new_coef::Union{Number, LinearAlgebra.UniformScaling}) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/aff_expr.jl:256
Ambiguity #2
add_to_expression!(quad::JuMP.GenericQuadExpr{C,V}, new_var::Union{JuMP.GenericAffExpr{C,V}, V}, new_coef::Union{Number, LinearAlgebra.UniformScaling}) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/quad_expr.jl:184
add_to_expression!(quad::JuMP.GenericQuadExpr{C,V}, aff::JuMP.GenericAffExpr{C,V}, var::V) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/quad_expr.jl:227
Ambiguity #3
add_to_expression!(expr::Union{JuMP.GenericAffExpr{C,V}, JuMP.GenericQuadExpr{C,V}} where V where C, α::Union{Number, LinearAlgebra.UniformScaling}, β::Union{Number, LinearAlgebra.UniformScaling}) in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/mutable_arithmetics.jl:176
add_to_expression!(quad::JuMP.GenericQuadExpr{C,V}, new_var::Union{JuMP.GenericAffExpr{C,V}, V}, new_coef::Union{Number, LinearAlgebra.UniformScaling}) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/quad_expr.jl:184
Ambiguity #4
add_to_expression!(quad::JuMP.GenericQuadExpr{C,V}, new_coef::Union{Number, LinearAlgebra.UniformScaling}, new_var::V) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/quad_expr.jl:177
add_to_expression!(quad::JuMP.GenericQuadExpr{C,V}, new_var::Union{JuMP.GenericAffExpr{C,V}, V}, new_coef::Union{Number, LinearAlgebra.UniformScaling}) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/quad_expr.jl:184
Ambiguity #5
add_to_expression!(aff::JuMP.GenericAffExpr{C,V}, new_var::V, new_coef::Union{Number, LinearAlgebra.UniformScaling}) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/aff_expr.jl:256
add_to_expression!(expr::Union{JuMP.GenericAffExpr{C,V}, JuMP.GenericQuadExpr{C,V}} where V where C, α::Union{Number, LinearAlgebra.UniformScaling}, β::Union{Number, LinearAlgebra.UniformScaling}) in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/mutable_arithmetics.jl:176
Ambiguity #6
add_to_expression!(aff::JuMP.GenericAffExpr{C,V}, new_coef::Union{Number, LinearAlgebra.UniformScaling}, new_var::V) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/aff_expr.jl:250
add_to_expression!(expr::Union{JuMP.GenericAffExpr{C,V}, JuMP.GenericQuadExpr{C,V}} where V where C, α::Union{Number, LinearAlgebra.UniformScaling}, β::Union{Number, LinearAlgebra.UniformScaling}) in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/mutable_arithmetics.jl:176
Ambiguity #7
add_to_expression!(expr::Union{JuMP.GenericAffExpr{C,V}, JuMP.GenericQuadExpr{C,V}} where V where C, α::Union{Number, LinearAlgebra.UniformScaling}, β::Union{Number, LinearAlgebra.UniformScaling}) in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/mutable_arithmetics.jl:176
add_to_expression!(quad::JuMP.GenericQuadExpr{C,V}, new_coef::Union{Number, LinearAlgebra.UniformScaling}, new_var::V) where {C, V} in JuMP at /home/mbesancon/Documents/crptests/project_julia/JuMP.jl/src/quad_expr.jl:177
There are also failed tests with Aqua.test_unbound_args(JuMP) but I don't get exactly what this implies so leaving it for now
Metadata
Metadata
Assignees
Labels
No labels