http://coldfusion.com logo
Join Slack
Powered by
# cflint
  • a

    Adam Cameron

    06/29/2021, 12:49 PM
    Hang on... this thing doesn't seem to work with CFScript code?!?
    b
    • 2
    • 38
  • s

    sanjevareddy ch

    05/25/2022, 4:03 AM
    Team, Could you please help me with an issue we are facing with sonarqube coldfusion Log:
    Copy code
    ERROR: Error consuming line WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/C:/ProgramData/Jenkins/.jenkins/workspace/LABMAN/.scannerwork/runner/cflint.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) ERROR: Error consuming line WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 ERROR: Error consuming line WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations ERROR: Error consuming line WARNING: All illegal access operations will be denied in a future release 
    ERROR: Error consuming line Terminated a recursive call to include file C:\ProgramData\Jenkins\.jenkins\workspace\LABMAN\SearchSubPage.cfm
    ERROR: Error consuming line Terminated a recursive call to include file C:\ProgramData\Jenkins\.jenkins\workspace\LABMAN\SearchSubPage.cfm
    ERROR: Error consuming line Terminated a recursive call to include file C:\ProgramData\Jenkins\.jenkins\workspace\LABMAN\SearchSubPage.cfm
    ERROR: Error consuming line Terminated a recursive call to include file
    we are getting this recursive call error, and runs in infinite loop
    g
    r
    • 3
    • 54
  • j

    johnfarrar

    09/15/2022, 4:50 PM
    Uninstall CFLint. 🙂
    • 1
    • 1
  • k

    kyle

    02/09/2023, 9:47 PM
    has anyone experienced the CFLint extension in VSCode refusing to run on ONE specific project, but running fine on other projects?
    t
    t
    • 3
    • 3
  • c

    Clarissa Perci de Andrade

    06/13/2023, 6:44 PM
    Hello! How can I ignore some warnings in .cfm files? Something like "//cflint ignore:line" used in the .cfcs. Lint doesn't recognize the line of error, he points only to line 1. Another doubt I have is how to create a specific lint file for different folders. I am using cflint in the pipeline with npm package, and creating a .cflintrc file in handlers folder is not working, he only recognizes the .cflintrc at the root of the application . The pipeline lint section is:
    Copy code
    generate-lint-report:
      image: node
      stage: lint
      script:
        - npm install -g cflint
        - apt-get update && apt-get install -y wget gnupg unzip openjdk-17-jdk
        - cflint -folder ./
      artifacts:
        paths:
          - cflint-result.html
      allow_failure: true
    The content I am using in the specific .cflintrc file is:
    Copy code
    {
        "rule": [],
        "includes": [
    		{ "code": "AVOID_USING_STRUCTNEW" }, {...some other rules}
        ],
        "inheritParent": false,
        "parameters": {
    		"TooManyFunctionsChecker.maximum" : 20
    	}
    }
  • a

    Adam Cameron

    07/03/2023, 6:40 AM
    archived the channel