beman-tidy 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. beman_tidy-0.2.0/LICENSE +219 -0
  2. beman_tidy-0.2.0/PKG-INFO +161 -0
  3. beman_tidy-0.2.0/README.md +142 -0
  4. beman_tidy-0.2.0/beman_tidy/.beman-standard.yml +139 -0
  5. beman_tidy-0.2.0/beman_tidy/LICENSE +219 -0
  6. beman_tidy-0.2.0/beman_tidy/__init__.py +0 -0
  7. beman_tidy-0.2.0/beman_tidy/cli.py +71 -0
  8. beman_tidy-0.2.0/beman_tidy/lib/__init__.py +0 -0
  9. beman_tidy-0.2.0/beman_tidy/lib/checks/__init__.py +0 -0
  10. beman_tidy-0.2.0/beman_tidy/lib/checks/base/__init__.py +0 -0
  11. beman_tidy-0.2.0/beman_tidy/lib/checks/base/base_check.py +181 -0
  12. beman_tidy-0.2.0/beman_tidy/lib/checks/base/directory_base_check.py +70 -0
  13. beman_tidy-0.2.0/beman_tidy/lib/checks/base/file_base_check.py +120 -0
  14. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/__init__.py +0 -0
  15. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/cmake.py +47 -0
  16. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/cpp.py +13 -0
  17. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/directory.py +339 -0
  18. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/file.py +19 -0
  19. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/general.py +26 -0
  20. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/license.py +103 -0
  21. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/readme.py +214 -0
  22. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/release.py +72 -0
  23. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/repository.py +128 -0
  24. beman_tidy-0.2.0/beman_tidy/lib/checks/beman_standard/toplevel.py +60 -0
  25. beman_tidy-0.2.0/beman_tidy/lib/checks/system/__init__.py +0 -0
  26. beman_tidy-0.2.0/beman_tidy/lib/checks/system/git.py +32 -0
  27. beman_tidy-0.2.0/beman_tidy/lib/checks/system/registry.py +50 -0
  28. beman_tidy-0.2.0/beman_tidy/lib/pipeline.py +261 -0
  29. beman_tidy-0.2.0/beman_tidy/lib/utils/__init__.py +0 -0
  30. beman_tidy-0.2.0/beman_tidy/lib/utils/git.py +133 -0
  31. beman_tidy-0.2.0/beman_tidy/lib/utils/string.py +150 -0
  32. beman_tidy-0.2.0/beman_tidy/lib/utils/terminal.py +20 -0
  33. beman_tidy-0.2.0/pyproject.toml +40 -0
