diff --git a/.github/workflows/tidy_checks.yml b/.github/workflows/tidy_checks.yml new file mode 100644 index 0000000..79fbdf2 --- /dev/null +++ b/.github/workflows/tidy_checks.yml @@ -0,0 +1,15 @@ +--- +name: tidyall +on: [push, pull_request] + +jobs: + tidyall: + runs-on: ubuntu-latest + container: + image: registry.opensuse.org/devel/openqa/containers/os-autoinst_dev + steps: + - uses: actions/checkout@v4 + - name: Static analysis + run: | + git config --global --add safe.directory '*' + ./external/os-autoinst-common/tools/tidyall --check-only $(git ls-files) diff --git a/.perltidyrc b/.perltidyrc new file mode 120000 index 0000000..8165c13 --- /dev/null +++ b/.perltidyrc @@ -0,0 +1 @@ +external/os-autoinst-common/.perltidyrc \ No newline at end of file diff --git a/.tidyallrc b/.tidyallrc new file mode 100644 index 0000000..d4c7a45 --- /dev/null +++ b/.tidyallrc @@ -0,0 +1,3 @@ +[PerlTidy] +select = **/*.{pl,pm,t} tools/tidyall tools/perlcritic tools/update-deps +argv = --profile=$ROOT/.perltidyrc