Class: MBS::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/mbs/cli.rb

Constant Summary collapse

RUBOCOP_YML =
<<~YML
  inherit_gem:
    mbs: rubocop.yml
  inherit_from:
    - .rubocop_todo.yml
    - .rubocop.local.yml
YML

Instance Method Summary collapse

Instance Method Details

#rubocopObject



15
16
17
18
19
20
21
# File 'lib/mbs/cli.rb', line 15

def rubocop(*)
  File.open('.rubocop.yml', 'w') do |file|
    file.puts RUBOCOP_YML
  end
  File.open('.rubocop_todo.yml', 'w') {}
  File.open('.rubocop.local.yml', 'w') {}
end