Sha256: 018489ea6acd686005f8ab19b1d2ecd8ada347315204d1df3878dc56ca5fe203

Contents?: true

Size: 314 Bytes

Versions: 2

Compression:

Stored size: 314 Bytes

Contents

module Chutney
  # service class to lint for missing feature names
  class MissingFeatureName < Linter    
    def lint
      return unless feature
      
      name = feature.key?(:name) ? feature[:name].strip : ''
      add_issue(I18n.t('linters.missing_feature_name'), feature) if name.empty?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chutney-2.2.1 lib/chutney/linter/missing_feature_name.rb
chutney-2.1.1 lib/chutney/linter/missing_feature_name.rb