Skip to content

run-format.sh rewrites files; the repo should already be fully formatted #2580

Description

@kbrunham-intel

.github/bin/run-format.sh is the project style check (clang-format on *.h/*.cc, plus buildifier on BUILD files). Running it on current master rewrites files that were not part of any local change, for example:

  • verible/common/formatting/align.cc
  • verible/common/formatting/align_test.cc
  • verible/common/text/parser-verifier.h
  • verible/verilog/analysis/flow-tree.h
  • verible/verilog/analysis/verilog-filelist.h
  • verible/verilog/preprocessor/verilog-preprocess.h
  • verible/verilog/tools/kythe/kythe-facts.cc
  • verible/verilog/analysis/checkers/forbid-consecutive-null-statements-rule_test.cc

The whole tree is expected to already match run-format.sh. Drift makes formatter PRs pick up unrelated diffs and makes CI style failures surprising.

Suggested direction

Run .github/bin/run-format.sh on master and land a one-time format-only PR so the tree is clean. After that, CI should be the only source of format changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions