Skip to content

Files

Latest commit

 

History

History
33 lines (25 loc) · 599 Bytes

Rake-DuplicateNamespace.md

File metadata and controls

33 lines (25 loc) · 599 Bytes

Pattern: Duplicate namespace

Issue: -

Description

If namespaces are defined with the same name, Rake executes the both namespaces in definition order. It is redundant. You should squash them into one definition.

Examples

# bad
namespace :foo do
  task :bar do
  end
end
namespace :foo do
  task :hoge do
  end
end

# good
namespace :foo do
  task :bar do
  end
  task :hoge do
  end
end

Further Reading