lib/pdk/validate/tasks/tasks_name_validator.rb in pdk-2.6.1 vs lib/pdk/validate/tasks/tasks_name_validator.rb in pdk-2.7.0
- old
+ new
@@ -2,24 +2,21 @@
module PDK
module Validate
module Tasks
class TasksNameValidator < InternalRubyValidator
- INVALID_TASK_MSG = _(
- 'Invalid task name. Task names must start with a lowercase letter ' \
- 'and can only contain lowercase letters, numbers, and underscores.',
- )
+ INVALID_TASK_MSG = 'Invalid task name. Task names must start with a lowercase letter and can only contain lowercase letters, numbers, and underscores.'.freeze
def name
'task-name'
end
def pattern
contextual_pattern('tasks/**/*')
end
def spinner_text
- _('Checking task names (%{pattern}).') % {
+ 'Checking task names (%{pattern}).' % {
pattern: pattern.join(' '),
}
end
def validate_target(report, target)