objectionary / objectionary/lints
Linter doesn't warn about unnecessary usage of `^` in code
Open
@Snehakb1219-christ is already working on this.
Since Sep 14, 2025.
bug
good-title
help wanted
- Dominant language
- Java
- Stars
- 14
- Forks
- 39
- Avg merge
- 22h 54m
- Merged PRs (30d)
- 90
Description
This is my code:
# App.
[n] > app
foo.plus 1 > @
[x] > foo
^.n > @
I don't get any warnings. However, I should. The last line may be written shorter:
# App.
[n] > app
foo.plus 1 > @
[x] > foo
n > @
No need to use ^ if it's not required to resolve ambiguity between names. There is only one n in this program, the use of ^ is not motivated.
Let's create a new lint to check this.
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
This issue has not been assessed yet.