.mega-linter.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # .mega-linter.yml
  2. # MegaLinter configuration for OpENer project
  3. # General settings
  4. FLAVOR_SUGGESTIONS: false
  5. SHOW_ELAPSED_TIME: true
  6. FILEIO_REPORTER: false
  7. # Apply fixes
  8. APPLY_FIXES: all
  9. # Linters configuration
  10. DISABLE_LINTERS:
  11. - SPELL_CSPELL # Disabled as per original config
  12. # Formatter specific configuration
  13. C_CLANG_FORMAT_ARGUMENTS: "--style=file"
  14. # cpplint specific configuration
  15. # Use `source` as root so header-guard checks for headers under `source/tests`
  16. # don't require an extra `SOURCE_` prefix when file paths are evaluated.
  17. C_CPPLINT_ARGUMENTS:
  18. - "--root=source"
  19. - "--filter=-whitespace/line_length,-readability/casting,-build/include_what_you_use"
  20. - "--recursive"
  21. CPP_CPPLINT_ARGUMENTS:
  22. - "--root=source"
  23. - "--filter=-whitespace/line_length,-readability/casting,-build/include_what_you_use"
  24. - "--recursive"
  25. COPYPASTE_JSCPD_ARGUMENTS:
  26. - "--ignore"
  27. - "source/tests/**,source/src/ports/*/**"
  28. # Fix for Link Checker (Lychee)
  29. SPELL_LYCHEE_ARGUMENTS:
  30. # 1. Ignore the broken GitHub variable placeholders
  31. # 2. Ignore local file links that are failing due to path nesting
  32. - "--exclude"
  33. - 'https://github\.com/.*\$'
  34. - "--exclude-path"
  35. - "source/tests/ports/CHECKENCAPSULATIONINACTIVITY_TESTS.md"
  36. # Report configuration
  37. SARIF_REPORTER: true
  38. TEXT_REPORTER: true
  39. UPDATED_SOURCES_REPORTER: true
  40. # Parallel processing
  41. PARALLEL: true