├── settings.gradle
├── src
├── test
│ ├── resources
│ │ └── com
│ │ │ └── cflint
│ │ │ ├── tests
│ │ │ ├── EmptyFile
│ │ │ │ ├── foo.cfc
│ │ │ │ ├── fooWS.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── foo.expected.txt
│ │ │ │ └── fooWS.expected.txt
│ │ │ ├── ComponentNameChecker
│ │ │ │ ├── foo.cfc
│ │ │ │ ├── foofoo.cfc
│ │ │ │ ├── veryLongComponentName.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ └── foo.expected.txt
│ │ │ ├── CFDebugAttributeChecker
│ │ │ │ ├── cfquery5_490.cfc
│ │ │ │ ├── cfquery3_489.cfc
│ │ │ │ ├── cfquery1_487.cfc
│ │ │ │ ├── cfquery2_488.cfc
│ │ │ │ ├── cfquery4_490.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── cfquery3_489.expected.txt
│ │ │ │ ├── cfquery4_490.expected.txt
│ │ │ │ ├── cfquery5_490.expected.txt
│ │ │ │ ├── cfquery1_487.expected.txt
│ │ │ │ └── cfquery2_488.expected.txt
│ │ │ ├── ParseError
│ │ │ │ ├── attr_space_536.cfm
│ │ │ │ ├── queryparam_569.cfc
│ │ │ │ ├── npe_595.cfm
│ │ │ │ ├── outside_output_359.cfm
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── keys_599.cfm
│ │ │ │ ├── ordered_Struct_534.cfm
│ │ │ │ ├── singlequote_359.cfm
│ │ │ │ ├── cfloop_359.cfm
│ │ │ │ ├── case_623.cfm
│ │ │ │ ├── case_623.expected.txt
│ │ │ │ ├── npe_595.expected.txt
│ │ │ │ ├── attr_space_536.expected.txt
│ │ │ │ ├── cfloop_359.expected.txt
│ │ │ │ ├── fileoutput_359.expected.txt
│ │ │ │ ├── keys_599.expected.txt
│ │ │ │ ├── nestedcomments_629.expected.txt
│ │ │ │ ├── outside_output_359.expected.txt
│ │ │ │ ├── singlequote_359.expected.txt
│ │ │ │ ├── queryparam_569.expected.txt
│ │ │ │ ├── nestedcomments_629.cfc
│ │ │ │ ├── ordered_Struct_534.expected.txt
│ │ │ │ └── fileoutput_359.cfm
│ │ │ ├── PackageCase
│ │ │ │ ├── packagecase_nok.cfc
│ │ │ │ ├── packagecase_ok.cfc
│ │ │ │ ├── packagecase_nokC.cfc.2
│ │ │ │ ├── packagecase_nok.cfc.2
│ │ │ │ ├── packagecase_ok.cfc.2
│ │ │ │ ├── packagecase_nokC.cfc
│ │ │ │ ├── packagecase_nok_b.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ └── packagecase_ok.expected.txt
│ │ │ ├── Parsing
│ │ │ │ ├── import_359.cfc
│ │ │ │ ├── inlinearray_650.cfc
│ │ │ │ ├── encodeing_580.cfc
│ │ │ │ ├── parsing251.cfc
│ │ │ │ ├── customerror_647.cfc
│ │ │ │ ├── interface.cfc
│ │ │ │ ├── parsing_346.cfc
│ │ │ │ ├── include_96.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── npe_408.cfc
│ │ │ │ ├── npe_408.expected.txt
│ │ │ │ ├── Underscore.expected.txt
│ │ │ │ ├── import_359.expected.txt
│ │ │ │ ├── include_506.expected.txt
│ │ │ │ ├── include_96.expected.txt
│ │ │ │ ├── interface.expected.txt
│ │ │ │ ├── parsing251.expected.txt
│ │ │ │ ├── parsing_346.expected.txt
│ │ │ │ ├── customerror_647.expected.txt
│ │ │ │ ├── encodeing_580.expected.txt
│ │ │ │ ├── inlinearray_650.expected.txt
│ │ │ │ ├── columns
│ │ │ │ │ ├── .cflintrc
│ │ │ │ │ └── test.cfc
│ │ │ │ ├── include_506.cfm
│ │ │ │ ├── parsing253.cfm
│ │ │ │ ├── Underscore.cfc
│ │ │ │ └── parsing253.expected.txt
│ │ │ ├── VariableNameChecker
│ │ │ │ ├── query_naming_blank_601.cfc
│ │ │ │ ├── thisTag_479.cfc
│ │ │ │ ├── query_naming_hash_601.cfc
│ │ │ │ ├── componentID_499.cfc
│ │ │ │ ├── 532_naming.cfc
│ │ │ │ ├── config2
│ │ │ │ │ ├── .cflintrc
│ │ │ │ │ └── length_314.cfc
│ │ │ │ ├── config
│ │ │ │ │ └── length_314.cfc
│ │ │ │ ├── sample_239.cfc
│ │ │ │ ├── cftry.cfc
│ │ │ │ ├── local_537.cfm
│ │ │ │ ├── 532_naming.expected.txt
│ │ │ │ ├── sample_239.expected.txt
│ │ │ │ ├── componentID_499.expected.txt
│ │ │ │ ├── leaderboard_450.expected.txt
│ │ │ │ ├── sample1_635.expected.txt
│ │ │ │ ├── thisTag_479.expected.txt
│ │ │ │ ├── query_naming_blank_601.expected.txt
│ │ │ │ ├── sample1_228.cfc
│ │ │ │ ├── leaderboard_450.cfc
│ │ │ │ ├── sample1_635.cfc
│ │ │ │ ├── scope_608.cfc
│ │ │ │ ├── task_476.cfc
│ │ │ │ └── .cflintrc
│ │ │ ├── ExcludesAll
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── someErrors.expected.txt
│ │ │ │ └── someErrors.cfc
│ │ │ ├── StructKeyChecker
│ │ │ │ ├── top_level_542.cfc
│ │ │ │ ├── quotedStructKey2.cfc
│ │ │ │ ├── unquotedStructKey.cfc
│ │ │ │ ├── unquotedStructKeyNested.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── quotedStructKey2.expected.txt
│ │ │ │ ├── top_level_542.expected.txt
│ │ │ │ └── dotNotation_405.cfc
│ │ │ ├── FunctionCollision
│ │ │ │ ├── function_x.cfc
│ │ │ │ ├── function_abs.cfc
│ │ │ │ ├── function_abs_cfml.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ └── function_x.expected.txt
│ │ │ ├── WriteDumpChecker
│ │ │ │ ├── output_hash_625.cfc
│ │ │ │ ├── script_hash_625.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── writeDump.cfc
│ │ │ │ └── writeDump.expected.txt
│ │ │ ├── UnusedArgument
│ │ │ │ ├── UnusedArgument_Case_545.cfc
│ │ │ │ ├── ReturnArg_573.cfc
│ │ │ │ ├── FunctionArg_550.cfc
│ │ │ │ ├── UnusedArgument_227.cfc
│ │ │ │ ├── UnusedArgument_Case_234.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── FunctionArg_550.expected.txt
│ │ │ │ ├── UnusedArg_418.expected.txt
│ │ │ │ ├── UnusedArg_573_b.expected.txt
│ │ │ │ ├── UnusedArg_593.expected.txt
│ │ │ │ ├── UnusedArgument_152.expected.txt
│ │ │ │ ├── UnusedArgument_227.expected.txt
│ │ │ │ ├── UnusedArgument_257.expected.txt
│ │ │ │ ├── UnusedArgument_257b.expected.txt
│ │ │ │ ├── UnusedArgument_Case_234.expected.txt
│ │ │ │ ├── UnusedArg_573_b.cfc
│ │ │ │ ├── UnusedArgument_257b.cfc
│ │ │ │ ├── UnusedArgument_257.cfc
│ │ │ │ ├── UnusedArgument_152.cfc
│ │ │ │ ├── UnusedArg_418.cfc
│ │ │ │ ├── UnusedArg_593.cfc
│ │ │ │ ├── UnusedArgument_152b.cfc
│ │ │ │ └── ReturnArg_573.expected.txt
│ │ │ ├── FunctionType
│ │ │ │ ├── Any
│ │ │ │ │ ├── functionany1.cfc
│ │ │ │ │ ├── functionmissing1.cfc
│ │ │ │ │ ├── .cflintrc
│ │ │ │ │ └── functionmissing1.expected.txt
│ │ │ │ └── Missing
│ │ │ │ │ ├── .cflintrc
│ │ │ │ │ ├── component_500.cfc
│ │ │ │ │ └── component_500.expected.txt
│ │ │ ├── VarScoper
│ │ │ │ ├── local_256.cfc
│ │ │ │ ├── fpositive
│ │ │ │ │ ├── cfthread.cfc
│ │ │ │ │ ├── query.cfc
│ │ │ │ │ ├── expectation.cfc
│ │ │ │ │ ├── .cflintrc
│ │ │ │ │ ├── http.cfc
│ │ │ │ │ ├── tag.cfc
│ │ │ │ │ ├── cfthread.expected.txt
│ │ │ │ │ ├── http.expected.txt
│ │ │ │ │ ├── http2.expected.txt
│ │ │ │ │ ├── mail.expected.txt
│ │ │ │ │ ├── query.expected.txt
│ │ │ │ │ ├── tag.expected.txt
│ │ │ │ │ ├── constructor.expected.txt
│ │ │ │ │ ├── expectation.expected.txt
│ │ │ │ │ ├── mail.cfc
│ │ │ │ │ ├── http2.cfc
│ │ │ │ │ └── constructor.cfc
│ │ │ │ ├── cftag_483_1.cfc
│ │ │ │ ├── cftag_483_3.cfc
│ │ │ │ ├── for_each.cfc
│ │ │ │ ├── property_246.cfc
│ │ │ │ ├── 482_mail.cfc
│ │ │ │ ├── cfcookie_518.cfc
│ │ │ │ ├── structureKeys_197.cfc
│ │ │ │ ├── 482_cfmail.cfc
│ │ │ │ ├── cftag_483_2.cfc
│ │ │ │ ├── cfloop_index_413.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── 553_cfml_catch.cfc
│ │ │ │ ├── scripttags
│ │ │ │ │ ├── .cflintrc
│ │ │ │ │ └── cfhttp.cfc
│ │ │ │ ├── cfqueryparam_569.cfc
│ │ │ │ ├── lock_488.cfc
│ │ │ │ ├── pureScript.cfc
│ │ │ │ ├── namedArgs.cfc
│ │ │ │ ├── 482_cfmail.expected.txt
│ │ │ │ ├── 482_mail.expected.txt
│ │ │ │ ├── 553_catch.expected.txt
│ │ │ │ ├── local_256.expected.txt
│ │ │ │ ├── lock_488.expected.txt
│ │ │ │ ├── namedArgs.expected.txt
│ │ │ │ ├── testParse.expected.txt
│ │ │ │ ├── 553_cfml_catch.expected.txt
│ │ │ │ ├── cfcookie_518.expected.txt
│ │ │ │ ├── cftag_483_1.expected.txt
│ │ │ │ ├── cftag_483_3.expected.txt
│ │ │ │ ├── property_246.expected.txt
│ │ │ │ ├── scopesUse_404.expected.txt
│ │ │ │ ├── structureKeys_197.expected.txt
│ │ │ │ ├── structure_keys_197.expected.txt
│ │ │ │ ├── cfdocumentsection_462.expected.txt
│ │ │ │ ├── cftry.cfc
│ │ │ │ ├── structassignment.cfc
│ │ │ │ ├── structure_keys_197.cfc
│ │ │ │ ├── scopesUse_404.cfc
│ │ │ │ ├── structUse_404.cfc
│ │ │ │ ├── structUse2_404.cfc
│ │ │ │ ├── cfdocumentsection_462.cfc
│ │ │ │ ├── cfquery_scoper.cfc
│ │ │ │ ├── scriptSample186.cfc
│ │ │ │ ├── 553_catch.cfc
│ │ │ │ ├── testParse.cfc
│ │ │ │ ├── for_each.expected.txt
│ │ │ │ ├── pureScript.expected.txt
│ │ │ │ ├── cfquery_scoper.expected.txt
│ │ │ │ ├── structassignment.expected.txt
│ │ │ │ └── cftag_483_2.expected.txt
│ │ │ ├── Includes
│ │ │ │ ├── Template.cfm
│ │ │ │ ├── .cflintrc
│ │ │ │ └── Header.cfm
│ │ │ ├── BuiltInFunctionChecker
│ │ │ │ ├── isDate1.cfm
│ │ │ │ ├── isDate2.cfm
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── isDate1.expected.txt
│ │ │ │ └── isDate2.expected.txt
│ │ │ ├── UnusedVariable
│ │ │ │ ├── caselessVariable_242.cfc
│ │ │ │ ├── simpleUnused.cfc
│ │ │ │ ├── local_nested_592.cfc
│ │ │ │ ├── local_simple_592.cfc
│ │ │ │ ├── transaction_497.cfc
│ │ │ │ ├── local_leftuse_592.cfc
│ │ │ │ ├── forLoop_227.cfc
│ │ │ │ ├── forLoop_211.cfc
│ │ │ │ ├── local_339.cfc
│ │ │ │ ├── newobj_640.cfc
│ │ │ │ ├── local_simple_cfml_593.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── cfqueryname_339.cfc
│ │ │ │ ├── loop_list_339.cfc
│ │ │ │ ├── cfquery_339.cfc
│ │ │ │ ├── location_339.cfc
│ │ │ │ ├── cflog_339.expected.txt
│ │ │ │ ├── cookie_339.expected.txt
│ │ │ │ ├── local_339.expected.txt
│ │ │ │ ├── loop_631.cfc
│ │ │ │ ├── loop_631.expected.txt
│ │ │ │ ├── newobj_640.expected.txt
│ │ │ │ ├── cfloopname_339.expected.txt
│ │ │ │ ├── cfoutput_464.expected.txt
│ │ │ │ ├── cfquery_339.expected.txt
│ │ │ │ ├── cfqueryname_339.expected.txt
│ │ │ │ ├── forLoop_211.expected.txt
│ │ │ │ ├── forLoop_227.expected.txt
│ │ │ │ ├── location_339.expected.txt
│ │ │ │ ├── loop_list_339.expected.txt
│ │ │ │ ├── sampleQuery_577.expected.txt
│ │ │ │ ├── transaction_497.expected.txt
│ │ │ │ ├── caselessVariable_242.expected.txt
│ │ │ │ ├── local_leftuse_592.expected.txt
│ │ │ │ ├── local_nested_592.expected.txt
│ │ │ │ ├── cookie_339.cfc
│ │ │ │ ├── cflog_339.cfc
│ │ │ │ ├── cfloopname_339.cfc
│ │ │ │ ├── cfoutput_464.cfc
│ │ │ │ ├── httpparam_593.cfc
│ │ │ │ ├── while_465.cfc
│ │ │ │ ├── UnusedVar_593.cfc
│ │ │ │ ├── sampleQuery_577.cfc
│ │ │ │ ├── simpleUnused.expected.txt
│ │ │ │ ├── while_465.expected.txt
│ │ │ │ └── httpparam_593.expected.txt
│ │ │ ├── MissingDeclaration
│ │ │ │ ├── array_used.cfc
│ │ │ │ ├── collect_used.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── array_used.expected.txt
│ │ │ │ └── collect_used.expected.txt
│ │ │ ├── Naming
│ │ │ │ ├── NewComponent_472.cfc
│ │ │ │ ├── nameEndsInNumberScript.cfc
│ │ │ │ ├── tempVar.cfc
│ │ │ │ ├── Inconsistent_544.cfc
│ │ │ │ ├── Inconsistent_545_cfml.cfm
│ │ │ │ ├── NewComponent_472.expected.txt
│ │ │ │ ├── nameEndsInNumberScript.expected.txt
│ │ │ │ ├── .cflintrc
│ │ │ │ └── tempVar.expected.txt
│ │ │ ├── QueryNewChecker
│ │ │ │ ├── .cflintrc
│ │ │ │ └── querynew_549.cfc
│ │ │ ├── CFIncludeChecker
│ │ │ │ ├── cfinclude1.cfc
│ │ │ │ ├── lonelyCfinclude.cfc
│ │ │ │ └── .cflintrc
│ │ │ ├── MissingSemiColon
│ │ │ │ ├── missingSemis1.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ └── missingSemis1.expected.txt
│ │ │ ├── Ignores
│ │ │ │ ├── ignoreLine1.cfc
│ │ │ │ ├── ignoreMultiLine.cfc
│ │ │ │ ├── ignoreLineMessageUnmatched.cfc
│ │ │ │ ├── ignoreMultiLineComponent.cfc
│ │ │ │ ├── ignoreLineMessage1.cfc
│ │ │ │ ├── args
│ │ │ │ │ ├── .cflintrc
│ │ │ │ │ ├── test_497.expected.txt
│ │ │ │ │ └── test_497.cfc
│ │ │ │ ├── ignoreMultiLine2.cfc
│ │ │ │ ├── ignoreMultiLineComponent2.cfc
│ │ │ │ ├── ignore_489.cfc
│ │ │ │ ├── ignoreLine1.expected.txt
│ │ │ │ ├── ignore_467.expected.txt
│ │ │ │ ├── ignore_489.expected.txt
│ │ │ │ ├── ignoreCFMLAny1.expected.txt
│ │ │ │ ├── ignoreCFMLAny4.expected.txt
│ │ │ │ ├── ignoreCFMLAny5.expected.txt
│ │ │ │ ├── ignoreMultiLine2.expected.txt
│ │ │ │ ├── ignoreCFMLAny3_Nested.expected.txt
│ │ │ │ ├── ignoreCFMLComponent2.expected.txt
│ │ │ │ ├── ignoreCFMLFunction.expected.txt
│ │ │ │ ├── ignoreLineMessage1.expected.txt
│ │ │ │ ├── ignoreMultiLineComponent2.expected.txt
│ │ │ │ ├── ignoreCFMLComponent.cfc
│ │ │ │ ├── ignore_467.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── ignoreCFMLAny1.cfc
│ │ │ │ ├── ignoreCFMLFunction.cfc
│ │ │ │ ├── ignoreCFMLComponent2.cfc
│ │ │ │ ├── ignoreCFMLAny2.cfc
│ │ │ │ ├── ignoreCFMLAny3_Nested.cfc
│ │ │ │ ├── ignoreCFMLAny5.cfc
│ │ │ │ ├── ignoreMultiLine.expected.txt
│ │ │ │ ├── ignoreCFMLAny2.expected.txt
│ │ │ │ ├── ignoreCFMLComponent.expected.txt
│ │ │ │ ├── ignoreMultiLineComponent.expected.txt
│ │ │ │ └── ignoreLineMessageUnmatched.expected.txt
│ │ │ ├── CompareInsteadOfAssign
│ │ │ │ ├── Compare2.cfm
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── Compare1.cfm
│ │ │ │ └── Compare2.expected.txt
│ │ │ ├── Hints
│ │ │ │ ├── hints1.cfc
│ │ │ │ ├── hints2_hintattribute.cfc
│ │ │ │ ├── hints4_emptycomment.cfc
│ │ │ │ ├── arg_hints_missing.cfc
│ │ │ │ ├── hints5_comment.expected.txt
│ │ │ │ ├── arg_hints_missing.expected.txt
│ │ │ │ ├── hints3_hintannotation.cfc
│ │ │ │ ├── hints2_hintattribute.expected.txt
│ │ │ │ ├── hints3_hintannotation.expected.txt
│ │ │ │ ├── hints5_comment.cfc
│ │ │ │ └── .cflintrc
│ │ │ ├── ArgVarChecker
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── cfml_540.cfc
│ │ │ │ ├── cfc_540.cfc
│ │ │ │ ├── cfc_540.expected.txt
│ │ │ │ ├── cfc_540_b.expected.txt
│ │ │ │ ├── cfml_540.expected.txt
│ │ │ │ ├── implicitStructKey_478.expected.txt
│ │ │ │ ├── cfc_540_d.cfc
│ │ │ │ ├── cfc_540_b.cfc
│ │ │ │ ├── cfc_540_c.cfc
│ │ │ │ ├── implicitStructKey_478.cfc
│ │ │ │ ├── mixed_471.cfc
│ │ │ │ ├── cfc_540_c.expected.txt
│ │ │ │ ├── cfc_540_d.expected.txt
│ │ │ │ └── mixed_471.expected.txt
│ │ │ ├── MethodNameChecker
│ │ │ │ └── .cflintrc
│ │ │ ├── TooManyFunctionsChecker
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── excessive_cfml2.expected.txt
│ │ │ │ ├── excessive_cfscript2.expected.txt
│ │ │ │ ├── excessive_cfml2.cfc
│ │ │ │ ├── excessive_cfscript2.cfc
│ │ │ │ ├── excessive_cfml.cfc
│ │ │ │ └── excessive_cfscript.cfc
│ │ │ ├── LiteralChecker
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── literal_arraysort.expected.txt
│ │ │ │ ├── literal_arraysort.cfc
│ │ │ │ └── literal_checker_326.cfm
│ │ │ ├── Complexity
│ │ │ │ ├── ifelse.cfc
│ │ │ │ ├── ifelse.expected.txt
│ │ │ │ ├── .cflintrc
│ │ │ │ └── ifelseComplex.cfc
│ │ │ ├── Query
│ │ │ │ ├── cfquery_script_param_571_a.cfc
│ │ │ │ ├── cfquery_param_571_a.cfc
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── cfquery_param.expected.txt
│ │ │ │ ├── cfquery_param2.expected.txt
│ │ │ │ ├── cfquery_param_571_b.cfc
│ │ │ │ ├── cfquery_param_571_c.cfc
│ │ │ │ ├── cfquery_param_571_b.expected.txt
│ │ │ │ ├── cfquery_param_571_d.cfc
│ │ │ │ ├── cfquery_param_571_d.expected.txt
│ │ │ │ ├── cfquery_param.cfc
│ │ │ │ ├── cfquery_param3.cfc
│ │ │ │ ├── cfquery_param_case.cfc
│ │ │ │ └── cfquery_param2.cfc
│ │ │ ├── ArgVarConflict
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── mixedScopeExample.expected.txt
│ │ │ │ └── mixedScopeExample.cfc
│ │ │ └── GlobalVarChecker
│ │ │ │ ├── .cflintrc
│ │ │ │ ├── cfcatch_tag.expected.txt
│ │ │ │ └── cfcatch_tag.cfc
│ │ │ ├── integration
│ │ │ ├── .gitignore
│ │ │ ├── test.cfc
│ │ │ ├── inherit
│ │ │ │ ├── test.cfc
│ │ │ │ └── .cflintrc
│ │ │ ├── standalone
│ │ │ │ ├── test.cfc
│ │ │ │ └── .cflintrc
│ │ │ ├── .cflintrc
│ │ │ ├── output_194.expected.json
│ │ │ └── output.rulegroup.expected.json
│ │ │ └── test.properties
│ └── java
│ │ └── com
│ │ └── cflint
│ │ └── tools
│ │ └── TestCFLintDoc.java
└── main
│ ├── resources
│ ├── com
│ │ └── cflint
│ │ │ └── cflint.properties
│ ├── CFLint-logo.jpg
│ ├── logos
│ │ ├── largelogo.png
│ │ ├── logo24x24.png
│ │ └── CFLint-logo.png
│ ├── scripts
│ │ ├── getLatestTag.sh
│ │ └── writeChangelog.sh
│ └── changelog.mustache
│ ├── config
│ ├── cflintexclude.json
│ └── log4j.xml
│ ├── java
│ └── com
│ │ └── cflint
│ │ ├── plugins
│ │ ├── CFLintSet.java
│ │ ├── exceptions
│ │ │ └── CFLintExceptionListener.java
│ │ ├── core
│ │ │ ├── ConfigError.java
│ │ │ ├── AbortChecker.java
│ │ │ ├── OutputParmMissing.java
│ │ │ ├── ScriptTagChecker.java
│ │ │ ├── TypedQueryNew.java
│ │ │ ├── BuiltInFunctionChecker.java
│ │ │ ├── SelectStarChecker.java
│ │ │ └── CFXTagChecker.java
│ │ └── CFLintScanner.java
│ │ ├── main
│ │ └── CFLintMain.java
│ │ ├── listeners
│ │ └── ScanProgressListener.java
│ │ ├── xml
│ │ ├── CFLintResultMarshaller.java
│ │ └── MarshallerException.java
│ │ ├── tools
│ │ └── ObjectEquals.java
│ │ ├── Version.java
│ │ ├── exception
│ │ ├── CFLintScanException.java
│ │ └── CFLintConfigurationException.java
│ │ ├── Bugs.java
│ │ └── Levels.java
│ ├── assembly
│ └── archive.xml
│ └── ant
│ └── build.xml
├── logo
├── logo.ai
├── logo.eps
└── logo.png
├── .externalToolBuilders
└── .gitignore
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .editorconfig
├── gradle.properties
├── .gitignore
├── Dockerfile
├── .github
└── workflows
│ └── gradle.yml
└── deploy.gradle
/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'CFLint'
2 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/EmptyFile/foo.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/logo/logo.ai:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/logo/logo.ai
--------------------------------------------------------------------------------
/.externalToolBuilders/.gitignore:
--------------------------------------------------------------------------------
1 | /org.eclipse.jdt.core.javabuilder.launch
2 |
--------------------------------------------------------------------------------
/logo/logo.eps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/logo/logo.eps
--------------------------------------------------------------------------------
/logo/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/logo/logo.png
--------------------------------------------------------------------------------
/src/main/resources/com/cflint/cflint.properties:
--------------------------------------------------------------------------------
1 | allowedextensions=.cfm,.cfc
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ComponentNameChecker/foo.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/EmptyFile/fooWS.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/main/config/cflintexclude.json:
--------------------------------------------------------------------------------
1 | [
2 | {"function":"init", "code":"MISSING_VAR"}
3 | ]
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery5_490.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ComponentNameChecker/foofoo.cfc:
--------------------------------------------------------------------------------
1 | component name="foo2"{
2 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/attr_space_536.cfm:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery3_489.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_nok.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_ok.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery1_487.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery2_488.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery4_490.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_nokC.cfc.2:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/src/main/resources/CFLint-logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/src/main/resources/CFLint-logo.jpg
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/integration/.gitignore:
--------------------------------------------------------------------------------
1 | /output.json
2 | /output.rulegroup.json
3 | /output_194.json
4 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/import_359.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/inlinearray_650.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | if (!['all'].foo()) {
3 | }
4 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/query_naming_blank_601.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ExcludesAll/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "includes" : [ { } ],
3 | "inheritParent" : false
4 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/encodeing_580.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | pageencoding "UTF-8";
3 | //...
4 | }
--------------------------------------------------------------------------------
/src/main/resources/logos/largelogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/src/main/resources/logos/largelogo.png
--------------------------------------------------------------------------------
/src/main/resources/logos/logo24x24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/src/main/resources/logos/logo24x24.png
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/queryparam_569.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/parsing251.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function foo() {
3 | return bar
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/StructKeyChecker/top_level_542.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | variables.CFLINT_VERSION = "1.3.0";
3 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/thisTag_479.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/main/resources/logos/CFLint-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cflint/CFLint/HEAD/src/main/resources/logos/CFLint-logo.png
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionCollision/function_x.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public function x(){
4 | x=123;
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/WriteDumpChecker/output_hash_625.cfc:
--------------------------------------------------------------------------------
1 |
2 | #writeDump(now(), 'HH:mm:ss')#
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/WriteDumpChecker/script_hash_625.cfc:
--------------------------------------------------------------------------------
1 |
2 | #writeDump(now(), 'HH:mm:ss')#
3 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | insert_final_newline = false
6 | indent_style = space
7 | indent_size = 4
8 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_nok.cfc.2:
--------------------------------------------------------------------------------
1 |
2 | new tests.packagecase.packagecase_nok();
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_ok.cfc.2:
--------------------------------------------------------------------------------
1 |
2 | new tests.PackageCase.packagecase_ok();
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/npe_595.cfm:
--------------------------------------------------------------------------------
1 |
2 | function bar(text) {
3 | var foo;
4 | }
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/outside_output_359.cfm:
--------------------------------------------------------------------------------
1 | #foo#
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_Case_545.cfc:
--------------------------------------------------------------------------------
1 | component{
2 |
3 | function x(aRg1,Arg2){
4 | }
5 |
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionCollision/function_abs.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public any function abs(){
4 | x=123;
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionType/Any/functionany1.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public any function x(){
4 | x=123;
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionType/Any/functionmissing1.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public function x(){
4 | x=123;
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_nokC.cfc:
--------------------------------------------------------------------------------
1 |
2 | new tests.packagecase.packagecase_nokC();
3 |
4 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/customerror_647.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | try {
3 | } catch (org.example.whateverError) {
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/local_256.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function ffoo(){
3 | local.foo = 123;
4 | foo = 123;
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/query_naming_hash_601.cfc:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Includes/Template.cfm:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/cfthread.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | cfthread.myThread1.foo=1;
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/BuiltInFunctionChecker/isDate1.cfm:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | var x = isDate(1.5);
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/interface.cfc:
--------------------------------------------------------------------------------
1 | interface {
2 | /**
3 | * component
4 | */
5 | any function foo(required any bar);
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/caselessVariable_242.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo() {
3 | var bar = 1;
4 | return Bar;
5 | }
6 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | #Tue, 06 Oct 2015 20:08:05 -0600
2 | group=com.github.cflint
3 | version=1.5.0-SNAPSHOT
4 | name=CFLint
5 | release=false
6 | snapshot=false
7 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MissingDeclaration/array_used.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | addressComponents.streetName = "Main";
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MissingDeclaration/collect_used.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | sampleCollection[7] = "Hello, World";
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/simpleUnused.cfc:
--------------------------------------------------------------------------------
1 | component{
2 |
3 | public numeric function save( ) {
4 | var foo = 123;
5 | }
6 |
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cftag_483_1.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init() {
4 | throw message="";
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/ReturnArg_573.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | public string function myFunction(baz,bar){
3 | return baz+1;
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cftag_483_3.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init() {
4 | cfthrow(message="");
5 | }
6 | }
--------------------------------------------------------------------------------
/src/main/resources/scripts/getLatestTag.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | git tag -l --format="%(creatordate:iso8601)|%(refname:short)" | sort -r | head -n 1 | awk -F'|' '{print $2}'
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Includes/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "includes" : [ {"code" : "GLOBAL_LITERAL_VALUE_USED_TOO_OFTEN"}
3 | ],
4 | "inheritParent" : false
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/integration/test.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | public string function getStringFromStruct(any interestingVar) {
3 | return interestingVar;
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionCollision/function_abs_cfml.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionType/Missing/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "includes" : [ {
3 | "code" : "FUNCTION_TYPE_MISSING"
4 | } ],
5 | "inheritParent" : false
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Naming/NewComponent_472.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function test() {
3 | var theQuery= new Query();
4 | var thePdf= new Pdf();
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/QueryNewChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "includes" : [ {
3 | "code" : "QUERYNEW_DUPLICATE_COLUMNS"
4 | } ],
5 | "inheritParent" : false
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/for_each.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function ffoo(any XSS){
3 | For (Fixeld in Arguments.XSS) {
4 | foo();
5 | }
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/query.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | var qGetSites = new Query(datasource="...", sql="...");
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFIncludeChecker/cfinclude1.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MissingSemiColon/missingSemis1.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function test() {
3 | name_1
4 | name2 = "Smith"
5 | last.name1 = "Fred"
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/FunctionArg_550.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | public string function myFunction(function doSomething){
3 | return doSomething();
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/componentID_499.cfc:
--------------------------------------------------------------------------------
1 | component{
2 |
3 | function foo(){
4 | local.fooBar = new path.to.Component();
5 | }
6 | }
--------------------------------------------------------------------------------
/src/main/resources/scripts/writeChangelog.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | $1 -u cflint -p CFLint --token $2 --output CHANGELOG.md --base CHANGELOG.md --no-unreleased --since-tag $3 --header-label
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/integration/inherit/test.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | public string function getStringFromStruct(any interestingVar) {
3 | return interestingVar;
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/integration/standalone/test.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | public string function getStringFromStruct(any interestingVar) {
3 | return interestingVar;
4 | }
5 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFIncludeChecker/lonelyCfinclude.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreLine1.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public void function function1() {
4 | someVar = ''; // cflint ignore:line
5 | }
6 |
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/QueryNewChecker/querynew_549.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | var q = QueryNew("x,y,Y,z");
4 | var q2 = QueryNew("x,y,z");
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare2.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 | y = x == 2;
4 | z = x EQ 2;
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints1.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public void function function1(arg1, arg2) hint="test hint attribute"{
4 | someVar = '';
5 | }
6 |
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Naming/nameEndsInNumberScript.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function test() {
3 | name_1 = "Fred";
4 | name2 = "Smith";
5 | last.name1 = "Fred";
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/StructKeyChecker/quotedStructKey2.cfc:
--------------------------------------------------------------------------------
1 | //compliant
2 | component{
3 | function x(){
4 | var myStruct = {
5 | "myKey" = "myValue"
6 | };
7 | }
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/property_246.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | property name="foo" type="string";
3 |
4 | public void function bar() {
5 | foo = "baz";
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/parsing_346.cfc:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/StructKeyChecker/unquotedStructKey.cfc:
--------------------------------------------------------------------------------
1 | // not compliant
2 | component{
3 | function x(){
4 | var myStruct = {
5 | myKey = "myValue"
6 | };
7 | }
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_nested_592.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function safetext(text) {
3 | local.foo = {};
4 | local.foo2 = '1';
5 | baz(foo[foo2]);
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "PARSE_ERROR"
6 | } ],
7 | "inheritParent" : false
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_simple_592.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function bar(text) {
3 | local.foo="";
4 | local.foo2 = "";
5 | local.foo3 = foo2;
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/transaction_497.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | var foo = "";
4 | transaction {
5 | foo = 1;
6 | bar(foo);
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/482_mail.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function test () {
3 | mail from="test@test.de", to="test@test.de" subject="#subjectText#" type="html"{}
4 | }
5 | }
--------------------------------------------------------------------------------
/src/main/java/com/cflint/plugins/CFLintSet.java:
--------------------------------------------------------------------------------
1 | package com.cflint.plugins;
2 |
3 | import com.cflint.CFLint;
4 |
5 | public interface CFLintSet {
6 |
7 | void setCFLint(CFLint cflint);
8 | }
9 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionType/Missing/component_500.cfc:
--------------------------------------------------------------------------------
1 | component{
2 |
3 | public path.to.Component function cflintTest(){
4 | return new path.to.Component();
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/keys_599.cfm:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/ordered_Struct_534.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreMultiLine.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | /*
4 | Test!
5 | */
6 | public void function function1() {
7 | someVar = '';
8 | }
9 |
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MissingSemiColon/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "MISSING_SEMI"
6 | } ],
7 | "inheritParent" : false
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_nok_b.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CreateObject("component", "tests.packagecase.packagecase_nok_b");
5 |
6 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_leftuse_592.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function safetext(text) {
3 | local.foo = {};
4 | local.foo2 = '1';
5 | foo[foo2]=1;
6 | baz(foo);
7 | }
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cfcookie_518.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/structureKeys_197.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public void function function1() {
4 | var testStructure = {
5 | testKey = "testValue"
6 | };
7 | }
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "includes" : [ {
3 | "code" : "ARG_VAR_MIXED"
4 | },{
5 | "code" : "ARG_VAR_CONFLICT"
6 | } ],
7 | "inheritParent" : false
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreLineMessageUnmatched.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public void function function1() {
4 | someVar = ''; // cflint ignore:OTHERCODE,OTHERCODE2
5 | }
6 |
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreMultiLineComponent.cfc:
--------------------------------------------------------------------------------
1 | /*
2 | Test!
3 | */
4 | component {
5 |
6 | public void function function1() {
7 | someVar = '';
8 | }
9 |
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MissingDeclaration/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "MISSING_DECLARATION"
6 | } ],
7 | "inheritParent" : false
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Naming/tempVar.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function foo() {
3 | var tempStruct = {};
4 | doSomething(tempStruct);
5 | tempStruct.foo = "bar";
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/482_cfmail.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function test () {
3 | cfmail( from="test@test.de", to="test@test.de" subject="#subjectText#" type="html" ){
4 | }
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cftag_483_2.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init() {
4 | cfwddx(action="fml2wddx", input="#attribs#", output="attribsWDDX");
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreLineMessage1.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public void function function1() {
4 | someVar = ''; // cflint ignore:OTHERCODE,MISSING_VAR,OTHERCODE2
5 | }
6 |
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MethodNameChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "METHOD_TOO_LONG"
6 | } ],
7 | "inheritParent" : false
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/include_96.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | public void function onRequest(required string targetPage) {
3 | include arguments.targetPage;
4 | return;
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_227.cfc:
--------------------------------------------------------------------------------
1 | component{
2 |
3 | function x(arg1,arg2){
4 | var foo = arguments.arg1.xyzzy;
5 | foo = arguments.arg2.test;
6 | }
7 |
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "includes" : [ {
3 | "code" : "PACKAGE_CASE_MISMATCH",
4 | "messageText" : null,
5 | "severity" : null
6 | } ],
7 | "inheritParent" : false
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/TooManyFunctionsChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "EXCESSIVE_FUNCTIONS"}
6 | ],
7 | "inheritParent" : false
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/BuiltInFunctionChecker/isDate2.cfm:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(d){
3 | if( d && (isDate(1.5))){
4 | return 123;
5 | };
6 | return 321;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/singlequote_359.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "MISSING_VAR"
6 | },
7 | { "code" : "PARSE_ERROR"} ],
8 | "inheritParent" : false
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints2_hintattribute.cfc:
--------------------------------------------------------------------------------
1 | component
2 | hint="test hint attribute"
3 | {
4 |
5 | public void function function1() hint="test hint attribute"{
6 | someVar = '';
7 | }
8 |
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints4_emptycomment.cfc:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | */
4 | component {
5 |
6 | /*
7 |
8 | */
9 | public void function function1() {
10 | someVar = '';
11 | }
12 |
13 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/cfloop_359.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/npe_408.cfc:
--------------------------------------------------------------------------------
1 |
2 | // Loop over each CSS pair.
3 | for (
4 | local.PairIterator = local.Pairs.Iterator() ;
5 | local.PairIterator.HasNext() ;
6 | ){
7 | }
8 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/forLoop_227.cfc:
--------------------------------------------------------------------------------
1 | component{
2 |
3 | public numeric function save( ) {
4 |
5 | var x = {};
6 | var a = local.x.foo;
7 | return a.foo;
8 | }
9 |
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Naming/Inconsistent_544.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | public string function ANOTHERMETHOD(){
3 | var FO = "Bar";
4 | local.TEST = "Foo";
5 | LOCAL.test = "FooBar";
6 | return LOCAL.FO;
7 | }
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/532_naming.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init() {
4 |
5 | if (urlScope.keyExists('id2') && isNumeric(urlScope.id2)) {
6 | route &= '/:id2';
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/LiteralChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "includes" : [
3 | {"code" : "LOCAL_LITERAL_VALUE_USED_TOO_OFTEN"}
4 | ,{"code" : "GLOBAL_LITERAL_VALUE_USED_TOO_OFTEN"}
5 | ],
6 | "inheritParent" : false
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/StructKeyChecker/unquotedStructKeyNested.cfc:
--------------------------------------------------------------------------------
1 | // not compliant
2 | component{
3 | function x(){
4 | var myStruct = {
5 | "myKey" = {
6 | mySubKey = "123"
7 | }
8 | };
9 | }
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/config2/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "inheritParent" : true,
3 | "parameters":
4 | {
5 | "VariableNameChecker.minLength": "4",
6 | "VariableNameChecker.maxLength": "15"
7 | }
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/config/length_314.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init() {
4 |
5 | var q12=123;
6 | if(1 eq 1){
7 | var asdfghjklasdfghj=10;
8 | }
9 | }
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/config2/length_314.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init() {
4 |
5 | var q12=123;
6 | if(1 eq 1){
7 | var asdfghjklasdfghj=10;
8 | }
9 | }
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/sample_239.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | this.ROOMRESERVATIONS.SINGLE = 1;
3 | this.ROOMRESERVATIONS.DOUBLE = 2;
4 |
5 | this.YES = 1;
6 | this.NO = 2;
7 |
8 | VARIABLE = 10;
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Naming/Inconsistent_545_cfml.cfm:
--------------------------------------------------------------------------------
1 |
2 | public string function ANOTHERMETHOD(){
3 | var FO = "Bar";
4 | local.TEST = "Foo";
5 | LOCAL.test = "FooBar";
6 | return LOCAL.FO;
7 | }
8 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/case_623.cfm:
--------------------------------------------------------------------------------
1 |
2 | function doSomething(id){
3 | switch (id){
4 | case -1:
5 | return "new";
6 | default:
7 | return "existing";
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cfloop_index_413.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfml_540.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Complexity/ifelse.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | public void function foo() {
3 | if (something) {
4 | doSomething();
5 | } else {
6 | doSomethingElse();
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/forLoop_211.cfc:
--------------------------------------------------------------------------------
1 | component{
2 |
3 | public numeric function save( ) {
4 |
5 | for (var key in values) {
6 | foo[key] = values[key];
7 | }
8 | return 'x';
9 | }
10 |
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_339.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | foo(local.stEditor)
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/newobj_640.cfc:
--------------------------------------------------------------------------------
1 | /**
2 | * Some function hint
3 | */
4 | public User function createUser()
5 | {
6 | var userName = "KamasamaK";
7 | var user = new User(userName);
8 |
9 | return user;
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/args/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "ARG_TYPE_MISSING"
6 | }, {
7 | "code" : "ARG_DEFAULT_MISSING"
8 | }],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_Case_234.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | public struct function onLoad(boolean test = false) output="false" {
3 | switch (true) {
4 | case true:
5 | if (arguments.test) {
6 | }
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "MISSING_VAR",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/EmptyFile/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "AVOID_EMPTY_FILES",
6 | "messageText" : null,
7 | "severity" : null
8 | }],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_script_param_571_a.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | var myQry = new Query(); // new query object
4 | myQry.setSQL("select * from app.books where bookid = #bookid# and id = #id#");
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_simple_cfml_593.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | local.foo="";
5 | local.foo2 = "";
6 | local.foo3 = foo2;
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/expectation.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | var oExpectation = new Expectation( spec=this, assertions=this.$assert, mockbox=this.$mockbox );
4 | thread.closures = arguments.closures;
5 | }
6 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/integration/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "FUNCTION_HINT_MISSING",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarConflict/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "ARG_VAR_CONFLICT",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/GlobalVarChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "GLOBAL_VAR",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreMultiLine2.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | /*
4 | Test!
5 | @CFLintIgnore SOMETHINGELSE,MISSING_VAR,ANOTHERTHINGTOIGNORE
6 | */
7 | public void function function1() {
8 | someVar = '';
9 | }
10 |
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/StructKeyChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [
5 | {"code" : "UNQUOTED_STRUCT_KEY" }
6 | ,{"code" : "STRUCT_ARRAY_NOTATION" }
7 | ],
8 | "inheritParent" : false
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "MISSING_VAR",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/test.properties:
--------------------------------------------------------------------------------
1 | #Change the AutoReplaceFailedTestResults to Y to pass the test and replace the expected results
2 | #AutoReplaceFailedTestResults=N
3 | #Uncomment the following line to run only the last updated test file.
4 | #RunSingleTest=*LAST
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [
5 | {"code" : "AVOID_USING_DEBUG_ATTR"}
6 | ,{"code" : "AVOID_USING_CFSETTING_DEBUG"}
7 | ],
8 | "inheritParent" : false
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionType/Any/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "FUNCTION_TYPE_ANY",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreMultiLineComponent2.cfc:
--------------------------------------------------------------------------------
1 | /*
2 | Test!
3 | @CFLintIgnore SOMETHINGELSE,MISSING_VAR,ANOTHERTHINGTOIGNORE
4 | */
5 | component {
6 |
7 | public void function function1() {
8 | someVar = '';
9 | }
10 |
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignore_489.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | my = structnew(); // cflint ignore:MISSING_VAR
5 | my.somekey = "";
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "UNUSED_LOCAL_VARIABLE",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cfqueryname_339.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/553_cfml_catch.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/scripttags/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "MISSING_VAR",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /cfbugs
2 | /bin
3 | /out
4 | /target
5 | /.classpath
6 | /.project
7 | /.settings/
8 | .gradle/**/*
9 | /build
10 | .idea/
11 | /.gradle/
12 | *.iml
13 | .scannerwork
14 | user.properties
15 | /cflint-result.html
16 | /cflint-result.json
17 | /cflint-result.txt
18 |
--------------------------------------------------------------------------------
/src/main/java/com/cflint/main/CFLintMain.java:
--------------------------------------------------------------------------------
1 | package com.cflint.main;
2 |
3 | import com.cflint.cli.CFLintCLI;
4 |
5 | /**
6 | *
7 | * Replaced by more aptly named cli.CFLintCLI
8 | *
9 | */
10 | @Deprecated()
11 | public class CFLintMain extends CFLintCLI{
12 | }
13 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/integration/standalone/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "FUNCTION_HINT_MISSING",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/BuiltInFunctionChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "AVOID_USING_ISDATE",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionCollision/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "FUNCTION_NAME_COLLISION",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "UNUSED_METHOD_ARGUMENT",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/loop_list_339.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cfqueryparam_569.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | or l1.googleID in ()
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/lock_488.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | function test () {
3 | var test = 1;
4 | var r = {};
5 | lock name="mylock" type="exclusive" timeout="20" throwontimeout=true {
6 | r.test = test;
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/pureScript.cfc:
--------------------------------------------------------------------------------
1 | component {
2 | property string username;
3 | property string password;
4 |
5 | public tagCFC function init(required string username, required string password) {
6 | someVar = '';
7 | return this;
8 | }
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/WriteDumpChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "AVOID_USING_WRITEDUMP",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFIncludeChecker/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "AVOID_USING_CFINCLUDE_TAG",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ComponentNameChecker/veryLongComponentName.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cfquery_339.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/location_339.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/http.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(resourceUri){
3 | var httpRequest = new HTTP(
4 | method = "get",
5 | url = ("http://api.foo.com" & resourceUri),
6 | charset = "utf-8"
7 | );
8 | }
9 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/tag.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | void function setCallerVars(data, row, getRow, columnNames){
3 | var currentRow=0;
4 | var rowData = getRow(data, row, columnNames);
5 | caller["currentRow"] = currentRow;
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/namedArgs.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function x(){
3 | var callRate = getServiceLocator().get("object.cps.CallRate");
4 | callRate.init(crid = CallRateId, newName = Name, newDescription = Description);
5 | ArrayAppend(result, callRate);
6 | }
7 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CompareInsteadOfAssign/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "COMPARE_INSTEAD_OF_ASSIGN",
6 | "messageText" : null,
7 | "severity" : null
8 | } ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/npe_408.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param_571_a.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SELECT *
5 | FROM Table
6 | WHERE column = '#foo#'
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/cftry.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init() {
4 |
5 | var q=123;
6 | if(1 eq 1){
7 | var z=123;
8 | var asdfghjklasdfghjklasdfghjklasdfghjklasdfghjklasdfghjkl=10;
9 | }
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Complexity/ifelse.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095021,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/arg_hints_missing.cfc:
--------------------------------------------------------------------------------
1 | /*
2 | @hint This is an annotation hint
3 | */
4 | component {
5 |
6 | /*
7 | @hint This is an annotation hint
8 | */
9 | public void function function1() {
10 | someVar = '';
11 | }
12 |
13 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints5_comment.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095024,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreLine1.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095025,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignore_467.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095026,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignore_489.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095026,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/case_623.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1574137774,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/npe_595.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568171026,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/Underscore.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/import_359.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/include_506.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/include_96.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/interface.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/parsing251.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/parsing_346.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095030,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "MISSING_VAR"
6 | }, {
7 | "code" : "QUERYPARAM_REQ"
8 | }, {
9 | "code" : "CFQUERYPARAM_REQ"
10 | }],
11 | "inheritParent" : false
12 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095031,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095031,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param_571_b.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SELECT *
5 | FROM Table
6 | WHERE column = '##foo##'
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param_571_c.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SELECT *
5 | FROM Table
6 | WHERE column = '###foo###'
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/482_cfmail.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095035,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/482_mail.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095035,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/553_catch.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095036,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/cfthread.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 0,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/local_256.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/lock_488.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/namedArgs.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/testParse.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095038,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/local_537.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | // Do stuff
5 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ExcludesAll/someErrors.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095023,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/arg_hints_missing.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095024,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints3_hintannotation.cfc:
--------------------------------------------------------------------------------
1 | /*
2 | @hint This is an annotation hint
3 | */
4 | component {
5 |
6 | /*
7 | @hint This is an annotation hint
8 | */
9 | public void function function1() {
10 | someVar = '';
11 | }
12 |
13 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/args/test_497.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095024,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny1.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095024,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny4.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095025,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny5.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095025,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreMultiLine2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095026,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Naming/NewComponent_472.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095027,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/attr_space_536.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1527908260,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/cfloop_359.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095029,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/fileoutput_359.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095029,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/customerror_647.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1574138302,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/encodeing_580.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568215109,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/inlinearray_650.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1574137773,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param_571_b.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095031,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param_571_d.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SELECT *
5 | FROM Table
6 | WHERE column = '####foo####'
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param_571_d.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095031,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cflog_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cookie_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095034,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/loop_631.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | function foo(){
3 | var thisBase = getRowBaseFromMap(baseDataMap, row);
4 | for( var v in baseVars ){
5 | ar.Append(thisBase.KeyExists(v.shortname) ? thisBase[v.shortname] : '');
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/loop_631.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 0,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/newobj_640.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1574217909,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/553_cfml_catch.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095036,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cfcookie_518.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095036,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cftag_483_1.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095036,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cftag_483_3.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095036,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/http.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/http2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/mail.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/query.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/tag.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/property_246.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/scopesUse_404.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095038,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfc_540.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | property name="name" type="string";
3 | /**
4 | * This is a hint.
5 | * @name A name
6 | */
7 | public string function sayHello(required string name) {
8 | return "Hello, " & arguments.name;
9 | }
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionCollision/function_x.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568428029,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/GlobalVarChecker/cfcatch_tag.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095023,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints2_hintattribute.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095024,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints3_hintannotation.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095024,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Hints/hints5_comment.cfc:
--------------------------------------------------------------------------------
1 | /*
2 | This is a hint
3 | */
4 | component {
5 |
6 | /*
7 | @hint This is a hint
8 | @arg1 This is arg1 hint
9 | */
10 | public void function function1(arg1,arg2) {
11 | someVar = '';
12 | }
13 |
14 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny3_Nested.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095025,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreCFMLComponent2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095025,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreCFMLFunction.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095025,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreLineMessage1.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095025,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MissingDeclaration/array_used.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095027,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Naming/nameEndsInNumberScript.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095027,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/PackageCase/packagecase_ok.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095028,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/keys_599.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568171471,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/nestedcomments_629.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568514093,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/outside_output_359.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095029,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/singlequote_359.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095029,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/FunctionArg_550.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095032,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArg_418.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArg_573_b.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1539043849,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArg_593.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095032,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cfloopname_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cfoutput_464.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568216331,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cfquery_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cfqueryname_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/forLoop_211.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/forLoop_227.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/location_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095034,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/loop_list_339.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095034,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/sampleQuery_577.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1528242485,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/transaction_497.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095034,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/structureKeys_197.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095038,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/structure_keys_197.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095038,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/532_naming.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095034,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/sample_239.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095035,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfc_540.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568692189,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfc_540_b.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568693673,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfml_540.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568690862,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/implicitStructKey_478.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095017,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarConflict/mixedScopeExample.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095018,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare1.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 | x = {};
4 | x.x = 1;
5 | x.x == 2;
6 | if (x.x == 2){
7 | x=123;
8 | }
9 | x.x EQ 6;
10 | b1 = x == y;
11 | b2 = x EQ y;
12 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095021,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionType/Any/functionmissing1.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095023,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/FunctionType/Missing/component_500.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095023,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Ignores/ignoreMultiLineComponent2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095026,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/LiteralChecker/literal_arraysort.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095027,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/MissingDeclaration/collect_used.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095027,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/queryparam_569.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568695657,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/StructKeyChecker/quotedStructKey2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095032,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/StructKeyChecker/top_level_542.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 0,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_152.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095032,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_227.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095032,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_257.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095032,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_257b.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095032,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/caselessVariable_242.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_leftuse_592.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1539040698,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/local_nested_592.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1539040669,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cfdocumentsection_462.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095036,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/constructor.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/fpositive/expectation.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095037,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/componentID_499.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095035,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/leaderboard_450.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095035,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/sample1_635.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568428747,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/thisTag_479.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095035,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery3_489.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095020,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery4_490.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095020,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery5_490.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095020,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/nestedcomments_629.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 | 5--->
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ParseError/ordered_Struct_534.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568690514,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/TooManyFunctionsChecker/excessive_cfml2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095031,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedArgument/UnusedArgument_Case_234.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095033,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/cftry.cfc:
--------------------------------------------------------------------------------
1 | component {
2 |
3 | public tagCFC function init(required string username, required string password) {
4 | try{
5 | tryVar = '';
6 | }catch(any e){
7 | catchVar = '';
8 | }finally{
9 | finallyVar = '';
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/columns/.cflintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rule" : [ ],
3 | "excludes" : [ ],
4 | "includes" : [ {
5 | "code" : "ARGUMENT_HAS_PREFIX_OR_POSTFIX"
6 | },
7 | { "code" : "ARGUMENT_IS_TEMPORARY"} ,
8 | { "code" : "COMPONENT_INVALID_NAME"} ],
9 | "inheritParent" : false
10 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/TooManyFunctionsChecker/excessive_cfscript2.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1526095031,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfc_540_d.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | property name="name" type="string";
3 | /**
4 | * This is a hint.
5 | * @name A name
6 | */
7 | public string function sayHello(required string name) {
8 | name='foo';
9 | return "Hello, " & arguments.name;
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/UnusedVariable/cookie_339.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/main/assembly/archive.xml:
--------------------------------------------------------------------------------
1 |
2 | archive
3 |
4 | zip
5 |
6 |
7 |
8 | ${project.build.directory}/appassembler
9 | /
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfc_540_b.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | property name="name" type="string";
3 | /**
4 | * This is a hint.
5 | * @name A name
6 | */
7 | public string function sayHello(required string name) {
8 | local.name='foo';
9 | return "Hello, " & arguments.name;
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/ArgVarChecker/cfc_540_c.cfc:
--------------------------------------------------------------------------------
1 | component{
2 | property name="name" type="string";
3 | /**
4 | * This is a hint.
5 | * @name A name
6 | */
7 | public string function sayHello(required string name) {
8 | var name='foo';
9 | return "Hello, " & arguments.name;
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VariableNameChecker/query_naming_blank_601.expected.txt:
--------------------------------------------------------------------------------
1 | {
2 | "version" : "",
3 | "timestamp" : 1568172244,
4 | "issues" : [ ],
5 | "counts" : {
6 | "totalFiles" : 0,
7 | "totalLines" : 0,
8 | "countByCode" : [ ],
9 | "countBySeverity" : [ ]
10 | }
11 | }
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/include_506.cfm:
--------------------------------------------------------------------------------
1 |
2 | string function getTemplatetoInclude(){
3 | return "foo.cfm";
4 | }
5 |
6 | // passes cflint
7 | include "#getTemplatetoInclude()#";
8 |
9 | // fails with java exception
10 | include getTemplatetoInclude();
11 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Query/cfquery_param.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SELECT
5 | fooCol1, siteID, fooCol3
6 | FROM
7 | FooTable
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/VarScoper/structassignment.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | var siteDetail={};
5 | foobar.foo.xyz.[siteID] = 123;
6 | siteDetail.foo.xyz.[siteID] = 123;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/GlobalVarChecker/cfcatch_tag.cfc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/test/resources/com/cflint/tests/Parsing/parsing253.cfm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | removeTagList = '||||