Could not find com.android.tools.lint:lint-gradle Android Studio 3

If you’re running lint on a project that you created using an older version of Android Studio, you may encounter this error. To resolve this issue, for each project that you would like to run lint on, include Google’s Maven repository in the top-level build.gradle file, as shown below: allprojects { repositories { // The … Read more

Is there a simple CLI Java linter? [closed]

SpotBugs (earlier Findbugs) for finding existing bugs. VERY GOOD! PMD for finding patterns that can lead to bugs (e.g. unused variables) Checkstyle to enforce coding standards and conventions (e.g. whitespace, Javadoc) Error Prone hooks right into your application’s compile step clang-format supports java and may be available on your system already All these tools have … Read more

What is better: @SuppressLint or @TargetApi?

I have issues in my app regarding StrictMode and added the code snippet that basically disables the StrictModeHelper Please fix the networking bug. Which method is prefered ..or are they basically doing the same? @TargetApi and @SuppressLint have the same core effect: they suppress the Lint error. The difference is that with @TargetApi, you declare, … Read more

Permission is only granted to system app

In Eclipse: Window -> Preferences -> Android -> Lint Error Checking. In the list find an entry with ID = ProtectedPermission. Set the Severity to something lower than Error. This way you can still compile the project using Eclipse. In Android Studio: File -> Settings -> Editor -> Inspections Under Android Lint, locate Using system … Read more

How to do JSLint in Vim

The best-practice way IMO is: Install Syntastic Vim plugin – Best syntax-checker around for plenty of languages, plus it integrates with Vim’s location-list (==quickfix) window. I recommend cloning from the GitHub repo and installing using a plugin manager like Vundle or Pathogen, since it’s more frequently updated. Choose one of the two options below: JSLint … Read more

Visual Studio Code formatting for “{ }”

base on @Chris Drew’s answer Go Preferences -> Settings Search for C_Cpp.clang_format_fallbackStyle Click Edit, Copy to Settings Change from “Visual Studio” to “{ BasedOnStyle: Google, IndentWidth: 4 }” e.g. “C_Cpp.clang_format_fallbackStyle”: “{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0}” btw ColumnLimit: 0 is helpful too, because google limit will break your code to next line when you … Read more

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