Giter Club home page Giter Club logo

preek's Issues

License missing from gemspec

Some companies will only use gems with a certain license.
The canonical and easy way to check is via the gemspec
via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

There is even a License Finder to help companies ensure all gems they use
meet their licensing needs. This tool depends on license information being available in the gemspec.
Including a license in your gemspec is a good practice, in any case.

How did I find you?

I'm using a script to collect stats on gems, originally looking for download data, but decided to collect licenses too,
and make issues for missing ones as a public service :)
https://gist.github.com/bf4/5952053#file-license_issue-rb-L13 So far it's going pretty well

String cant be coerced into Fixnum

Not sure what the problem is...

/home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_warning.rb:13:in *': String can't be coerced into Fixnum (TypeError)
from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_warning.rb:13:in smell_string' from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_klass.rb:18:in block in smells'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_klass.rb:17:in map' from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_klass.rb:17:in smells'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_reporter.rb:22:in block in print_klasses' from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_reporter.rb:19:in each'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_reporter.rb:19:in print_klasses' from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_reporter.rb:14:in block in print_smells'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_reporter.rb:12:in each' from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek/smell_reporter.rb:12:in print_smells'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek.rb:29:in report_smells_for' from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/lib/preek.rb:20:in parse'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/gems/preek-0.1.0/bin/preek:9:in <top (required)>' from /home/jon/.rvm/gems/ruby-2.0.0-p0/bin/preek:23:in load'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/bin/preek:23:in <main>' from /home/jon/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in eval'
from /home/jon/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in <main>'

Preek 2.0.0

Plan

  • Remove -i option, and let users configure unwanted reports with .reek files.
  • Remove lib/preek/ext/smell_warning.rb if possible and rely on reeks public API.
  • Prepare/simplify code to implement #9 (and maybe #6)
  • Update reek to 2.0.x

Getting a sample of problems

I think it would be useful to have something like preek sample SOMEPATH that collects a single problem and reports it. Running preek on a big project can be so overwhelming that you just can't muster the courage to start fixing it. Having a single thing to focus on at the time would be easier.

Preek for git branches

Make something that compares a given branch to master and reports added(/removed?) smells.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.