Reporting nonexistent columns
See original GitHub issueUsing CFLint-1.3.0
Given the following component named test.cfc
:
/**
* Test hint
*/
component {
/**
* Converts date to formatted string-representation of date
* @dateObj The date object to format
*/
public string function formatDate(
required date dateObj
)
{
return dateFormat(arguments.dateObj, "mm/dd/yyyy");
}
}
I get the following issues:
- ARGUMENT_HAS_PREFIX_OR_POSTFIX (9, 53)
- ARGUMENT_IS_TEMPORARY (9, 53)
- COMPONENT_INVALID_NAME (1, 24)
None of those columns exist on those respective lines.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Alias column in presentation layer throwing nonexistent ...
Hi. We have few columns which renamed later, defined alias in presentation layer. Report created with old names are now throwing error nonexistent...
Read more >Make R report error on using non-existent column name in a ...
Suppose I make a typo in the WEIGHT name in the operation above. What will happen in that R will expand my misspelled...
Read more >Behavior of Selecting Non-Existent Columns [closed]
I don't consider the question particularly subjective. Values for a non-existent column are undefined, and null is undefined, so it makes sense ...
Read more >Reference to non existent column inside an IF statement - MSDN
I have a script that tests for a columns existence and if exists uses it i.e. refers to it. When I run the...
Read more >Solved: Report Template Error - Column does not exist
Solved: Hello, I have a basic form setup to record “Loads”. Here is a section of the Report Template. Load Type 1: >...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
getting line and column right is doable, but is going to take some rework. Moving this out to 1.4.1.
I added #491 back to 1.4.0.
Re-opening since this is not generally resolved. The issue with the more recent example has not changed. It is indicating that the first ARGUMENT_HAS_PREFIX_OR_POSTFIX is at (10, 16) which is the correct 0-based column but wrong line (which I do not believe is generally 0-based). However, the next one is at (10, 35) which is a nonexistent column.