Sha256: e830aca2001c755ac96220d2cdf7076635858c3d89c4fbaad9b07a2052a2f49d

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

desc 'Run Sorbet Typechecker'
task :sorbet do
  sh('bundle exec srb tc')
end

cops = %w[
  Layout/TrailingWhitespace
  Layout/SpaceInsideBlockBraces
  Style/StringLiterals
]

desc "Apply #{cops.join(', ')}"
task :lint_with_autocorrect do
  sh("bundle exec rubocop -a --only #{cops.join(',')}")
end

task default: %i[lint_with_autocorrect sorbet spec]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bhook-0.1.6 Rakefile
bhook-0.1.5 Rakefile