test262/tools/lint/lib
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
..
checks linter: Fix parsing features.txt 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
check.py Lint: harness features flag enforcement via linter 2017-09-08 12:24:48 -04:00
collect_files.py Introduce automated validation for test format (#994) 2017-05-01 12:04:05 -04:00
eprint.py Introduce automated validation for test format (#994) 2017-05-01 12:04:05 -04:00
exceptions.py rename whitelist to exceptions in the linter tool (#2004) 2018-12-18 15:39:57 -02:00
frontmatter.py tools: enforce restriction on YAML 2021-09-07 17:41:36 -04:00