Skip to content

Style for task dependency syntax #51

@ydakuka

Description

@ydakuka
  1. Move the Rails/RakeEnvironment cop to rubocop-rake as the Rake/Rails/RakeEnvironment cop.

  2. The cop accepts two valid styles. I think one should be the preferred choice.

a)

desc 'delete non-unique banners'
task 'delete_non_unique_banners' => :environment do
  # ...
end

or

b)

desc 'delete non-unique banners'
task delete_non_unique_banners: :environment do
  # ...
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions