robotcode-robot 0.89.1__py3-none-any.whl → 0.91.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- __version__ = "0.89.1"
1
+ __version__ = "0.91.0"
@@ -33,3 +33,5 @@ class Error:
33
33
  KEYWORD_ERROR = "KeywordError"
34
34
  MULTIPLE_KEYWORDS = "MultipleKeywords"
35
35
  CONFLICTING_LIBRARY_KEYWORDS = "ConflictingLibraryKeywords"
36
+ INVALID_HEADER = "InvalidHeader"
37
+ DEPRECATED_HEADER = "DeprecatedHeader"
@@ -1117,6 +1117,27 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
1117
1117
  code=Error.DEPRECATED_HYPHEN_TAG,
1118
1118
  )
1119
1119
 
1120
+ def visit_SectionHeader(self, node: Statement) -> None: # noqa: N802
1121
+ if get_robot_version() >= (7, 0):
1122
+ token = node.get_token(*Token.HEADER_TOKENS)
1123
+ if not token.error:
1124
+ return
1125
+ if token.type == Token.INVALID_HEADER:
1126
+ self.append_diagnostics(
1127
+ range=range_from_node_or_token(node, token),
1128
+ message=token.error,
1129
+ severity=DiagnosticSeverity.ERROR,
1130
+ code=Error.INVALID_HEADER,
1131
+ )
1132
+ else:
1133
+ self.append_diagnostics(
1134
+ range=range_from_node_or_token(node, token),
1135
+ message=token.error,
1136
+ severity=DiagnosticSeverity.WARNING,
1137
+ tags=[DiagnosticTag.DEPRECATED],
1138
+ code=Error.DEPRECATED_HEADER,
1139
+ )
1140
+
1120
1141
  def visit_ReturnSetting(self, node: Statement) -> None: # noqa: N802
1121
1142
  if get_robot_version() >= (7, 0):
1122
1143
  token = node.get_token(Token.RETURN_SETTING)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: robotcode-robot
3
- Version: 0.89.1
3
+ Version: 0.91.0
4
4
  Summary: Support classes for RobotCode for handling Robot Framework projects.
5
5
  Project-URL: Homepage, https://robotcode.io
6
6
  Project-URL: Donate, https://opencollective.com/robotcode
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
26
26
  Classifier: Typing :: Typed
27
27
  Requires-Python: >=3.8
28
28
  Requires-Dist: platformdirs<4.2.0,>=3.2.0
29
- Requires-Dist: robotcode-core==0.89.1
29
+ Requires-Dist: robotcode-core==0.91.0
30
30
  Requires-Dist: robotframework>=4.1.0
31
31
  Requires-Dist: tomli>=1.1.0; python_version < '3.11'
32
32
  Description-Content-Type: text/markdown
@@ -1,5 +1,5 @@
1
1
  robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- robotcode/robot/__version__.py,sha256=LDE7Agq_JZ3pdf1_Beq75uUNXEeUm6_Wl1o0UL3USFE,23
2
+ robotcode/robot/__version__.py,sha256=RBon26SFk4Bs08h0XAmTYW8lrYs3N9ihifF9r6VT4Vc,23
3
3
  robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
4
4
  robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  robotcode/robot/config/loader.py,sha256=LpGqJAdysvVSZpccW-Il52xn9RMBBb9X94emlBY7zCc,6077
@@ -9,12 +9,12 @@ robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
9
9
  robotcode/robot/diagnostics/diagnostics_modifier.py,sha256=9AFptQsdw_TvgBkKqutpvI8WKsOUXipXQDOExarJJy4,6903
10
10
  robotcode/robot/diagnostics/document_cache_helper.py,sha256=pa9AdSbEFZJ6VSdZluGyfzyZPjzBfNFAv5pXJEM-7fc,22664
11
11
  robotcode/robot/diagnostics/entities.py,sha256=AtrqPAS3XUC-8VpFmqMXfMKjQHmfxXZlyGWWFaEBpQA,10979
12
- robotcode/robot/diagnostics/errors.py,sha256=1DNxi1lbz4HAWocCi-4zY1IgUGO3J04kY_sBgYfkeX0,1520
12
+ robotcode/robot/diagnostics/errors.py,sha256=HCE0h0_ui1tx-6pJHs0r4s09ZHmArYwKUo-_lBl9K-4,1600
13
13
  robotcode/robot/diagnostics/imports_manager.py,sha256=qE__lm0Hsj3R0gUauXRmbWJPYihNjk3O-c5hcICGQjc,56251
14
14
  robotcode/robot/diagnostics/library_doc.py,sha256=CHgyC9GMRQFP3fGTxWa139rIcGIk8Ys6Q_ZIDSgse7k,97324
15
15
  robotcode/robot/diagnostics/model_helper.py,sha256=_5ixKKMrb-nY-uvV8_WjJ1rlNlz7gT7kHM5NYi_hjVg,30232
16
16
  robotcode/robot/diagnostics/namespace.py,sha256=jCUb5GmMDA6KTr2BnwHD_0Mp_gTg1XGskUvRYPL7XQ0,89543
17
- robotcode/robot/diagnostics/namespace_analyzer.py,sha256=G9xgJ-hPunXxfpKmZEf0xop8sIp4IhjdM3Z3C9vQU-g,50479
17
+ robotcode/robot/diagnostics/namespace_analyzer.py,sha256=3eC1xEBm_foCnqoHk8Cj6O11UXOHcHxWnfuKP8M5KIQ,51369
18
18
  robotcode/robot/diagnostics/workspace_config.py,sha256=lWNq1KmGGJ9cHFNHn0QTCBHHzgz4AewTw0l-W4TKrj0,1803
19
19
  robotcode/robot/utils/__init__.py,sha256=OjNPMn_XSnfaMCyKd8Kmq6vlRt6mIGlzW4qiiD3ykUg,447
20
20
  robotcode/robot/utils/ast.py,sha256=ynxvXv1SHkAcF07m76ey9_zaGCYXhlPOnny7km-XWSQ,10479
@@ -24,7 +24,7 @@ robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6
24
24
  robotcode/robot/utils/stubs.py,sha256=6-DMI_CQVJHDgG13t-zINKGCRb_Q7MQPm0_AkfhAEvE,748
25
25
  robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
26
26
  robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
27
- robotcode_robot-0.89.1.dist-info/METADATA,sha256=VuJ4h7IuEdwO6JEe29RtBLGmE8YVgLelHbX-ubQjpDw,2240
28
- robotcode_robot-0.89.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
29
- robotcode_robot-0.89.1.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
30
- robotcode_robot-0.89.1.dist-info/RECORD,,
27
+ robotcode_robot-0.91.0.dist-info/METADATA,sha256=Cl7XlzEEn_Q5xmyv7C6R09JliQm1pL45DGuC-M4cSrY,2240
28
+ robotcode_robot-0.91.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
29
+ robotcode_robot-0.91.0.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
30
+ robotcode_robot-0.91.0.dist-info/RECORD,,