Currently, ignoring folders during scans requires creating a .cflintrc file in the target folder with an empty includes: [{}]. This approach is cumbersome and not ideal, especially for folders containing external libraries or dependencies. These folders often fall outside our control and do not need to adhere to linting rules.
To address this, we propose introducing a .cflintignore file that supports relative globbing patterns. This would allow users to specify folders or files to be ignored in a more straightforward and flexible manner, following standard globbing conventions.
Example .cflintignore File:
components/dependencies
generated/**/*.cfm
This enhancement would simplify the process of excluding specific folders or files from linting and improve usability.
Currently, ignoring folders during scans requires creating a
.cflintrcfile in the target folder with an emptyincludes: [{}]. This approach is cumbersome and not ideal, especially for folders containing external libraries or dependencies. These folders often fall outside our control and do not need to adhere to linting rules.To address this, we propose introducing a
.cflintignorefile that supports relative globbing patterns. This would allow users to specify folders or files to be ignored in a more straightforward and flexible manner, following standard globbing conventions.Example
.cflintignoreFile:This enhancement would simplify the process of excluding specific folders or files from linting and improve usability.