Welcome to Robot Framework Lint
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 to run the rflint module. Add one or more filenames as arguments, and those files will be checked for rule violations.
Custom rules
Rules are simple python classes. For more information about how to write rules, see the [robotframework-lint wiki](https://github.com/boakley/robotframework-lint/wiki)
Argument files
rflint supports argument files much in the same way as robot framework. You can put 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 configurations that 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), you can 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 error with the options –warning, –error and –ignore. For example, to ignore 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.robot W: 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 suite documentation 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) for supporting the development of this package.
Metadata
Release files for robotframework-lint 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| robotframework-lint-1.1.tar.gz | 23.1 kB | Without provenance | Details |
Release files / robotframework-lint-1.1.tar.gz
| Download URL | robotframework-lint-1.1.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b5ac22ed59acbdf65f340ef3ddf10c7e88c9efd37cb03d7470d7c8e869cc0c1
|
|
BLAKE2b-256 checksum How to use checksums |
6fbf61df25a5b1f74e067998b0963bb968869210fdd7ca8d358cea1b72abee71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
|
Security for robotframework-lint 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.