Skip to content

Adding Understandability (Sonar Cognitive Complexity) #10

Adding Understandability (Sonar Cognitive Complexity)

Adding Understandability (Sonar Cognitive Complexity) #10

name: Cognitive Code Analysis
on:
pull_request:
paths:
- '**/*.php'
permissions:
pull-requests: write
contents: read
jobs:
analyse:
name: Cognitive Code Analysis
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: Phauthentic/cognitive-code-analysis-github-action@v1
with:
install-mode: phar
config: phpcca.yaml
post-comment: true
upload-artifact: true
emit-annotations: true
upload-sarif: false
fail-on-threshold: false