HomePhorge

(maint) Enable rubocop checking for shadowed variables
9cd470a0df89Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(maint) Enable rubocop checking for shadowed variables

Previously, we allowed variables to be shadowed by variables
of the same name at local scope. This can make for confusing
reading to someone new to the code (and can potentially indicate
logic errors).

So this commit enables rubocop checking for shadow variables. It
also fixes (by renaming) all extant shadowed variables. Naming
is hard, but a best effort was made.

Details

Provenance
Kylo Ginsberg <kylo@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUb1e6fe202da2: Merge remote-tracking branch 'upstream/pr/3418'
Branches
Unknown
Tags
Unknown

Event Timeline

Kylo Ginsberg <kylo@puppetlabs.com> committed rPU9cd470a0df89: (maint) Enable rubocop checking for shadowed variables (authored by Kylo Ginsberg <kylo@puppetlabs.com>).Dec 18 2014, 10:49 PM