Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect top-level constant usage like ::Const #8245

Merged
merged 25 commits into from Jul 6, 2020

Commits on Jul 6, 2020

  1. Detect ::Class.new in EnforceSuperclass mixin

    Detect `::Class.new` and `Class.new` in EnforceSuperclass mixin, with or
    without a block.
    biinari committed Jul 6, 2020
    Copy the full SHA
    26ccdbe View commit details
    Browse the repository at this point in the history
  2. Detect top-level ::RUBY_VERSION in gemspec

    Detect `::RUBY_VERSION` in Gemspec/RubyVersionGlobalsUsage cop.
    biinari committed Jul 6, 2020
    Copy the full SHA
    3bd40a2 View commit details
    Browse the repository at this point in the history
  3. Detect top-level constants in NestedMethodDefinition

    Detect `::Class.new`, `::Module.new`, `::Struct.new` in top-level namespace for
    Lint/NestedMethodDefinition.
    biinari committed Jul 6, 2020
    Copy the full SHA
    6a6894b View commit details
    Browse the repository at this point in the history
  4. Detect ::Dir in NonDeterministicRequireOrder

    Detect top-level constant `::Dir` in Lint/NonDeterministicRequireOrder.
    biinari committed Jul 6, 2020
    Copy the full SHA
    ffd8967 View commit details
    Browse the repository at this point in the history
  5. Detect ::Kernel.rand(1)

    Detect top-level constant `::Kernel.rand(1)` in Lint/RandOne cop.
    biinari committed Jul 6, 2020
    Copy the full SHA
    04fd2cf View commit details
    Browse the repository at this point in the history
  6. Detect redundant ::Array splat

    Detect redundant array splat with top-level constant `::Array`.
    biinari committed Jul 6, 2020
    Copy the full SHA
    85f97f0 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    df92aba View commit details
    Browse the repository at this point in the history
  8. Detect top-level constants in UselessAccessModifier

    Detect useless access modifier in `::Class.new`, `::Module.new`, `::Struct.new` blocks.
    biinari committed Jul 6, 2020
    Copy the full SHA
    20ab208 View commit details
    Browse the repository at this point in the history
  9. Detect top-level constants in class/module length cops

    Detect `::Class.new`, `::Module.new` in Metrics/ClassLength and
    Metrics/ModuleLength cops.
    biinari committed Jul 6, 2020
    Copy the full SHA
    5ebcd0b View commit details
    Browse the repository at this point in the history
  10. Allow historic DateTime with ::Date constant

    Allow historic DateTime using `::Date` constants in Style/DateTime cop.
    biinari committed Jul 6, 2020
    Copy the full SHA
    547944b View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    94c7fd2 View commit details
    Browse the repository at this point in the history
  12. Detect top-level constants in Style/EmptyLiteral

    Detect `::Array.new`, `::Hash.new`, `::String.new` producing empty literals.
    biinari committed Jul 6, 2020
    Copy the full SHA
    228be74 View commit details
    Browse the repository at this point in the history
  13. Detect ::Proc.new in Style/Proc

    Detect `::Proc.new` with a block in Style/Proc.
    biinari committed Jul 6, 2020
    Copy the full SHA
    4879751 View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    8f80503 View commit details
    Browse the repository at this point in the history
  15. Detect ::Kernel in Style/SignalException

    Detect with top-level constant as `::Kernel.raise` and `::Kernel.fail`
    biinari committed Jul 6, 2020
    Copy the full SHA
    d1ddff6 View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    4f07167 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    c2e4ee7 View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    c450998 View commit details
    Browse the repository at this point in the history
  19. Allow top-level const in Style/ZeroLengthPredicate

    Allow `::File.stat`, `::Tempfile.new`, `::StringIO.new`
    biinari committed Jul 6, 2020
    Copy the full SHA
    8b7f481 View commit details
    Browse the repository at this point in the history
  20. Copy the full SHA
    e2210d6 View commit details
    Browse the repository at this point in the history
  21. Copy the full SHA
    d37f461 View commit details
    Browse the repository at this point in the history
  22. Detect top-level const in RandomWithOffset

    Detect `::Random.rand`, `::Kernel.rand` in Style/RandomWithOffset.
    biinari committed Jul 6, 2020
    Copy the full SHA
    ed8ffe3 View commit details
    Browse the repository at this point in the history
  23. Detect top-level const in ExpandPathArguments

    Detect `::File.expand_path`, `::Pathname.new` in Style/ExpandPathArguments cop.
    biinari committed Jul 6, 2020
    Copy the full SHA
    3d9d75a View commit details
    Browse the repository at this point in the history
  24. Allow top-level const in MutableConst

    Allow top-level `::ENV`, `::Struct` in Style/MutableConstant cop.
    biinari committed Jul 6, 2020
    Copy the full SHA
    ba1892e View commit details
    Browse the repository at this point in the history
  25. Changelog entry for rubocop#8245

    Detect top-level constants
    biinari committed Jul 6, 2020
    Copy the full SHA
    ffd3432 View commit details
    Browse the repository at this point in the history