Eslint glob (**) is not considering all directories recursively

The problem is likely missing quotes around the glob path. Change this (not working): “lint”: “eslint ./src/**/*.js” To this (working): “lint”: “eslint ‘./src/**/*.js'” The ESLint docs say this: Please note that when passing a glob as a parameter, it is expanded by your shell. The results of the expansion can vary depending on your shell, … Read more

Custom linting lib in android

I have written a post on how to add and integrate custom lint rules to your android app, you can have a look. It also has links to github repos showing how its done in an android project. Link to post The easiest way for me was to set ANDROID_LINT_JARS path in the gradlew file … Read more

Lint error “Do not treat position as fixed; only use immediately…”

Update: The method getAdapterPosition() is deprecated now. The documentation of RecyclerView.Adapter.onBindViewHolder() states: Note that unlike ListView, RecyclerView will not call this method again if the position of the item changes in the data set unless the item itself is invalidated or the new position cannot be determined. For this reason, you should only use the … Read more

Android Studio lint reports “cannot infer argument types.”

You can (very likely) safely ignore this warning. The IntelliJ (Android Studio) Groovy inspection is decent, but far from perfect. I have several advanced Gradle build scripts that are riddled with these and other inspection errors, although everything runs correctly. However, there is a chance you make a programming error and the inspection is technically … Read more

Where can I find an actively developed lint tool for Ruby?

ruby -c myfile.rb will check for correct Ruby syntax. Reek checks Ruby code for common code smells. Roodi checks Ruby code for common object-oriented design issues. Flog can warn you about unusually complex code. [Plug] If your project is in a public Github repository, Caliper can run the latter three tools and others on your … Read more

How to correctly declare a GraphQL query without parameters.

The queries you specify in your schema behave just like any other field on a particular type (the main difference is that their type is linked to a particular operation). If you don’t want to declare any arguments for a particular field, you just omit the parentheses entirely. The same goes for queries and mutations: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)