Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Linter for robot framework plain text files

License

NotificationsYou must be signed in to change notification settings

boakley/robotframework-lint

Repository files navigation

Static analysis for robot framework plain text files.

This is a static analysis tool for robot framework plain text files.

Installation Instructions

The preferred method of installation is to use pip:

$ pip install --upgrade robotframework-lint

This will install a package named "rflint", and an executable named "rflint"

Running the linter

To run, use the command "rflint", or use the-m option to python torun the rflint module. Add one or more filenames as arguments, andthose files will be checked for rule violations.

Custom rules

Rules are simple python classes. For more information about how towrite rules, see therobotframework-lint wiki

Argument files

rflint supports argument files much in the same way as robot framework. You canput arguments one per line in a file, and reference that file with the option-A or--argument-file.

Argument files are a convenient way to create a set of rules and rule configurationsthat you want to apply to your files.

Examples

$ rflint myTestSuite.robot

To see a list of all of the built-in rules, run the following command

$ rflint --list

To see documentation, add the --verbose option:

$ rflint --list --verbose

Some rules are configurable. For example, to configure the "LineTooLong"rule to flag lines longer than 80 characters (the default is 100), youcan change the default value with the configure option:

$ rflint --configure LineTooLong:80 myTestSuite.robot

You can disable any rule, or configure it to be a warning or errorwith the options --warning, --error and --ignore. For example, toignore the LineTooLong rule you can do this:

$ rflint --ignore LineTooLong myTestSuite.robot

To see a list of all command line options, use the--help option:

$ python -m rflint --help

Example output:

$ python -m rflint myTestSuite.robot+ myTestSuite.robotW: 2, 0: No suite documentation (RequireSuiteDocumentation)E: 15, 0: No keyword documentation (RequireKeywordDocumentation)

This show a warning on line two, character 0, where there should be suitedocumentation but isn't. It also shows an error on line 15, character 0,where there should be keyword documentation but there isn't.

Acknowledgements

A huge thank-you to Echo Global Logistics (http://www.echo.com) forsupporting the development of this package.

About

Linter for robot framework plain text files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp