From 8b332a9360c6c8dec0f9d7d77ff53c702a060b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Alet?= Date: Wed, 4 May 2022 11:00:30 +1100 Subject: [PATCH] fix. Missing document start can be on any line, not only on the first one. --- yamlfixer/problemfixer.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/yamlfixer/problemfixer.py b/yamlfixer/problemfixer.py index 49abb42..5f32ec1 100755 --- a/yamlfixer/problemfixer.py +++ b/yamlfixer/problemfixer.py @@ -88,12 +88,6 @@ def _get_indentation(self, offset=0): def fix_missing_docstart(self, left, right): # pylint: disable=unused-argument """Fix: - missing document start - """ # noqa: D205, D208, D400 - self.ffixer.lines.insert(0, '---') - self.ffixer.loffset += 1 - - def fix_expected_docstart(self, left, right): # pylint: disable=unused-argument - """Fix: - syntax error: expected '', but found '' (syntax) """ # noqa: D205, D208, D400 self.ffixer.lines.insert(self.linenum, '---')