Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Add rule: limited "dot" chaining #98

Open
cdthompson opened this issue Jun 13, 2018 · 1 comment
Open

Add rule: limited "dot" chaining #98

cdthompson opened this issue Jun 13, 2018 · 1 comment
Labels
good first issue Good issue for first time contributors help wanted new rule request for comments Proposal open for comments and ideas

Comments

@cdthompson
Copy link

At some point, chaining objects with the . operator becomes dangerous and prone to runtime errors due to an intermedia object being invalid.

It'd be nice to warn against some threshold of chained operations, such as:

if m.object.child.child.child.field = true
...
@nishtahir nishtahir added help wanted new rule good first issue Good issue for first time contributors request for comments Proposal open for comments and ideas labels Jun 16, 2018
@nishtahir
Copy link
Member

What should the threshold for chaining calls be?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good issue for first time contributors help wanted new rule request for comments Proposal open for comments and ideas
Projects
None yet
Development

No branches or pull requests

2 participants