JSON, YAML Syntax Check: formatted the syntax checker code for better readability.

Sun, 04 Oct 2020 18:03:33 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 04 Oct 2020 18:03:33 +0200
changeset 7755
1f0a5024360c
parent 7754
436ca433ce9f
child 7756
c23a94f7e2e5

JSON, YAML Syntax Check: formatted the syntax checker code for better readability.

eric6/Plugins/CheckerPlugins/SyntaxChecker/jsonCheckSyntax.py file | annotate | diff | comparison | revisions
eric6/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py file | annotate | diff | comparison | revisions
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/jsonCheckSyntax.py	Sun Oct 04 16:39:07 2020 +0200
+++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/jsonCheckSyntax.py	Sun Oct 04 18:03:33 2020 +0200
@@ -178,6 +178,7 @@
         
         cline = min(len(codestring.splitlines()), int(line)) - 1
         code = codestring.splitlines()[cline]
+        
         return [{'error': (file, line, column, code, error)}]
     
     return [{}]
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py	Sun Oct 04 16:39:07 2020 +0200
+++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py	Sun Oct 04 18:03:33 2020 +0200
@@ -184,8 +184,10 @@
         else:
             line, column = 0, 0
         error = exc.problem
+        
         cline = min(len(codestring.splitlines()), int(line)) - 1
         code = codestring.splitlines()[cline]
+        
         return [{'error': (file, line, column, code, error)}]
     
     return [{}]

eric ide

mercurial