objectionary / objectionary/lints

Linter doesn't warn about unnecessary usage of `^` in code

Open
#690 2 comments 1 reaction 1 assignee View on GitHub

@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

  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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.