# RuboCop Rake

> RuboCop plugin with cops for Rake task files

Source: https://talira.ai/catalog/rubocop-rake-kztccaxd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [RuboCop](https://talira.ai/orgs/rubocop.md)
- Funding: funded by donations[^3][^4]

RuboCop Rake is an open source [RuboCop](https://talira.ai/catalog/rubocop-rxzhjmy8.md) plugin from the RuboCop organization that adds cops for [Rake](https://talira.ai/catalog/rake-ydx7rxea.md)files and .rake tasks. They catch tasks without a desc, duplicate tasks and namespaces, and classes, modules or methods defined inside a task, which Ruby puts at the top level. You load it with plugins: rubocop-rake in .rubocop.yml (RuboCop 1.72 and newer), on the command line or in a RuboCop Rake task.

## Links

- GitHub: https://github.com/rubocop/rubocop-rake

## Problems it solves

- lint my Rakefile and .rake tasks with RuboCop
- make sure every Rake task has a description
- catch duplicate Rake task names in a Ruby project

## Features

- Rake/Desc: require a desc for every task
- Rake/DuplicateTask and Rake/DuplicateNamespace
- Rake/ClassDefinitionInTask: no classes or modules defined inside a task
- Rake/MethodDefinitionInTask: no methods defined inside a task

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.45, adoption 0.42, momentum 0.11, community 0.42, backing 0.55, extensibility 0.00.

- last commit 3 months ago
- latest release v0.7.1 21 months ago
- 118 GitHub stars
- 10 contributors
- accepts sponsorship (Github, Patreon, Open Collective)
- backed by RuboCop
- funding: funded by donations

## Related

- Works with [RuboCop](https://talira.ai/catalog/rubocop-rxzhjmy8.md)
- Works with [Rake](https://talira.ai/catalog/rake-ydx7rxea.md)

## Alternatives

- [RuboCop](https://talira.ai/catalog/rubocop-rxzhjmy8.md): A Ruby static code analyzer and formatter, based on the community Ruby style guide.
- [RuboCop Performance](https://talira.ai/catalog/rubocop-performance-qpzndqc0.md): Performance optimization analysis for Ruby code, as a RuboCop extension
- [RuboCop RSpec](https://talira.ai/catalog/rubocop-rspec-qqbxpw4a.md): RuboCop extension with cops for RSpec test files
- [RuboCop Rails](https://talira.ai/catalog/rubocop-rails-21peswcr.md): RuboCop extension with cops for Rails best practices and conventions
- [rubocop-require_tools](https://talira.ai/catalog/rubocop-require-tools-cbvvg5p6.md): RuboCop extension that flags missing require statements
- [Standard Ruby](https://talira.ai/catalog/standard-ruby-zphjehj1.md): Unconfigurable Ruby linter and formatter built on RuboCop

## Sources

[^1]: https://github.com/rubocop/rubocop-rake/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/rubocop/rubocop-rake/blob/master/LICENSE (checked 28 Nov 2026)
[^3]: https://opencollective.com/rubocop (checked 20 Nov 2026)
[^4]: https://github.com/rubocop/rubocop (checked 20 Nov 2026)
