Does it worth to use SonarLint in Android Studio or IntelliJ - android-studio

IntelliJ IDEA and Android Studio have a Lint tool which is very useful. You can even call it from a CI pipeline to check your project's code.
Given that, I have two questions about this Lint and SolarLint:
Does SolarLint plug-in complement or add something new to the code analysis made by the built-in Lint tool in both IDEs when you want to inspect Kotlin code?
Does it worth to install the SolarLint plug-in if you don't use SonarQube? Does SolarLint impacts in the IDEs performance?
Thanks in advance.

Related

Contributing to the same GitHub project using both IntelliJ Idea and Android Studio

My question is simple. I'm developing an app on GitHub using Android Studio. Should I accept contributions from someone using ItelliJ Idea?
You should let every user use their preferred editor to edit the files in your project. It should not matter what editor a user uses to work on your project.
However, you should not check in any files specific to any editor, whether that's Android Studio, IntelliJ IDEA, or something else. All tooling should be agnostic to the editor and invoked using a standard build or linting tool in your environment. Those are the best practices for all projects.
If you need things like standard ways to express indentations, character sets, and line endings, that's what EditorConfig files are for. They are supported by some editors natively, while others require a plugin.

How to configure ktlint gradle plugin in a continuous mode?

In my Android Studio app project, I've integrated ktlint gradle.
Is it possible to configure the ktlint gradle plugin, so that it runs continuously on the fly (while coding on the keyboard)?? Like ESlint is used for JS, it warns me immediately if any lint warnings occur..
It is not possible to do that. klint is not a static analysis tool.
Alternatively, you can write custom lint rules for the same. Here are some resources for doing so:
Android Dev summit 2018 talk
Android Dev summit 2019 talk
Android source code for standard lint rules
Repos
https://github.com/googlesamples/android-custom-lint-rules
https://github.com/tikurahul/lint-experiments
https://github.com/vanniktech/lint-rules
This is possible in Intellij / Android Studio if you install the ktlint IDEA plugin.
It's also configurable so you can represent findings as warnings or errors.

Intellij Idea Ultimate or Intellij Idea Plus PyCharm and Android Studio

I am coding Android Apps, Server-Side Python Code and using Spring Framework. I have a student license for JetBrains. I like things organized, so should i use Intellij Idea with Android and Python Plug-in or PyCharm, Android Studio and Intellij Idea separated.
Is there too much pros of Android Studio and PyCharm over Intellij Idea plug-ins.
Note: I asked that question 'cause previous questions about this subjects are about android and python separately and also not up-to-date. The nearest question is almost 1 year ago.
Edit: My decision is to go with Intellij Idea Ultimate only. I leave the question open in case some expert want to answer that question detailed. But you can read this answer that help me made my decision.
Long story short: Android Studio and PyCharm can be more up-to-date but the difference is not to much. JetBrains also developing PyCharm, they usually update Python plugin of Idea quickly. Idea is better in terms of Jython. Also, in terms of Android Studio, JetBrains can also add some features that Studio doesn't have. And since new Android Versions are not become widely used too fast, Intellij Idea can apply the changes before it is late. (Both Android Studio and PyCharm based on Intellij Idea.)
For Android development, just use Android Studio. It’s developed by Google’s Android team (instead of JetBrains) and always has the latest Android-specific stuff that IntelliJ IDEA’s Android plugin might not.
(For server-side Python, I’m guessing the choice of PyCharm or IntelliJ IDEA doesn’t really matter much; they mostly have the same features. But I'm no expert there.)

Merge Intellij IDEs to have only one installed

This is a basic question.
I use Android Studio, AppCode, IntelliJ IDEA, PHPStorm and RubyMine.
Is there any way to merge all of those IDEs?
For example, IntelliJ IDEA with plugins for each type of development instead of having 5 IDEs that are basically the same.
Thanks.
Intellij IDEA Ultimate includes all the features available in PHPStorm and RubyMine (but you need installing some missing plugins from the repository). Same for Android Studio (https://blog.jetbrains.com/idea/2013/05/intellij-idea-and-android-studio-faq/). So you can just use Intellij IDEA for Ruby, PHP and Android development. AppCode, however, can't be replaced with IDEA

Use customized lint check on the fly in Android Studio

I want to write a lint check which can detect issues in resource file on the fly. For example, I want my Android Studio to highlight my <TextView> and give warning when it does not have android:padding.
I read this and found that we can write custom lint but only can we use it through command line but not on the fly. I also found that there is plugin like SonarLint which provides on-the-fly custom lint check.
So my question is:
Is it true that creating an Android Studio plugin is the only way to make custom lint check work on the fly?
I do not accurately answer your question because I don't have own custom lint checks. However, I'm using rxLint library which is not part of Android build tools and Android Studio highlights issues in code that are reported.
So if you will make your custom lint checks as a separate module and put your main project depend on it then Android Studio will highlight it.

Resources