Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 27, 2024
1 parent 5c95243 commit ec1d150
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions felt/core/fsl_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ def rule_based_renderer_to_fsl(
if rule.children():
# rule has nested children, can't convert
context.push_warning(
'Rule based renderer with nested rules cannot be converted',
'Rule based renderer with nested rules '
'cannot be converted',
LogLevel.Error,
detail={
'object': 'renderer',
Expand All @@ -437,7 +438,8 @@ def rule_based_renderer_to_fsl(
if not rule.symbol():
# no symbol rule, can't convert
context.push_warning(
'Rule based renderer with a rule without a symbol cannot be converted',
'Rule based renderer with a rule without a '
'symbol cannot be converted',
LogLevel.Error,
detail={
'object': 'renderer',
Expand All @@ -449,7 +451,8 @@ def rule_based_renderer_to_fsl(
if rule.dependsOnScale():
# rule has scale based visibility, can't convert
context.push_warning(
'Rule based renderer with scale based rule visibility cannot be converted',
'Rule based renderer with scale based rule '
'visibility cannot be converted',
LogLevel.Error,
detail={
'object': 'renderer',
Expand All @@ -462,7 +465,8 @@ def rule_based_renderer_to_fsl(
if not filter_expression:
# multiple symbol per feature, can't convert
context.push_warning(
'Rule based renderer with rules without filters cannot be converted',
'Rule based renderer with rules without '
'filters cannot be converted',
LogLevel.Error,
detail={
'object': 'renderer',
Expand All @@ -478,7 +482,8 @@ def rule_based_renderer_to_fsl(
if not res:
# not a simple field=value expression, can't convert
context.push_warning(
'Rule based renderer with complex filters cannot be converted',
'Rule based renderer with complex '
'filters cannot be converted',
LogLevel.Error,
detail={
'object': 'renderer',
Expand All @@ -491,7 +496,8 @@ def rule_based_renderer_to_fsl(
if filter_attribute and filter_attribute != field:
# rules depend on different attributes, can't convert
context.push_warning(
'Rule based renderer with complex filters cannot be converted',
'Rule based renderer with complex '
'filters cannot be converted',
LogLevel.Error,
detail={
'object': 'renderer',
Expand All @@ -513,7 +519,8 @@ def rule_based_renderer_to_fsl(
if other_symbol:
# multiple ELSE rules, can't convert
context.push_warning(
'Rule based renderer with multiple ELSE rules cannot be converted',
'Rule based renderer with multiple '
'ELSE rules cannot be converted',
LogLevel.Error,
detail={
'object': 'renderer',
Expand Down

0 comments on commit ec1d150

Please sign in to comment.