Skip to content

Commit

Permalink
Test Linter
Browse files Browse the repository at this point in the history
Signed-off-by: Taras Drozdovskyi <[email protected]>
  • Loading branch information
tdrozdovsky committed Feb 19, 2024
1 parent d48a3eb commit 2b21360
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@ jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cpp-linter/cpp-linter-action@v2
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
# The following value will only update a single comment
# in a pull request's thread. Set it to false to disable the comment.
# Set it to true to post a new comment (and delete the old comment).
# thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
thread-comments: ${{ github.event_name == 'push' && 'update' }}
style: ''
files-changed-only: false
ignore: crypto

- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
run: echo "Some files failed the linting checks!"
if: steps.linter.outputs.checks-failed != 0
run: |
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}"
# for actual deployment
# run: exit 1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ you can find here](.github/CONTRIBUTING.md).
[NuMaker-PFM-M2351]: http://www.nuvoton.com.cn/hq/products/iot-solution/iot-platform/numaker-maker-platform/numaker-pfm-m2351?__locale=en
[M2351-Badge]: docs/schemes/m2351_badge
[V2M-MPS2-Qemu]: https://developer.arm.com/documentation/100964/1114/Microcontroller-Prototyping-System-2?lang=en

6 changes: 3 additions & 3 deletions tools/ecdsa_keygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ typedef struct Message_Struct {

/* Private Data. */
/* All static data definitions appear here. */
uint32_t key[] =
const uint32_t key[] =
{ 0x78563412, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0xefcdac00 };

uint32_t iv[] =
const uint32_t iv[] =
{ 0x78563412, 0x00000000, 0x00000000, 0xefcdac00 };

/* Public Data. */
Expand Down Expand Up @@ -374,7 +374,7 @@ int main(int argc, char * argv[])
}
fclose(fd);

exit:
// exit:
BN_free(x);
BN_free(y);
EC_GROUP_free(ecgroup);
Expand Down

0 comments on commit 2b21360

Please sign in to comment.