Skip to content

fix: support names with spaces (fixes #20) #54

fix: support names with spaces (fixes #20)

fix: support names with spaces (fixes #20) #54

Workflow file for this run

name: CI
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install prerequisites
run: sudo apt-get install -y perl libperl-critic-perl perltidy
- name: perl check
run: perl -c btrfs-list
- name: perlcritic
run: perlcritic btrfs-list
- name: perltidy
run: |
perltidy -b -csc -iscl -nolc -nbbc -pt=2 -sbt=2 -bt=2 -l=120 -msc=1 btrfs-list
if ! test -e btrfs-list.tdy; then
echo "OK: perltidy didn't find any change to make"
else
echo "KO: perltidy found changes to make:"
diff -u btrfs-list btrfs-list.tdy
exit 1
fi
- name: perlcritic
run: |
perlcritic -3 --statistics --exclude 'ValuesAndExpressions::ProhibitConstantPragma|Variables::RequireLocalizedPunctuationVars|Subroutines::RequireArgUnpacking|InputOutput::RequireBriefOpen|RegularExpressions::RequireExtendedFormatting|Subroutines::ProhibitExcessComplexity|ControlStructures::ProhibitCascadingIfElse|RegularExpressions::ProhibitUnusedCapture|ValuesAndExpressions::ProhibitMismatchedOperators|Modules::ProhibitExcessMainComplexity|ErrorHandling::RequireCarping' btrfs-list