question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example '.cflintrc` actually doesn't run anything.

See original GitHub issue

The example .cflintrc will not return you any errors even if you do have errors in your cfml as it has an empty structure in the includes key.

This example (cleaned so no more default errors are shown):

{
    "rule" : [ ],
    "excludes" : [ ],
    "includes" : [ {
        
    } ],
    "inheritParent" : false,
    
    "parameters" : {}
}

Has an empty structure in the includes. So without knowing the full documentation, this is saying “Do not include any rule” it seems. So if I run this on a very error prone CFML page I get no problems (silently).

Removing the {} it now runs all the rules.

So this either means that we need to have some error when there is an empty structure such as:

  • No rules to run have been defined

Or it needs to be removed from the example in the readme?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
KamasamaKcommented, May 5, 2018

An init would be very useful. The NPM wrapper has this already. I also implemented a couple commands in my VS Code extension that do that.

0reactions
cybersoniccommented, May 5, 2018

Yeah, I haven’t used this version yet but will be doing so shortly

https://www.forgebox.io/view/commandbox-cflint

Mark Drew

On 5 May 2018, at 18:46, ryaneberly notifications@github.com wrote:

That’s clean. Does commandbox already implement

box cflint

? I haven’t used it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslintrc doesn't override defaults · Issue #498 · jaredpalmer/tsdx
Currently, settings from the package.json.eslint property will override any configurations during linting, but not the rules from .eslintrc .
Read more >
ESLint not working in VS Code? - Stack Overflow
If ESLint is running in the terminal but not inside VSCode, it is probably because the extension is unable to detect both the...
Read more >
Configuration Files - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Getting Started with ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Find and fix problems in your JavaScript code - ESLint ...
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found