Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line 46: detekt_report.xml: No such file or directory #43

Open
hariswei opened this issue Oct 7, 2022 · 3 comments
Open

line 46: detekt_report.xml: No such file or directory #43

hariswei opened this issue Oct 7, 2022 · 3 comments

Comments

@hariswei
Copy link

hariswei commented Oct 7, 2022

Hi i keep getting those error, i've seen this issues before but i tried the fix but still no luck

output-reports:
active: true
exclude:
- 'XmlOutputReport'
- 'TxtOutputReport'
- 'HtmlOutputReport'

name: Versi trio

on:
pull_request:
branches: [ "main" ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: detekt
uses: alaegin/Detekt-Action@v1.21.0-RC2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
detekt_config: config/detekt/detekt.yml
reviewdog_reporter: github-pr-review

@hariswei
Copy link
Author

hariswei commented Oct 7, 2022

This is the error

Run alaegin/Detekt-Action@v1.21.0-RC2

/usr/bin/docker run --name e366c1a99b7f2041f198945b8809100b46_fb7dfe --label 5364e3 --workdir /github/workspace --rm -e "INPUT_GITHUB_TOKEN" -e "INPUT_DETEKT_CONFIG" -e "INPUT_REVIEWDOG_REPORTER" -e "INPUT_REVIEWDOG_LEVEL" -e "INPUT_REVIEWDOG_FILTER" -e "INPUT_DETEKT_EXCLUDES" -e "INPUT_FAIL_ON_ERROR" -e "INPUT_DETEKT_PLUGINS" -e "INPUT_DETEKT_BASELINE" -e "INPUT_DETEKT_PARALLEL" -e "INPUT_DETEKT_BUILD_UPON_DEFAULT_CONFIG" -e "INPUT_DETEKT_ALL_RULES" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/koinneoprivate/koinneoprivate":"/github/workspace" 5364e3:66c1a99b7f2041f198945b8809100b46 "" "error" "added" "github-pr-review" "config/detekt/detekt.yml" "/build/,/.idea/" "true" "" "" "" "" ""
java -jar /opt/detekt.jar --config config/detekt/detekt.yml --report xml:detekt_report.xml --excludes /build/,
/.idea/* --plugins /opt/detekt-formatting.jar
/github/workspace/app/src/androidTest/java/com/example/testgithubaction/ExampleInstrumentedTest.kt:24:2: The file /github/workspace/app/src/androidTest/java/com/example/testgithubaction/ExampleInstrumentedTest.kt is not ending with a new line. [NewLineAtEndOfFile]
/github/workspace/app/src/test/java/com/example/testgithubaction/ExampleUnitTest.kt:17:2: The file /github/workspace/app/src/test/java/com/example/testgithubaction/ExampleUnitTest.kt is not ending with a new line. [NewLineAtEndOfFile]
/github/workspace/app/src/main/java/com/example/testgithubaction/MainActivity.kt:12:2: The file /github/workspace/app/src/main/java/com/example/testgithubaction/MainActivity.kt is not ending with a new line. [NewLineAtEndOfFile]

Analysis failed with 3 weighted issues.
/entrypoint.sh: line 46: detekt_report.xml: No such file or directory

@alaegin
Copy link
Owner

alaegin commented Oct 30, 2022

Could you please create a repository that reproduces this issue?

@Iliasgx
Copy link

Iliasgx commented Mar 21, 2024

I came across the same issue. I resolved it by not excluding the XmlOutputReport in output-reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants