From 81745504ea00fd4b513b3ec405bc0be2eddb6056 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 15 Nov 2021 13:46:24 +0100 Subject: [PATCH] Fix CODEOCEAN-5Z * add "cannot assign to comparison" to linter translation --- config/locales/de.linter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/locales/de.linter.yml b/config/locales/de.linter.yml index fb1c6247..efe225f7 100644 --- a/config/locales/de.linter.yml +++ b/config/locales/de.linter.yml @@ -75,7 +75,7 @@ de: example: EOL while scanning string literal (, line 1) name: Syntax-Fehler regex: | - (?invalid syntax|EOL while scanning string literal|EOF while scanning triple-quoted string literal|cannot assign to|expected an indented block|Missing parentheses in call to|closing parenthesis|expression cannot contain assignment, perhaps you meant|f-string expression part cannot include a backslash|f-string:|invalid character in identifier|invalid decimal literal|trailing comma not allowed without surrounding parentheses|unexpected EOF while parsing|unexpected character after line continuation character|unexpected indent|unexpected unindent|unindent does not match any outer indentation level|unmatched|inconsistent use of tabs and spaces in indentation|illegal target for annotation|positional argument follows keyword argument|leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers) ?(?function call|literal|operator|set display|empty expression not allowed|single|unmatched)? ?(?:'(?[^'"]*)'\.*)? ?(?:(?Did you mean|does not match opening parenthesis|is not allowed)(?: ')?)?(?:(?.*)(?:\?|'|"))? ?\((?.*), line (?\d*)\).* + (?invalid syntax|EOL while scanning string literal|EOF while scanning triple-quoted string literal|cannot assign to|expected an indented block|Missing parentheses in call to|closing parenthesis|expression cannot contain assignment, perhaps you meant|f-string expression part cannot include a backslash|f-string:|invalid character in identifier|invalid decimal literal|trailing comma not allowed without surrounding parentheses|unexpected EOF while parsing|unexpected character after line continuation character|unexpected indent|unexpected unindent|unindent does not match any outer indentation level|unmatched|inconsistent use of tabs and spaces in indentation|illegal target for annotation|positional argument follows keyword argument|leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers|cannot assign to comparison) ?(?function call|literal|operator|set display|empty expression not allowed|single|unmatched)? ?(?:'(?[^'"]*)'\.*)? ?(?:(?Did you mean|does not match opening parenthesis|is not allowed)(?: ')?)?(?:(?.*)(?:\?|'|"))? ?\((?.*), line (?\d*)\).* replacement: "%{what}%{what_exactly}%{actual}%{explanation}%{suggestion}" # unused: context, line log_missing: true what: @@ -102,6 +102,7 @@ de: illegal target for annotation: Ungültige Schreibweise eines Bezeichners mit einem Großbuchstaben positional argument follows keyword argument: Nach einem benannten Argument darf kein Argument ohne Namen folgen leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers: Eine Zahl darf nicht mit einer führenden Null beginnen + cannot assign to comparison: Ein Vergleich kann nicht das Ziel einer Zuweisung sein und daher nicht links von einem einfachen Gleichheitszeichen = stehen what_exactly: # must start with a space character function call: ' eine Funktion'