Class: AsciiChem::Linter::ElementValidationCheck
- Defined in:
- lib/asciichem/linter/element_validation_check.rb
Overview
Validates that each Atom's element symbol is in the periodic
table. Catches typos like Hx, Cy, Oq that would otherwise
silently parse and produce nonsense output. Uses
AsciiChem::PeriodicTable as the single source of truth.
Severity is warning, not error — the parser is total and
might intentionally accept placeholder elements (e.g. X for
"unknown halogen" in teaching contexts). The linter flags them
for the user to confirm.