Comments (3)
The name of this inspection is ... not as clear as it needs to be. What Rubberduck is referencing is the fact that you basically have two assignments following each other without any read access to the variable in between.
It's basically saying that the first assignment is not contributing anything, since it's always overwritten with a different value before the variable is being read:
col = 0 ' assignment not used
col = ws.ListObjects(...) ' because this assignment overwrites it
' before it's being read the next time
If col = 0 Then
from rubberduck.
from rubberduck.
Just chipping in to mention that the website and its backend API haven't been looked at in several months, and with the current state of it I don't think it would pick up the new inspection name (or correctly mark the old version as deprecated), so not a showstopper in any way, but as far as unintended consequences go, ...the inspection's web link in the inspection results toolwindow is going to be a 404 if it's fixed & merged before the website gets a bit of attention... which might not realistically happen until I'm about to redesign the site to make some space for v3.
from rubberduck.
Related Issues (20)
- Rubberduck->Tools->Import Saved Project (restore all backup source code modules/forms/classes) HOT 1
- Timestamp annotation OR Just insert/paste Timestamp HOT 1
- Indenter Trim/Remove Trailing Spaces HOT 2
- Refactor Extract Method Will Not Extract Apparently Complete Code Block If Trailing Line End Is Included in Selection HOT 2
- code Inspection does not see anything in the project. HOT 2
- Error when starting VBA in Access 365 HOT 2
- Microsoft .NET Framework error when loading Rubberduck. HOT 1
- Recent Resolver Error on VBE-compilable code HOT 5
- Line Number ?
- Resolver Error when resolving existing VBA project for the first time HOT 3
- Indentation failed on simple code HOT 2
- Trigger-happy VariableNotAssignedInspection warning HOT 2
- Office Program crashing when refreshing in ofiice file contains forms HOT 2
- Parse error on Private Type definition HOT 6
- Questionable behavior in "Code inspections" HOT 1
- Excel shutdown when opening a class node in Code Explorer HOT 3
- UnassignedVariableUsage Doesn't support variable being assigned as an "out" parameter from a property/sub/function HOT 4
- Rubberduck wants me to assign Object() array with 'Set' keyword HOT 1
- Add a comment to selected lines of code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubberduck.