Lint test `features` tag (#1060)
A recent commit introduced a document that enumerated acceptable values for the test "features" metadata tag. However, this list was incomplete, and maintaining it placed extra burden on the project owners. Restructure the document into a machine-readable format. Add entries for all previously-omitted values. Add in-line documentation with recommendations for maintenance of the file. Extend the project's linting tool to validate tests according to the document's contents.
Showing
- CONTRIBUTING.md 1 addition, 1 deletionCONTRIBUTING.md
- FEATURES.md 0 additions, 16 deletionsFEATURES.md
- features.txt 99 additions, 0 deletionsfeatures.txt
- tools/lint/lib/checks/features.py 38 additions, 0 deletionstools/lint/lib/checks/features.py
- tools/lint/lint.py 2 additions, 1 deletiontools/lint/lint.py
- tools/lint/test/fixtures/features_empty.js 11 additions, 0 deletionstools/lint/test/fixtures/features_empty.js
- tools/lint/test/fixtures/features_unrecognized.js 11 additions, 0 deletionstools/lint/test/fixtures/features_unrecognized.js
- tools/lint/test/fixtures/features_valid.js 10 additions, 0 deletionstools/lint/test/fixtures/features_valid.js
Loading
Please register or sign in to comment