• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

YorickPeterse / ruby-lint / 101 / 4
98%
master: %

Build:
Build:
LAST BUILD BRANCH: report-entry-comparable
DEFAULT BRANCH: master
Ran 16 Jul 2013 07:45PM UTC
Files 40
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2013 07:44PM UTC coverage: 97.449% (-0.2%) from 97.621%
jruby-19mode

push

travis-ci

YorickPeterse
Add classes/modules to themselves.

When creating a new class or module the definition should be added as a child
definition to itself. This allows classes/modules to refer to themselves
without having to rely on the outer scope.

Consider the following code:

    class Foo
      Foo
    end

Before this patch the following process would happen in order to retrieve the
Foo constant on the 2nd line:

    search in current scope -> search in outer scope -> find constant

After this patch the following happens instead:

    search in current scope -> find constant

This in turn means that analysis classes such as Analysis::UndefinedVariables
no longer spit out warnings about the name of a constant being undefined as
said name is now available in the scope.

This commit fixes #35.

1108 of 1137 relevant lines covered (97.45%)

26.66 hits per line

Source Files on job 101.4 (jruby-19mode)
  • Tree
  • List 0
  • Changed 18
  • Source Changed 3
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 101
  • Travis Job 101.4
  • 3904d0fa on github
  • Prev Job for jruby-19mode on develop (#100.4)
  • Next Job for jruby-19mode on develop (#102.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc