mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-02-06 19:11:45 +08:00
Add uncrustify github workflow (#659)
* Add uncrustify github workflow * Fix exclusion pattern * fix find expression * exclude uncrustify files * Uncrustify common demo and test files * exlude white space checking files * Fix EOL whitespace checker * Remove whitespaces from EOL * Fix space at EOL * Fix find spaces at EOL Co-authored-by: Archit Aggarwal <architag@amazon.com>
This commit is contained in:
2
.github/scripts/core_checker.py
vendored
2
.github/scripts/core_checker.py
vendored
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# python >= 3.4
|
||||
# python >= 3.4
|
||||
|
||||
import os
|
||||
from common.header_checker import HeaderChecker
|
||||
|
||||
10
.github/scripts/packager.py
vendored
10
.github/scripts/packager.py
vendored
@@ -211,7 +211,7 @@ def configure_argparser():
|
||||
type = str,
|
||||
default = 'HEAD',
|
||||
help = 'Commit ID of FreeRTOS repo to package')
|
||||
|
||||
|
||||
return parser
|
||||
|
||||
def sanitize_cmd_args(args):
|
||||
@@ -254,13 +254,13 @@ def main():
|
||||
FREERTOS_GIT_LINK,
|
||||
core_package_name,
|
||||
commit_id=args.freertos_commit)
|
||||
|
||||
|
||||
if path_core_out_tree == None:
|
||||
print('Failed to prepare repo for zipping')
|
||||
exit(1);
|
||||
|
||||
|
||||
core_outzip = create_package(path_core_out_tree, core_package_name, RELATIVE_FILE_EXCLUDES)
|
||||
|
||||
|
||||
# Create FreeRTOS-Labs package
|
||||
labs_package_name = 'FreeRTOS-Labs'
|
||||
(path_labs_in_tree, path_labs_out_tree) = create_file_trees(DIR_INPUT_TREES,
|
||||
@@ -271,7 +271,7 @@ def main():
|
||||
if path_labs_out_tree == None:
|
||||
print('Failed to prepare repo for zipping')
|
||||
exit(1);
|
||||
|
||||
|
||||
labs_outzip = create_package(path_labs_out_tree, labs_package_name, LABS_RELATIVE_EXCLUDE_FILES)
|
||||
|
||||
# Package summaries
|
||||
|
||||
10
.github/scripts/verify_manifest.py
vendored
10
.github/scripts/verify_manifest.py
vendored
@@ -10,7 +10,7 @@ from argparse import ArgumentParser
|
||||
REPO_PATH=''
|
||||
|
||||
# List of submodules excluded from manifest.yml file
|
||||
IGNORE_SUBMODULES_LIST = [
|
||||
IGNORE_SUBMODULES_LIST = [
|
||||
'FreeRTOS-Plus/Test/CMock',
|
||||
'FreeRTOS/Test/CMock/CMock',
|
||||
'FreeRTOS/Test/litani'
|
||||
@@ -19,7 +19,7 @@ IGNORE_SUBMODULES_LIST = [
|
||||
# Obtain submodule path of all entries in manifest.yml file.
|
||||
def read_manifest():
|
||||
path_list = []
|
||||
|
||||
|
||||
# Read YML file
|
||||
path_manifest = os.path.join(REPO_PATH, 'manifest.yml')
|
||||
assert os.path.exists(path_manifest), 'Missing manifest.yml'
|
||||
@@ -53,7 +53,7 @@ def get_all_submodules():
|
||||
path = submodule.abspath.replace(REPO_PATH+'/', '')
|
||||
if path not in IGNORE_SUBMODULES_LIST:
|
||||
path_list.append(path)
|
||||
|
||||
|
||||
return sorted(path_list)
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -69,13 +69,13 @@ if __name__ == '__main__':
|
||||
# Convert any relative path (like './') in passed argument to absolute path.
|
||||
REPO_PATH = os.path.abspath(args.repo_root_path)
|
||||
|
||||
libraries_in_manifest_file = read_manifest()
|
||||
libraries_in_manifest_file = read_manifest()
|
||||
git_submodules_list = get_all_submodules()
|
||||
|
||||
print(REPO_PATH)
|
||||
print(git_submodules_list)
|
||||
|
||||
# Check that manifest.yml contains entries for all submodules
|
||||
# Check that manifest.yml contains entries for all submodules
|
||||
# present in repository.
|
||||
if libraries_in_manifest_file == git_submodules_list:
|
||||
print('Manifest.yml is verified!')
|
||||
|
||||
Reference in New Issue
Block a user