Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 29 Apr 15:53
v1.1.0
58143bc

Bug Fixes

  • analyze: Allow all also in robot.toml configuration for exit-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)

    [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 in robot.toml

    • -xe (or --extend-exit-code-mask) extends the configuration in robot.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

    # In robot.toml - Ignore warnings but let errors affect exit code
    [tool.robotcode-analyze.code]
    exit-code-mask = ["warn"]
    # 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)

Testing

  • Fix some unittest (98e4d5c)
  • Disable some flaky tests (f9a1a82)
  • Disable some flaky tests and correct regression test output file to be platform independent (4387984)