cane
cane copied to clipboard
Code quality threshold checking as part of your build
People still email me about this repo, I want to clean it up a bit (merge some PRs, close some issues) thx ❤️
I realize that there are also many other ways to alert on newline at end of file, but I feel like it would fit into cane's purpose pretty well, since...
Assuming I've understood the point at which cane hooks into the testing lifecycle, it would be nice if we could drop a `require 'cane'` statement (or similar) into the Rspec...
E.g., I want to enforce a doc requirement for my top level directory, but would like to drop in `.cane` files with `--no-doc` in some of the subdirectories.
wrong number of arguments (2 for 1) /Users/jsmith/.rvm/gems/ruby-1.9.3-p448@myapp/gems/cane-2.6.0/lib/cane/json_formatter.rb:8:in `initialize' It looks like when output colorization was added in https://github.com/square/cane/commit/652c2f887f551a7ddf280399491312526291089a an options hash parameter was added to the call to initialize...
Replaces the call to `File.exists?` with `File.exist?`. Also updating the Rubies specified in `.travis.yml` to reflect the currently supported versions.
cane checks currently fail on Ruby 3 because of this call to `File.exists?`: https://github.com/square/cane/blob/c8d6ce4e0092e5f677d3a2f409db7566e5d82136/lib/cane/file.rb#L21-L23 This now gives a `NoMethodError` and suggests `File.exist?`. Typical Ruby to delete the method with the...