Skip to content

Improvement: Add Clang-Tidy CI workflow #42

@lavrovvalera

Description

@lavrovvalera

What

Integrate the S-CORE standard static analysis CI workflow into the inc_time
pipeline. The workflow runs bazel build --config=lint //score/... to execute
Clang-Tidy via Bazel aspects and collect reports as CI artifacts.

Steps:

  1. Add a build:lint config to .bazelrc using the Clang-Tidy aspect from
    score_cpp_policies (depends on Task 1)
  2. Create .github/workflows/static_analysis.yml:
name: Static Code Analysis
on:
  pull_request:
    types: [opened, reopened, synchronize]
  push:
    branches: [main]
  merge_group:
    types: [checks_requested]
jobs:
  static-analysis:
    uses: eclipse-score/cicd-workflows/.github/workflows/static-analysis.yml@main
    with:
      bazel-targets: "//score/..."
      bazel-config: "lint"

References

Reusable workflow:

  • https://github.com/eclipse-score/cicd-workflows/blob/main/.github/workflows/static-analysis.yml
  • Current .bazelrc (no lint config yet):
    https://github.com/eclipse-score/inc_time/blob/main/.bazelrc
  • S-CORE process (Static Code Analysis section):
    https://github.com/eclipse-score/score/blob/main/docs/contribute/development/cpp/code_analysis.rst

Estimates for realization

S - Day

Category

  • Affects Detailed Design

Requirements / Architecture

  • Requirements / Architecture are not affected by this change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions