This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllCops: | |
Include: | |
- "**/*.rake" | |
- "**/Gemfile" | |
- "**/Rakefile" | |
Exclude: | |
- "vendor/**/*" | |
- "db/**/*" | |
DisplayCopNames: true | |
RunRailsCops: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ reek -v | |
reek 3.5.0 | |
$ tree -d | |
. | |
├── command_line | |
│ ├── fixtures | |
│ └── shared | |
├── core | |
│ ├── argf | |
│ │ ├── fixtures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ CI=true be mutant -j1 -I . -r mutant-freezer --use rspec 'Foo*'Mutant configuration: | |
Matcher: #<Mutant::Matcher::Config match_expressions: [Foo*]> | |
Integration: Mutant::Integration::Rspec | |
Expect Coverage: 100.00% | |
Jobs: 1 | |
Includes: ["."] | |
Requires: ["mutant-freezer"] | |
(00/08) 100% - killtime: 0.00s runtime: 0.00s overhead: 0.00s | |
(07/08) 87% - killtime: 0.18s runtime: 1.01s overhead: 0.83s | |
Foo#bar:/Users/johnbackus/Dropbox/coding/gists/mutant-freezer.rb:13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Style/BarePercentLiterals: | |
EnforcedStyle: percent_q | |
SupportedStyles: | |
- percent_q | |
- bare_percent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_model' | |
class Example | |
include ActiveModel::Model | |
validates :foo, inclusion: [1] | |
attr_accessor :foo | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XML = <<-EXML.freeze | |
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<foo> | |
<bar> | |
<baz> | |
<qux> | |
<quux> | |
<corge> | |
<grault> | |
<garply> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rspec', '~> 3.4.0' | |
gem 'rspec-core', '~> 3.4.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
gem 'slop', '4.2.1' | |
require 'slop' | |
require 'pathname' | |
require 'json' | |
require 'yaml' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby '2.3.0' | |
gem 'rubocop', '0.38.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'parser/current' | |
require 'pathname' | |
require 'concord' | |
class Comment | |
include Equalizer.new(:text) | |
def initialize(path, comment) | |
@path = path |