wunderio / code-quality

List of tools that aims to help with static code quality inspection.
GNU General Public License v3.0
2 stars 5 forks source link

Add ignore lists #17

Closed tormi closed 5 years ago

tormi commented 5 years ago

Some files are invalid on purpose (for testing). How to deal with them?

lando grum --tasks yaml_lint
GrumPHP is sniffing your code!
Running task 1/1: YamlLintTask... ✘
[ERROR] Indentation problem in "./web/core/tests/Drupal/Tests/Core/Asset/library_test_files/invalid_file.libraries.yml" at line 3 (near "  key2: value2").
tormi commented 5 years ago

For phpcs I can probably use ignore_patterns. What about other tasks?

    phpcs:
      ignore_patterns:
        - ./web/core/tests/
guncha25 commented 5 years ago

ignore_patterns can be defined for every task in this package. Although i must admit that there should be link to each tasks readme in main readme.