-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.cflintrc throwing errors with 1.4.0 #578
Comments
The reason it hangs is because it is waiting for Anyway, I also see this error. It appears that it is using the config file, though, so at least functionality is not affected. |
I don't think it's being used, coz I'm seeing all the excludes showing up as problems? that's why STRUCT_ARRAY_NOTATION appears twice in the above config and how I ended up filing this bug |
Hmm. this is interesting. If you rename work.cflintrc to .cflintrc, and use -stdin c:\testGateway.cfc. CFLint will pick up the .cflintrc settings as part of the current source folder tree and apply it. |
@ryaneberly Unless I am mistaken, @zspitzer My mistake. I was testing with a |
@KamasamaK don't worry about the double STRUCT_ARRAY_NOTATION, it was merely explaining how I ended up filing the bug |
this is resolved in the dev branch. |
I just started getting heaps of warnings in vscode, looking into the vscode debug tool, it's running
C:\Program Files\Java\jdk1.8.0_162\bin\java.exe -jar c:\work\CFLint-1.4.0-all.jar -stdin s:\testGateway.cfc -q -e -json -stdout -configfile c:\work.cflintrc
trying this on command line, I get the following error.
also it just hangs and doesn't exit, requiring a to ctrl-c.
this configuration previously worked with the 1.3.x versions
Unable to load config file c:\work.cflintrc. com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "rule" (class com.cflint.config.CFLintPluginInfo), not marked as ignorable (2 known properties: "ruleGroup", "ruleImpl"])
at [Source: java.io.FileInputStream@59ec2012; line: 2, column: 13] (through reference chain: com.cflint.config.CFLintPluginInfo["rule"])
{ "rule" : [ ], "excludes": [{"code":"ARGUMENT_ALLCAPS_NAME"},{"code":"ARGUMENT_HAS_PREFIX_OR_POSTFIX"},{"code":"ARGUMENT_INVALID_NAME"},{"code":"ARGUMENT_IS_TEMPORARY"}, {"code":"ARGUMENT_TOO_LONG"},{"code":"ARGUMENT_TOO_SHORT"},{"code":"ARG_DEFAULT_MISSING"},{"code":"ARG_HINT_MISSING"},{"code":"ARG_HINT_MISSING_SCRIPT"}, {"code":"ARG_TYPE_ANY"},{"code":"ARG_TYPE_MISSING"},{"code":"AVOID_USING_ARRAYNEW"},{"code":"AVOID_USING_CFABORT_TAG"},{"code":"AVOID_USING_CFDUMP_TAG"}, {"code":"AVOID_USING_CFINCLUDE_TAG"},{"code":"AVOID_USING_CFMODULE_TAG"},{"code":"AVOID_USING_CREATEOBJECT"},{"code":"AVOID_USING_DEBUG_ATTR"}, {"code":"AVOID_USING_ISDATE"},{"code":"AVOID_USING_STRUCTNEW"},{"code":"COMPONENT_HINT_MISSING"},{"code":"COMPONENT_INVALID_NAME"}, {"code":"COMPONENT_TOO_LONG"},{"code":"COMPONENT_TOO_WORDY"},{"code":"EXCESSIVE_ARGUMENTS"},{"code":"EXCESSIVE_FUNCTIONS"}, {"code":"EXCESSIVE_COMPONENT_LENGTH"},{"code":"EXCESSIVE_FUNCTION_LENGTH"}, {"code":"UNUSED_METHOD_ARGUMENT"}, {"code":"SQL_SELECT_STAR"}, {"code":"EXPLICIT_BOOLEAN_CHECK"},{"code":"FUNCTION_HINT_MISSING"},{"code":"FUNCTION_TOO_COMPLEX"}, {"code":"FUNCTION_TYPE_ANY"},{"code":"FUNCTION_TYPE_MISSING"},{"code":"GLOBAL_LITERAL_VALUE_USED_TOO_OFTEN"},{"code":"GLOBAL_VAR"}, {"code":"LOCAL_LITERAL_VALUE_USED_TOO_OFTEN"},{"code":"METHOD_INVALID_NAME"},{"code":"METHOD_IS_TEMPORARY"},{"code":"METHOD_TOO_LONG"}, {"code":"METHOD_TOO_WORDY"},{"code":"NESTED_CFOUTPUT"},{"code":"OUTPUT_ATTR"},{"code":"PACKAGE_CASE_MISMATCH"},{"code":"STRUCT_ARRAY_NOTATION"}, {"code":"UNQUOTED_STRUCT_KEY"},{"code":"VAR_ALLCAPS_NAME"},{"code":"VAR_HAS_PREFIX_OR_POSTFIX"},{"code":"VAR_INVALID_NAME"}, {"code":"VAR_IS_TEMPORARY"},{"code":"VAR_TOO_LONG"},{"code":"VAR_TOO_SHORT"},{"code":"VAR_TOO_WORDY"}, {"code":"SCOPE_ALLCAPS_NAME"}, {"code":"AVOID_USING_ABORT"}, {"code":"STRUCT_ARRAY_NOTATION"}, "includes" : [ ], "inheritParent" : false }
The text was updated successfully, but these errors were encountered: