Skip to content

Add license banner checker for .c/.h files#177

Merged
casaroli merged 3 commits intomainfrom
license_banner_checker
Feb 20, 2026
Merged

Add license banner checker for .c/.h files#177
casaroli merged 3 commits intomainfrom
license_banner_checker

Conversation

@SorinOlari
Copy link
Collaborator

@SorinOlari SorinOlari commented Feb 19, 2026

Description

Added a script for check license banner for all .c/.h files and add it to the CI workflow.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Code cleanup/refactoring
  • CI system update

How Has This Been Tested?

Intentionally introduced errors in the license banner text to ensure the script detects them as expected

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@SorinOlari SorinOlari marked this pull request as draft February 19, 2026 13:22
@SorinOlari SorinOlari force-pushed the license_banner_checker branch 2 times, most recently from aae3647 to 6eeabe0 Compare February 19, 2026 16:44
@SorinOlari SorinOlari linked an issue Feb 19, 2026 that may be closed by this pull request
11 tasks
@SorinOlari SorinOlari requested a review from casaroli February 19, 2026 19:45
@SorinOlari SorinOlari self-assigned this Feb 19, 2026
@SorinOlari SorinOlari added this to Ocre Feb 19, 2026
@SorinOlari SorinOlari removed a link to an issue Feb 19, 2026
11 tasks
@SorinOlari SorinOlari marked this pull request as ready for review February 19, 2026 19:52
@@ -0,0 +1,58 @@
#!/bin/sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file should be named check_license_banner_c.sh, because we will have other scripts for other types, but I guess we can rename it in next PRs.

- name: Run YAML Format Checks
run: sh scripts/yml_linter.sh

- name: Run Banner License Checks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Run Banner License Checks
- name: License Banner Checks

casaroli
casaroli previously approved these changes Feb 20, 2026
Signed-off-by: SorinO <sorin.olari2@gmail.com>
Signed-off-by: SorinO <sorin.olari2@gmail.com>
Signed-off-by: SorinO <sorin.olari2@gmail.com>
@casaroli casaroli merged commit ae444b6 into main Feb 20, 2026
5 of 6 checks passed
@github-project-automation github-project-automation bot moved this to Done in Ocre Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants