Files
gitlab-foss/lib/gitlab/ci/pipeline/chain/stop_linting.rb
2025-02-19 18:12:41 +00:00

23 lines
535 B
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
module Pipeline
module Chain
# During linting, we don't want to persist the pipeline so we skip
# all the following steps that operate on persisted objects.
# This class allows us to exit the pipeline creation chain when we're done linting.
class StopLinting < Chain::Base
def perform!
# no-op
end
def break?
@command.linting?
end
end
end
end
end
end