Sha256: 726d0dd93a42958175d1dd3e9d622448423a1923906ecd17ed9bfd4b79a78042

Contents?: true

Size: 989 Bytes

Versions: 2

Compression:

Stored size: 989 Bytes

Contents

# rubocop: disable LeadingCommentSpace
#! /usr/bin/env rake
# rubocop: enable LeadingCommentSpace
require 'bundler/gem_tasks'
require 'yard'
require 'rspec/core/rake_task'
require 'reek/rake/task'
require 'rubocop/rake_task'

task default: :build

# If there are test failures, you'll need to write code to address them.
# So no point in continuing to run the style tests.
desc 'Runs all spec tests'
RSpec::Core::RakeTask.new(:spec)

desc 'Runs yard'
YARD::Rake::YardocTask.new(:yard)

desc 'smells the lib directory, which Reek defaults to anyway'
Reek::Rake::Task.new(:reek_lib) do |task|
  task.verbose = true
end

desc 'smells the spec directory, which is less important than lib'
Reek::Rake::Task.new(:reek_spec) do |task|
  task.source_files = 'spec/**/*.rb'
  task.verbose = true
end

desc 'runs Rubocop'
RuboCop::RakeTask.new

desc 'Runs test and code cleanliness suite: RuboCop, Reek, rspec, and yard'
task run_guards: [:spec, :yard, :reek_lib, :rubocop]

task build: :run_guards

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
projecter-0.0.3 files/Rakefile
projecter-0.0.2 files/Rakefile