This commit improves collection file editing and error detection directly in the IDE. It adds YAML schema, IDE configuration and automatic tests to validate it. - Introduce a YAML schema for collection file. - Use `yaml-language-server` for enhanced YAML support in VSCode. - Add telemetry disabling in `configure_vscode.py` to respect user privacy. - Add automated checks to validate YAML file structure against the schema. - Remove unused properties and do not allow them in compiler.
Collections
This directory contains the collection files, which are the central source of truth for scripts and categories within privacy.sexy.
In addition to the collection files, this folder contains two special files:
.schema.yaml: Provides the schema definition for collection files.collection.yaml.d.ts: Defines TypeScript typings for the collection files.
Additional documentation
- Refer to
collection-files.mdfor details on the structure of these files. - To validate these files, use the
validate-collections-yamlscript. For instructions, see itsREADME.md.