Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
CI_Source CI_Source
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Support
  • CI_SourceCI_Source
  • Merge requests
  • !28

Merged
Created Dec 12, 2022 by Ben Avison@bavisonDeveloper

Rework head_whitesp job

  • Overview 4
  • Commits 1
  • Pipelines 2
  • Changes 1

This re-uses the same script from the Runner machine as is used for the reworked cppcheck job. In an analogous way, this enables us to more easily detect whitespace errors introduced in new work, without first requiring the removal of any examples from pre-existing versions.

Due to the shared framework, this job has many of the same facilities as the cppcheck job. You can get more information about its deductions by setting VERBOSE to 1 when launching a pipeline manually. You can also suppress diagnostics by commit, name, file or line; however a different variable name is (re)used for this job: WHITESPACE_WHITELIST.

Rather than using a custom regular expression to detect whitespace errors, this job now uses git diff-tree --check, so it picks up all the same issues as git itself does.

Obsoletes !18 (closed).

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: rework_whitespace