Skip to content

Commit

Permalink
Add support for additional formatting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamere-allo-peter committed Mar 16, 2022
1 parent c58b8f1 commit eaed8b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
version = 0.3.2
version = 0.3.3
name = yamlfixer-opt-nc
description = automates the fixing of problems reported by yamllint
long_description = file: README.md
Expand Down
4 changes: 3 additions & 1 deletion yamlfixer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import argparse
import json

__version__ = "0.3.2"
__version__ = "0.3.3"
__author__ = "OPT-NC"
__license__ = "GPLv3+"
__copyright__ = "Copyright (C) 2021-%s %s" % (time.strftime("%Y",
Expand Down Expand Up @@ -235,6 +235,8 @@ def fix_linetoolong(self, left, right): # pylint: disable=unused-argument
def fix_syntax_mappingvalues_nah(self, left, right):
"""Fix:
- syntax error: mapping values are not allowed here
- syntax error: expected <block end>, but found '<block mapping start>'
- syntax error: expected <block end>, but found '?'
"""
indentation = self.get_indentation()
previndentation = self.get_indentation(-1)
Expand Down

0 comments on commit eaed8b0

Please sign in to comment.