Not Implemented Stub (ARCH6191)
Ce contenu n’est pas encore disponible dans votre langue.
Key ruby.quality.not-implemented-stub · Severity warning · Category quality
raise NotImplementedError and similar stubs signal unfinished work; left in production paths they cause unexpected runtime failures.
Incorrect
Section titled “Incorrect”def export_pdf(report) raise NotImplementedError, "not done yet"endCorrect
Section titled “Correct”def export_pdf(report) PdfRenderer.new(report).renderendComplete the stub with a real implementation, or remove the method until the feature ships.