Skip to content

detect_piracies misses some cases #374

Description

@timholy

The following is an example of piracy, but it is not caught by test_piracies:

julia> using TestEnv; TestEnv.activate(); cd("test")

julia> using Aqua

julia> module Pirate
       using IntervalSets

       Base.:+(iv::ClosedInterval, n::Real) = minimum(iv) + n .. maximum(iv) + n
       end
Main.Pirate

julia> Aqua.test_piracies(Pirate)
Test Passed

julia> using IntervalSets

julia> (1 .. 3) + 2
3 .. 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions