test262/tools/lint/lib/checks
Philip Chimento a58ae41ea7 linter: Fix parsing features.txt
Previously, split() would split on whitespace, then the if-condition would
remove `#` - interpreting every word in every comment in the file as a
potential valid feature flag. We want splitlines() here.

Partial-line comments were inadvertently "supported" before, because of
this bug. Instead, support them explicitly by chopping off a `#`
character, anything after it, and any whitespace immediately preceding it.
2023-03-06 17:31:20 +01:00
..
__init__.py Introduce automated validation for test format (#994) 2017-05-01 12:04:05 -04:00
esid.py Lint: make esid check allow "%" (#1638) 2018-07-13 16:39:32 -04:00
features.py linter: Fix parsing features.txt 2023-03-06 17:31:20 +01:00
filename.py Update filename character restriction in documention, linter and a few filenames 2018-05-11 22:19:01 -04:00
flags.py Fix existing linting errors, update error phase, and add a new flags linter (#2086) 2019-03-06 12:24:44 -05:00
frontmatter.py tools: enforce restriction on YAML 2021-09-07 17:41:36 -04:00
harness.py Avoid printing tests source in the lint script (#1602) 2018-06-18 21:09:55 -04:00
harnessfeatures.py Lint: Make CheckHarnessFeatures output stable. 2019-08-12 17:14:07 +02:00
includes.py tools: enforce restriction on YAML includes key 2022-01-05 17:27:58 -05:00
license.py Update project structure to support non-JS files 2021-05-28 20:02:59 -04:00
negative.py tools: enforce restriction on YAML negative key 2022-01-10 13:50:38 -05:00
nopadding.py set lint rules to avoid leading or trailing empty lines in frontmatter string values 2019-02-25 16:14:21 -05:00
posix.py add lint check for newline at end of file 2019-11-10 20:18:53 -08:00