Categories: None [Edit]

why-classes

https://rubygems.org/gems/why-classes
https://github.com/joaoGabriel55/why-classes
why-classes is a linter and refactoring tool inspired by Dave Thomas's talk on the over-use of classes in Ruby. It scans a Ruby/Rails codebase (or a single file) for "class smells" -- stateless singleton-method classes, function buckets, invalid initial state, fat-base inheritance, and data buckets -- and reports each one with a concrete refactoring suggestion toward modules, composition, Struct or Data. The mechanically-safe refactorings (notably data bucket -> Struct/Data) can be applied automatically with --fix.

Total

Ranking: 158,343 of 195,956
Downloads: 3,668

Daily

Ranking: 90,350 of 195,929
Downloads: 1

Depended by

RankDownloadsName
183,8251,632sinatra_to_the_moon

Depends on

RankDownloadsName
36824,979,924parser
296181,545,142prism

Owners

#GravatarHandle
1iconjoaoGabriel55