@@ -0,0 +1,219 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
204
+
205
+ ---- LLVM Exceptions to the Apache 2.0 License ----
206
+
207
+ As an exception, if, as a result of your compiling your source code, portions
208
+ of this Software are embedded into an Object form of such source code, you
209
+ may redistribute such embedded portions in such Object form without complying
210
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
211
+
212
+ In addition, if you combine or link compiled forms of this Software with
213
+ software that is licensed under the GPLv2 ("Combined Software") and if a
214
+ court of competent jurisdiction determines that the patent provision (Section
215
+ 3), the indemnity provision (Section 9) or other Section of the License
216
+ conflicts with the conditions of the GPLv2, you may retroactively and
217
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
218
+ the License, but only in their entirety and only with respect to the Combined
219
+ Software.
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: beman-tidy
3
+ Version: 0.2.0
4
+ Summary: The Codebase Bemanification Tool
5
+ Keywords: beman,bemanproject,linting,repository hygiene,compliance,beman standard,pre-commit tool,cli tool,automation
6
+ Author-email: Darius Neațu <neatudarius@gmail.com>
7
+ Maintainer-email: Rishyak <hello@rishyak.com>
8
+ Requires-Python: >=3.12
9
+ Description-Content-Type: text/markdown
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Intended Audience :: Developers
15
+ License-File: LICENSE
16
+ Requires-Dist: gitpython==3.1.44
17
+ Requires-Dist: pyyaml==6.0.2
18
+
19
+ # beman-tidy: The Codebase Bemanification Tool
20
+
21
+ <!--
22
+ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
23
+ -->
24
+ `beman-tidy` is a tool aimed at Beman Project contributors to check (`--dry-run`)
25
+ and apply (`--fix-inplace`) the [Beman Standard](https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md)
26
+ to their repositories.
27
+
28
+ **Note `2025-06-07`:** The first iteration of the tool will not support `--fix-inplace` in order to
29
+ expedite adoption across the Beman Project.
30
+
31
+ ## Usage
32
+
33
+ - Display help:
34
+
35
+ ```shell
36
+ $ beman-tidy --help
37
+ usage: beman-tidy [-h] [--fix-inplace | --no-fix-inplace] [--verbose | --no-verbose] [--require-all | --no-require-all] [--checks CHECKS] repo_path
38
+
39
+ positional arguments:
40
+ repo_path path to the repository to check
41
+
42
+ options:
43
+ -h, --help show this help message and exit
44
+ --fix-inplace, --no-fix-inplace
45
+ Try to automatically fix found issues
46
+ --verbose, --no-verbose
47
+ print verbose output for each check
48
+ --require-all, --no-require-all
49
+ all checks are required regardless of the check type (e.g., Recommendation becomes Requirement)
50
+ --checks CHECKS array of checks to run
51
+ ```
52
+
53
+ - Run beman-tidy on the exemplar repository **(default: dry-run mode)**
54
+
55
+ ```shell
56
+ # dry-run, require-all, non-verbose
57
+ $ beman-tidy /path/to/exemplar --require-all
58
+ Summary Requirement: 18 checks passed, 1 checks failed, 5 checks skipped, 23 checks not implemented.
59
+ Summary Recommendation: 0 checks passed, 0 checks failed, 0 checks skipped, 0 checks not implemented.
60
+
61
+ Coverage Requirement: 95.83% (23/24 checks passed).
62
+ Coverage Recommendation: 0.00% (0/0 checks passed).
63
+ Coverage TOTAL: 95.83% (23/24 checks passed).
64
+
65
+ # dry-run, non-require-all, non-verbose
66
+ Summary Requirement: 13 checks passed, 1 checks failed, 3 checks skipped, 9 checks not implemented.
67
+ Summary Recommendation: 5 checks passed, 0 checks failed, 2 checks skipped, 14 checks not implemented.
68
+
69
+ Coverage Requirement: 66.67% (16/24 checks passed).
70
+ Coverage Recommendation: 100.00% (7/7 checks passed).
71
+ Coverage TOTAL: 74.19% (23/31 checks passed).
72
+ ```
73
+
74
+ or verbose mode without errors:
75
+
76
+ ```shell
77
+ # dry-run, require-all, verbose mode - no errors
78
+ beman-tidy pipeline started ...
79
+
80
+ Running check [Requirement][license.approved] ...
81
+ [info ][license.approved ]: Valid Apache License - Version 2.0 with LLVM Exceptions found in LICENSE file.
82
+ check [Requirement][license.approved] ... passed
83
+
84
+ Running check [Requirement][license.apache_llvm] ...
85
+ check [Requirement][license.apache_llvm] ... passed
86
+
87
+ Running check [Requirement][license.criteria] ...
88
+ [skipped ][license.criteria ]: beman-tidy cannot actually check license.criteria. Please ignore this message if license.approved has passed. See https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md#licensecriteria for more information.
89
+ Running check [Requirement][license.criteria] ... skipped
90
+
91
+ ...
92
+
93
+ Running check [Requirement][readme.title] ...
94
+ check [Requirement][readme.title] ... passed
95
+
96
+ Running check [Requirement][readme.badges] ...
97
+ check [Requirement][readme.badges] ... passed
98
+
99
+ Running check [Requirement][readme.implements] ...
100
+ check [Requirement][readme.implements] ... passed
101
+
102
+ ...
103
+
104
+ beman-tidy pipeline finished.
105
+
106
+ Summary Requirement: 19 checks passed, 0 checks failed, 3 checks skipped, 23 checks not implemented.
107
+ Summary Recommendation: 0 checks passed, 0 checks failed, 2 checks skipped, 0 checks not implemented.
108
+
109
+ Coverage Requirement: 100.00% (24/24 checks passed).
110
+ Coverage Recommendation: 0.00% (0/0 checks passed).
111
+ Coverage TOTAL: 100.00% (24/24 checks passed).
112
+ ```
113
+
114
+ or verbose mode with errors:
115
+
116
+ ```shell
117
+ # dry-run, require-all, verbose mode - with errors
118
+ beman-tidy pipeline started ...
119
+
120
+ Running check [Requirement][license.approved] ...
121
+ [info ][license.approved ]: Valid Apache License - Version 2.0 with LLVM Exceptions found in LICENSE file.
122
+ check [Requirement][license.approved] ... passed
123
+
124
+ Running check [Requirement][license.apache_llvm] ...
125
+ check [Requirement][license.apache_llvm] ... passed
126
+
127
+ Running check [Requirement][license.criteria] ...
128
+ [skipped ][license.criteria ]: beman-tidy cannot actually check license.criteria. Please ignore this message if license.approved has passed. See https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md#licensecriteria for more information.
129
+ Running check [Requirement][license.criteria] ... skipped
130
+
131
+ ...
132
+
133
+ Running check [Requirement][readme.implements] ...
134
+ check [Requirement][readme.implements] ... passed
135
+
136
+ Running check [Requirement][readme.library_status] ...
137
+ [error ][readme.library_status ]: The file '/Users/dariusn/dev/dn/git/Beman/exemplar/README.md' does not contain exactly one of the required statuses from ['**Status**: [Under development and not yet ready for production use.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#under-development-and-not-yet-ready-for-production-use)', '**Status**: [Production ready. API may undergo changes.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#production-ready-api-may-undergo-changes)', '**Status**: [Production ready. Stable API.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#production-ready-stable-api)', '**Status**: [Retired. No longer maintained or actively developed.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#retired-no-longer-maintained-or-actively-developed)']
138
+ check [Requirement][readme.library_status] ... failed
139
+
140
+ ...
141
+
142
+ beman-tidy pipeline finished.
143
+
144
+ Summary Requirement: 18 checks passed, 1 checks failed, 3 checks skipped, 23 checks not implemented.
145
+ Summary Recommendation: 0 checks passed, 0 checks failed, 2 checks skipped, 0 checks not implemented.
146
+
147
+ Coverage Requirement: 95.83% (23/24 checks passed).
148
+ Coverage Recommendation: 0.00% (0/0 checks passed).
149
+ Coverage TOTAL: 95.83% (23/24 checks passed).
150
+ ```
151
+
152
+ - Run beman-tidy on the exemplar repository (fix issues in-place):
153
+
154
+ ```shell
155
+ beman-tidy path/to/exemplar --fix-inplace --verbose
156
+ ```
157
+
158
+ ## Working on beman-tidy
159
+
160
+ Please refer to the [Beman Tidy Development Guide](https://github.com/bemanproject/beman-tidy/blob/main/docs/dev-guide.md) for more details.
161
+
@@ -0,0 +1,142 @@
1
+ # beman-tidy: The Codebase Bemanification Tool
2
+
3
+ <!--
4
+ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
+ -->
6
+ `beman-tidy` is a tool aimed at Beman Project contributors to check (`--dry-run`)
7
+ and apply (`--fix-inplace`) the [Beman Standard](https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md)
8
+ to their repositories.
9
+
10
+ **Note `2025-06-07`:** The first iteration of the tool will not support `--fix-inplace` in order to
11
+ expedite adoption across the Beman Project.
12
+
13
+ ## Usage
14
+
15
+ - Display help:
16
+
17
+ ```shell
18
+ $ beman-tidy --help
19
+ usage: beman-tidy [-h] [--fix-inplace | --no-fix-inplace] [--verbose | --no-verbose] [--require-all | --no-require-all] [--checks CHECKS] repo_path
20
+
21
+ positional arguments:
22
+ repo_path path to the repository to check
23
+
24
+ options:
25
+ -h, --help show this help message and exit
26
+ --fix-inplace, --no-fix-inplace
27
+ Try to automatically fix found issues
28
+ --verbose, --no-verbose
29
+ print verbose output for each check
30
+ --require-all, --no-require-all
31
+ all checks are required regardless of the check type (e.g., Recommendation becomes Requirement)
32
+ --checks CHECKS array of checks to run
33
+ ```
34
+
35
+ - Run beman-tidy on the exemplar repository **(default: dry-run mode)**
36
+
37
+ ```shell
38
+ # dry-run, require-all, non-verbose
39
+ $ beman-tidy /path/to/exemplar --require-all
40
+ Summary Requirement: 18 checks passed, 1 checks failed, 5 checks skipped, 23 checks not implemented.
41
+ Summary Recommendation: 0 checks passed, 0 checks failed, 0 checks skipped, 0 checks not implemented.
42
+
43
+ Coverage Requirement: 95.83% (23/24 checks passed).
44
+ Coverage Recommendation: 0.00% (0/0 checks passed).
45
+ Coverage TOTAL: 95.83% (23/24 checks passed).
46
+
47
+ # dry-run, non-require-all, non-verbose
48
+ Summary Requirement: 13 checks passed, 1 checks failed, 3 checks skipped, 9 checks not implemented.
49
+ Summary Recommendation: 5 checks passed, 0 checks failed, 2 checks skipped, 14 checks not implemented.
50
+
51
+ Coverage Requirement: 66.67% (16/24 checks passed).
52
+ Coverage Recommendation: 100.00% (7/7 checks passed).
53
+ Coverage TOTAL: 74.19% (23/31 checks passed).
54
+ ```
55
+
56
+ or verbose mode without errors:
57
+
58
+ ```shell
59
+ # dry-run, require-all, verbose mode - no errors
60
+ beman-tidy pipeline started ...
61
+
62
+ Running check [Requirement][license.approved] ...
63
+ [info ][license.approved ]: Valid Apache License - Version 2.0 with LLVM Exceptions found in LICENSE file.
64
+ check [Requirement][license.approved] ... passed
65
+
66
+ Running check [Requirement][license.apache_llvm] ...
67
+ check [Requirement][license.apache_llvm] ... passed
68
+
69
+ Running check [Requirement][license.criteria] ...
70
+ [skipped ][license.criteria ]: beman-tidy cannot actually check license.criteria. Please ignore this message if license.approved has passed. See https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md#licensecriteria for more information.
71
+ Running check [Requirement][license.criteria] ... skipped
72
+
73
+ ...
74
+
75
+ Running check [Requirement][readme.title] ...
76
+ check [Requirement][readme.title] ... passed
77
+
78
+ Running check [Requirement][readme.badges] ...
79
+ check [Requirement][readme.badges] ... passed
80
+
81
+ Running check [Requirement][readme.implements] ...
82
+ check [Requirement][readme.implements] ... passed
83
+
84
+ ...
85
+
86
+ beman-tidy pipeline finished.
87
+
88
+ Summary Requirement: 19 checks passed, 0 checks failed, 3 checks skipped, 23 checks not implemented.
89
+ Summary Recommendation: 0 checks passed, 0 checks failed, 2 checks skipped, 0 checks not implemented.
90
+
91
+ Coverage Requirement: 100.00% (24/24 checks passed).
92
+ Coverage Recommendation: 0.00% (0/0 checks passed).
93
+ Coverage TOTAL: 100.00% (24/24 checks passed).
94
+ ```
95
+
96
+ or verbose mode with errors:
97
+
98
+ ```shell
99
+ # dry-run, require-all, verbose mode - with errors
100
+ beman-tidy pipeline started ...
101
+
102
+ Running check [Requirement][license.approved] ...
103
+ [info ][license.approved ]: Valid Apache License - Version 2.0 with LLVM Exceptions found in LICENSE file.
104
+ check [Requirement][license.approved] ... passed
105
+
106
+ Running check [Requirement][license.apache_llvm] ...
107
+ check [Requirement][license.apache_llvm] ... passed
108
+
109
+ Running check [Requirement][license.criteria] ...
110
+ [skipped ][license.criteria ]: beman-tidy cannot actually check license.criteria. Please ignore this message if license.approved has passed. See https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md#licensecriteria for more information.
111
+ Running check [Requirement][license.criteria] ... skipped
112
+
113
+ ...
114
+
115
+ Running check [Requirement][readme.implements] ...
116
+ check [Requirement][readme.implements] ... passed
117
+
118
+ Running check [Requirement][readme.library_status] ...
119
+ [error ][readme.library_status ]: The file '/Users/dariusn/dev/dn/git/Beman/exemplar/README.md' does not contain exactly one of the required statuses from ['**Status**: [Under development and not yet ready for production use.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#under-development-and-not-yet-ready-for-production-use)', '**Status**: [Production ready. API may undergo changes.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#production-ready-api-may-undergo-changes)', '**Status**: [Production ready. Stable API.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#production-ready-stable-api)', '**Status**: [Retired. No longer maintained or actively developed.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#retired-no-longer-maintained-or-actively-developed)']
120
+ check [Requirement][readme.library_status] ... failed
121
+
122
+ ...
123
+
124
+ beman-tidy pipeline finished.
125
+
126
+ Summary Requirement: 18 checks passed, 1 checks failed, 3 checks skipped, 23 checks not implemented.
127
+ Summary Recommendation: 0 checks passed, 0 checks failed, 2 checks skipped, 0 checks not implemented.
128
+
129
+ Coverage Requirement: 95.83% (23/24 checks passed).
130
+ Coverage Recommendation: 0.00% (0/0 checks passed).
131
+ Coverage TOTAL: 95.83% (23/24 checks passed).
132
+ ```
133
+
134
+ - Run beman-tidy on the exemplar repository (fix issues in-place):
135
+
136
+ ```shell
137
+ beman-tidy path/to/exemplar --fix-inplace --verbose
138
+ ```
139
+
140
+ ## Working on beman-tidy
141
+
142
+ Please refer to the [Beman Tidy Development Guide](https://github.com/bemanproject/beman-tidy/blob/main/docs/dev-guide.md) for more details.
@@ -0,0 +1,139 @@
1
+ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2
+
3
+ # 2025-08-04: Latest Beman Standard (https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md)
4
+ # snapshot made by neatudarius.
5
+ # Please report any issue related to this file to https://github.com/bemanproject/infra/issues.
6
+
7
+ # LICENSE
8
+ license.approved:
9
+ - type: Requirement
10
+ license.apache_llvm:
11
+ - type: Recommendation
12
+ license.criteria:
13
+ - type: Requirement
14
+
15
+ # GENERAL
16
+ library.name:
17
+ - type: Recommendation
18
+
19
+ # REPOSITORY
20
+ repository.name:
21
+ - type: Requirement
22
+ repository.default_branch:
23
+ - type: Requirement
24
+ repository.codeowners:
25
+ - type: Requirement
26
+ repository.code_review_rules:
27
+ - type: Requirement
28
+ repository.disallow_git_submodules:
29
+ - type: Recommendation
30
+
31
+ # RELEASE
32
+ release.github:
33
+ - type: Requirement
34
+ release.notes:
35
+ - type: Recommendation
36
+ release.godbolt_trunk_version:
37
+ - type: Recommendation
38
+
39
+ # TOP LEVEL
40
+ toplevel.cmake:
41
+ - type: Requirement
42
+ - value: CMakeLists.txt
43
+ toplevel.license:
44
+ - type: Requirement
45
+ - file_name: LICENSE
46
+ toplevel.readme:
47
+ - type: Requirement
48
+ - file_name: README.md
49
+
50
+ # README
51
+ readme.title:
52
+ - type: Recommendation
53
+ readme.badges:
54
+ - type: Requirement
55
+ - values:
56
+ - library_status: [
57
+ "![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)",
58
+ "![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_production_ready_api_may_undergo_changes.svg)",
59
+ "![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_production_ready_stable_api.svg)",
60
+ "![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_retired.svg)"
61
+ ]
62
+ - standard_target: [
63
+ "![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp26.svg)",
64
+ "![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp29.svg)"
65
+ ]
66
+ readme.purpose:
67
+ - type: Recommendation
68
+ readme.implements:
69
+ - type: Recommendation
70
+ readme.library_status:
71
+ - type: Requirement
72
+ - values: [
73
+ "**Status**: [Under development and not yet ready for production use.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#under-development-and-not-yet-ready-for-production-use)",
74
+ "**Status**: [Production ready. API may undergo changes.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#production-ready-api-may-undergo-changes)",
75
+ "**Status**: [Production ready. Stable API.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#production-ready-stable-api)",
76
+ "**Status**: [Retired. No longer maintained or actively developed.](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#retired-no-longer-maintained-or-actively-developed)",
77
+ ]
78
+ readme.license:
79
+ - type: Requirement
80
+
81
+ # CMAKE
82
+ cmake.default:
83
+ - type: Recommendation
84
+ cmake.use_fetch_content:
85
+ - type: Recommendation
86
+ cmake.project_name:
87
+ - type: Recommendation
88
+ cmake.passive_projects:
89
+ - type: Recommendation
90
+ cmake.library_name:
91
+ - type: Recommendation
92
+ cmake.library_alias:
93
+ - type: Requirement
94
+ cmake.target_names:
95
+ - type: Recommendation
96
+ cmake.passive_targets:
97
+ - type: Requirement
98
+ cmake.config:
99
+ - type: Requirement
100
+ cmake.skip_tests:
101
+ - type: Recommendation
102
+ cmake.skip_examples:
103
+ - type: Recommendation
104
+ cmake.avoid_passthroughs:
105
+ - type: Recommendation
106
+
107
+ # DIRECTORY
108
+ directory.interface_headers:
109
+ - type: Requirement
110
+ directory.implementation_headers:
111
+ - type: Requirement
112
+ directory.sources:
113
+ - type: Requirement
114
+ directory.tests:
115
+ - type: Requirement
116
+ directory.examples:
117
+ - type: Requirement
118
+ directory.docs:
119
+ - type: Requirement
120
+ directory.papers:
121
+ - type: Requirement
122
+
123
+ # FILE
124
+ file.cpp_names:
125
+ - type: Recommendation
126
+ file.test_names:
127
+ - type: Requirement
128
+ file.license_id:
129
+ - type: Requirement
130
+ file.copyright:
131
+ - type: Recommendation
132
+
133
+ # CPP
134
+ cpp.namespace:
135
+ - type: Recommendation
136
+ cpp.no_flag_forking:
137
+ - type: Requirement
138
+ cpp.extension_identifiers:
139
+ - type: Recommendation