tslint Error – Shadowed name: ‘err’

You are using the same variable “err” in both outer and inner callbacks, which is prevented by tslint. If you want to use the same variable then “no-shadowed-variable”: false, otherwise do as below. fs.readdir(fileUrl, (readDirError, files) => { fs.readFile(path.join(fileUrl, files[0]), function (err, data) { if (!err) { res.send(data); } }); });

Using JSLint in Notepad++

I have managed to get two lint programs to run using the notepad++’s NppExec Plugin. The NppExec plugin is usually installed by default and can be found under plugins -> NppExec. (Using NppExec 0.3 RC1 and Notepad++ 5.1+). 1) JSLint first download the WSH version of jslint from http://www.jslint.com. Modify the last part of the … Read more

How to use Flake8 in VSCode?

Usually yeah it will. But if it doesn’t work for you, then you can try specifying absolute path to flake8 and enable it explicitly like so : “python.linting.flake8Enabled”: true, “python.linting.flake8Path”: “path/to/flake8”, you can even specify path to your conda environment : “python.condaPath”: “path/to/condaenv/”,

Proper way to handle Android Studio’s NullPointerException lint warning

I doubt this question can be answered conclusively, as it’s a matter of opinion. Or at least I believe so — an opinion too. 🙂 I understand you want “0 warnings” (a very laudable goal) but there’s probably not a “one size fits all” issue. That said… Things I believe you should not do: Use … Read more

tech