MarketSquare / MarketSquare/robotframework-robocop

[Rule] Accessing item and dict variables using different syntax

Open
#852 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.