# 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