Skip to content

Files

Latest commit

 

History

History
21 lines (12 loc) · 644 Bytes

ExplicitCallToPutAtMethod.md

File metadata and controls

21 lines (12 loc) · 644 Bytes

Pattern: Explicit call to map.putAt(k, v)

Issue: -

Description

Detects when the map.putAt(k, v) method is called directly rather than using map[k] = v.

This rule can be configured to ignore this.putAt(k, v) using the ignoreThisReference property. It defaults to false, so even putAt(k, v) will trigger a violation.

This rule also ignores all calls to super.putAt(k, v).

Example of violations:

    map.putAt(k, v)         // violation

Further Reading