lib/pdk/validate/yaml/yaml_syntax_validator.rb in pdk-2.6.1 vs lib/pdk/validate/yaml/yaml_syntax_validator.rb in pdk-2.7.0

- old
+ new

@@ -31,11 +31,11 @@ end end end def spinner_text - _('Checking YAML syntax (%{patterns}).') % { + 'Checking YAML syntax (%{patterns}).' % { patterns: pattern.join(' '), } end def validate_target(report, target) @@ -45,11 +45,11 @@ report.add_event( file: target, source: name, state: :failure, severity: 'error', - message: _('Could not be read.'), + message: 'Could not be read.', ) return 1 end begin @@ -68,11 +68,11 @@ source: name, state: :failure, severity: 'error', line: e.line, column: e.column, - message: _('%{problem} %{context}') % { + message: '%{problem} %{context}' % { problem: e.problem, context: e.context, }, ) return 1 @@ -80,10 +80,10 @@ report.add_event( file: target, source: name, state: :failure, severity: 'error', - message: _('Unsupported class: %{message}') % { + message: 'Unsupported class: %{message}' % { message: e.message, }, ) return 1 end