Skip to content

Commit

Permalink
Add horrid threshold parameter to complexity (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
AniruddhaKanhere authored Sep 19, 2022
1 parent 1845aea commit 3b0fa30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion complexity/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: 'Path to the folder in the repository containing the source code.'
required: false
default: source
horrid_threshold:
description: 'The horrid threshold parameter passed to the invocation of complexity'
required: false
default: 8
runs:
using: "composite"
steps:
Expand All @@ -19,5 +23,5 @@ runs:
working-directory: ${{ inputs.path }}
run: |
find ${{ inputs.source_path }}/ -iname '*.c' |\
xargs complexity --scores --threshold=0 --horrid-threshold=8
xargs complexity --scores --threshold=0 --horrid-threshold=${{ inputs.horrid_threshold }}
shell: bash

0 comments on commit 3b0fa30

Please sign in to comment.