Top "Lint" questions

Please tag questions about static analysis tools "static-analysis" unless they're actually about the Lint utility.

How to add -Xlint:unchecked to my Android Gradle based project?

I tried to add the following to the root build.gradle file: subprojects { gradle.projectsEvaluated { tasks.withType(Compile) { options.compilerArgs &…

android gradle javac lint
What is better: @SuppressLint or @TargetApi?

I have issues in my app regarding StrictMode and added the code snippet that basically disables the StrictModeHelper. However, Lint …

android eclipse lint
JSLint: control comments (selective ignore)

Does JSLint have anything like JavaScript Lint's control comments (e.g. /*jsl:fallthru*/) to make it ignore certain passages?

javascript jslint lint
Can't get Atom Linter to work

I'm new to Atom, the text edit, and I installed many packages, including Linter https://github.com/AtomLinter/Linter But …

lint atom-editor
How to recompile with -Xlint:deprecation

I don't use Android Studio but I build everything from the command line using build.gradle. I generate a Lint …

android gradle lint
The result of subscribe is not used

I've upgraded to Android Studio 3.1 today, which seems to have added a few more lint checks. One of these lint …

android android-studio rx-java2 lint android-studio-3.1
VIM + JSLint?

I spend my days in vim, currently writing a lot of JavaScript. I've been trying to find a way to …

javascript vim lint
Angular Error: 'Component 'X' is not included in a module...' when declared in a sub module

I'm trying to consolidate my dialogs into an Angular module, but I'm getting a linting error in the IDE: Component …

angular typescript angular-cli lint
Visual Studio Code formatting for "{ }"

I'm on Ubuntu. C++ in Visual Studio Code automatically lints like if (condition == true) { DoStuff(); } Instead I want to do : …

c++ ubuntu visual-studio-code lint
Webpack config has an unknown property 'preLoaders'

I'm learning webpack from scratch. I've learned how to link javascript files with require. I'm bundling and minifying my js …

webpack config lint preloader