Skip to content

Fix showing empty block in ci lint

Steve Xuereb requested to merge fix-showing-emptry-blocks-in-ci-lint into master

What does this MR do?

When a user does not have a before_script or after_script defined which is fairly common we are showing an empty block which can be a bit confusing to the user.

Before After
Screen_Shot_2019-03-01_at_15.20.31 Screen_Shot_2019-03-01_at_15.20.49

Tested with the following ci job definition

stages:
- prebuild

helper images:
  stage: prebuild
  script:
  - make helper-build helper-docker
  artifacts:
    paths:
    - out/helper-images/
    - dockerfiles/build/binaries/*-windows.exe
    - .gopath/bin
    - .gopath/.ok
    expire_in: 7d

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports