MarketSquare / MarketSquare/robotframework-robocop
[Rule] Accessing item and dict variables using different syntax
Open
Nobody has claimed this yet.
rule
- Dominant language
- Python
- Stars
- 269
- Forks
- 58
- Avg merge
- 4h 55m
- Merged PRs (30d)
- 45
Description
Both ways are possible:
```
${dict['item']}
${dict}[item]
```
There should be rule that would point inconsistency (when we're using both formats). It could be configurable to always report if the user uses particular format.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the two variable-access examples in the issue and inspect existing rule definitions and tests in the repository to find the appropriate extension point. Define how mixed syntax and any configurable preferred format should be reported, then add coverage showing the intended diagnostics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100