Skip to content

Conversation

@ccp-chargeback
Copy link
Collaborator

Allow filtering of included resource files based on rules defined in one or more supplied filter.ini files.

The change contains:

  • Reading and parsing of .ini filter files.
  • Allow overrides of include/exclude rules
  • Support wildcard filters:
    • "*" = current folder
    • "..." = any subfolder
  • Define priorities for include/exclude filter:
    • Based on folder/file hierarcy
    • Include/Exclude sameName file based on its hierarcy in each
  • Add CLI integration
  • Add loads of test coverage

Make use of existing filePath test functions
Next step, add missing tests.
Also fixed clang-tidy suggestions
- Do some function name changes to reduce stuttering.
Needed to support:
- Empty or undefined top-level filter (which should add a "*" include)
- Inline exclude filter ONLY (which should NOT add a "*" include) in the combined output.

Fixed and added a bunch of tests
- Hook it up to the ResourceGroupImplementation
- Add some basic tests for the functionality
# Conflicts:
#	include/ResourceGroup.h
- No need as the top-level ResourceGroupImpl one will return the correct top-level error code to the caller.
- The test should cover most (if not all) realistic mutations of same file(s) via different prefixmap relative paths includes/excludes.
Added test for:
- validComplexExample1
- combined validSimpleExample1 + validComplexExample1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant