Skip to content

Commit 67235be

Browse files
authored
Lint clean up (#64)
Beman Standard lint fixes, split out from the accidentally-bundled #63 (which came off my fork's `main` and picked up unrelated paper work). Four commits, touching only lint concerns: - **Rename negative-compile tests to `*.test.cpp`** — [file.test_names] requires test sources to match `*.test.cpp`; renames the 56 `add_fail_test` sources and updates their CMakeLists references. - **Add missing SPDX-License-Identifier headers** — [file.license_id] requires an SPDX header in the first 25 lines; adds Apache-2.0 WITH LLVM-exception to CMake toolchain files, GitHub workflow/dependabot configs, and remaining example/paper sources. - **Link the README library-status badge** — [readme.badges] requires the badge wrapped in a link to the maturity-model doc. - **Fix codespell failures in papers/wg21-latex** — real typos fixed; `FitH` and `ist` added to the ignore list as legitimate technical tokens.
2 parents 383427d + 1fd2336 commit 67235be

87 files changed

Lines changed: 125 additions & 60 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
12
# To get started with Dependabot version updates, you'll need to specify which
23
# package ecosystems to update and where the package manifests are located.
34
# Please see the documentation for all configuration options:

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
12
---
23
# For most projects, this workflow file will not need changing; you simply need
34
# to commit it to your repository.

.github/workflows/doxygen-gh-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
12
name: Doxygen GitHub Pages Deploy Action
23

34
on:

.github/workflows/ossf-scorecard-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
12
name: Scorecard analysis workflow
23
on:
34
push:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55
-->
66

77
<!-- markdownlint-disable-next-line line-length -->
8-
![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg) ![Continuous Integration Tests](https://github.com/steve-downey/sandbox-expected/actions/workflows/ci_tests.yml/badge.svg) ![Lint Check (pre-commit)](https://github.com/steve-downey/sandbox-expected/actions/workflows/pre-commit-check.yml/badge.svg) [![Coverage](https://coveralls.io/repos/github/steve-downey/sandbox-expected/badge.svg?branch=main)](https://coveralls.io/github/steve-downey/sandbox-expected?branch=main) ![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp29.svg)
8+
[![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#the-beman-library-maturity-model) ![Continuous Integration Tests](https://github.com/steve-downey/sandbox-expected/actions/workflows/ci_tests.yml/badge.svg) ![Lint Check (pre-commit)](https://github.com/steve-downey/sandbox-expected/actions/workflows/pre-commit-check.yml/badge.svg) [![Coverage](https://coveralls.io/repos/github/steve-downey/sandbox-expected/badge.svg?branch=main)](https://coveralls.io/github/steve-downey/sandbox-expected?branch=main) ![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp29.svg)
99

1010
`beman.expected` is a C++ library implementing the std::expected specification conforming to [The Beman Standard](https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md).
1111

cmake/ci-clang-toolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# cmake/ci-clang-toolchain.cmake -*-cmake-*-
2+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3+
14
include_guard(GLOBAL)
25

36
set(CMAKE_C_COMPILER clang)

cmake/clang-16-toolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# cmake/clang-16-toolchain.cmake -*-cmake-*-
2+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3+
14
include_guard(GLOBAL)
25

36
set(CMAKE_C_COMPILER clang-16)

cmake/clang-17-toolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# cmake/clang-17-toolchain.cmake -*-cmake-*-
2+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3+
14
include_guard(GLOBAL)
25

36
set(CMAKE_C_COMPILER clang-17)

cmake/clang-18-toolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# cmake/clang-18-toolchain.cmake -*-cmake-*-
2+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3+
14
include_guard(GLOBAL)
25

36
set(CMAKE_C_COMPILER clang-18)

cmake/clang-19-toolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# cmake/clang-19-toolchain.cmake -*-cmake-*-
2+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3+
14
include_guard(GLOBAL)
25

36
set(CMAKE_C_COMPILER clang-19)

0 commit comments

Comments
 (0)