.scrutinizer.yml 1.1KB

123456789101112131415161718192021222324252627282930
  1. filter:
  2. excluded_paths: [modules/*]
  3. checks:
  4. python:
  5. format_bad_indentation:
  6. indentation: '4 spaces'
  7. format_mixed_indentation: true
  8. format_line_too_long:
  9. max_length: '79'
  10. imports_relative_import: true
  11. imports_wildcard_import: true
  12. format_bad_whitespace: true
  13. format_multiple_statements: true
  14. basic_invalid_name:
  15. functions: '[a-z_][a-z0-9_]{2,30}$'
  16. variables: '[a-z_][a-z0-9_]{2,30}$'
  17. whitelisted_names: 'i,j,k,ex,Run,_'
  18. constants: '(([A-Z_][A-Z0-9_]*)|(__.*__))$'
  19. attributes: '[a-z_][a-z0-9_]{2,30}$'
  20. arguments: '[a-z_][a-z0-9_]{2,30}$'
  21. class_attributes: '([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$'
  22. inline_vars: '[A-Za-z_][A-Za-z0-9_]*$'
  23. classes: '[A-Z_][a-zA-Z0-9]+$'
  24. modules: '(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$'
  25. methods: '[a-z_][a-z0-9_]{2,30}$'
  26. classes_no_self_argument: true
  27. classes_bad_mcs_method_argument: true
  28. classes_bad_classmethod_argument: true
  29. code_rating: true
  30. duplicate_code: true