class Rake::FileTask

def scope_name(scope, task_name)

of task. File based tasks ignore the scope when creating the name.
Apply the scope to the task name according to the rules for this kind
def scope_name(scope, task_name)
  task_name
end