Skip to content

Commit

Permalink
fix. Missing document start can be on any line, not only on the first…
Browse files Browse the repository at this point in the history
… one.
  • Loading branch information
tamere-allo-peter committed May 4, 2022
1 parent e4cf243 commit 8b332a9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions yamlfixer/problemfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<document start>', but found '<stream end>' (syntax)
""" # noqa: D205, D208, D400
self.ffixer.lines.insert(self.linenum, '---')
Expand Down

0 comments on commit 8b332a9

Please sign in to comment.