Sha256: 377c41c69475b051f792734153e39f208be9e33d230afcd47338f72566d80487

Contents?: true

Size: 328 Bytes

Versions: 8

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

module Chutney
  # service class to lint for avoiding splats
  class AvoidSplatStepsInScenarios < Linter
    def lint
      steps do |feature, child, step|
        add_issue(I18n.t('linters.avoid_splat_steps_in_scenarios'), feature, child, step) if step.keyword == '*'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chutney-3.9.0 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb
chutney-3.8.2 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb
chutney-3.8.1 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb
chutney-3.8.0 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb
chutney-3.7.0 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb
chutney-3.6.0 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb
chutney-3.5.0 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb
chutney-3.3.0 lib/chutney/linter/avoid_splat_steps_in_scenarios.rb