Modern ActivityPub compliant server, designed for simplicity and accessibility. Includes calendar and sharing economy features to empower your federated community. https://code.freedombone.net/bashrc/epicyon Docs: https://epicyon.net/#install
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

static_analysis 337B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. if [ -f /usr/bin/flake8 ]; then
  3. cmd="/usr/bin/flake8"
  4. else
  5. cmd="python3 -m flake8"
  6. fi
  7. echo "Starting static analysis"
  8. for sourceFile in *.py
  9. do
  10. result=$($cmd "$sourceFile")
  11. if [ "$result" ]; then
  12. echo ''
  13. echo "$result"
  14. exit 1
  15. fi
  16. echo -n '.'
  17. done
  18. echo ''
  19. echo "Static analysis complete"
  20. exit 0