Bug Fixes
- analyze: Allow
all
also inrobot.toml
configuration forexit-code-mask
(a496714) - langserver: Corrected highlightning of embedded arguments if there is a namespace given before the keyword (0ce5446)
Documentation
- Draft article about variables (161006e)
- Added pycharm link on the robotcode.io homepage (7686a21)
Features
- analyze: Exit code mask configuration for code analysis (4b677ad)
Configure which message types should not influence the exit code of robotcode analyze code
, allowing granular control over CI/CD pipeline behavior or pre-commit hooks.
Configuration File (robot.toml
)
toml
[tool.robotcode-analyze.code]
exit-code-mask = ["error", "warn"]
Command Line Options
robotcode analyze code --exit-code-mask error,warn # or -xm
robotcode analyze code --extend-exit-code-mask info # or -xe
-xm
(or--exit-code-mask
) overwrites the configuration inrobot.toml
-xe
(or--extend-exit-code-mask
) extends the configuration inrobot.toml
-
Both options can be specified multiple times or with comma-separated values:
robotcode analyze code -xm error -xm warn # multiple options robotcode analyze code -xm error,warn # comma-separated
Behavior
- Message types in the mask are ignored when determining exit code
- Available types:
error
,warn
/warning
,info
/information
,hint
- Special value
all
ignores all message types (always exit code 0) - Without configuration, all message types affect the exit code
Example
toml
# In robot.toml - Ignore warnings but let errors affect exit code
[tool.robotcode-analyze.code]
exit-code-mask = ["warn"]
bash
# Using short options
robotcode analyze code -xm error,hint # Overwrites robot.toml config
robotcode analyze code -xe info -xe hint # Extends robot.toml config with multiple types
robotcode analyze code -xm all # Always exit with code 0
- vscode: Add configuration for output file display options (738d7a6)
Add "robotcode.run.openOutputTarget" setting to control how Robot Framework output files are displayed: - simpleBrowser: in VSCode's built-in browser - externalHttp: in default browser via HTTP protocol - externalFile: in default browser via file system
The externalFile options may not run in remote development environments.
- vscode: Use short CLI argument versions when calling robotcode (0987f55)
Refactor
- analyze: Move code analysing to it's own module (0123a50)