Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
49 views

I would like to run Azure pipeline for Android project and ending up with error while building. I also have tried to include in build.grade but no luck. android { .... .... lintOptions { ...
Rakesh L's user avatar
  • 1,178
0 votes
1 answer
567 views

I have some custom lint for my android project. Initially I wrote this code in new project and it was working there, I can see my new lint in Android Studio Ispection tab in Setting. But When I pasted ...
Gopal's user avatar
  • 19
0 votes
1 answer
455 views

I am writing my first custom lint-detector for android/compose: "Don't use the standard button, use our specifically styled custom button" The detector itself is working as expected: Lint ...
m.reiter's user avatar
  • 2,685
2 votes
1 answer
85 views

I'm writing a custom lint rule to catch if android:src namespace is being used for displaying vector drawables which have gradient tag in them instead of app:scrCompat namespace. Android Studio is ...
Veeresh Charantimath's user avatar
0 votes
1 answer
92 views

Analyzing code I found these warnings. Could someone explain me some details about them please. Any alternatives will be welcome interface A { var someBoolean: Boolean // Boolean method '...
Edhar Khimich's user avatar
0 votes
1 answer
77 views

So, I have created a custom lint rule for FlowLayout tag (a 3rd party library) to replace it with ConstraintLayout's Flow feature, here is the code: class FlowLayoutDetector : LayoutDetector() { ...
Suraj Vaishnav's user avatar
1 vote
0 answers
120 views

It seems to me that Android Studio inspection profile doesn't allow me to choose the same inspection that is used by Gradle command ./gradlew lint. I'm interested in running "LiveData value ...
Andrzej Zabost's user avatar
2 votes
0 answers
155 views

We got an error in Play Store Console about our app having an "Implicit Internal Intent" vulnerability (error info). The error is fixed, however we would like to add a way to detect these ...
Jenny's user avatar
  • 353
0 votes
1 answer
63 views

I'm trying to learn more about android lints. So I want to see already implemented rules. I searched a lot but I couldn't find the location of these files. Can someone give me the location or link to ...
Saman Sattari's user avatar
7 votes
0 answers
969 views

Hi Stackoverflow Community, I would like to apply a lint check for my Android project from command line WITH options/parameters. First I tried the standalone lint tool which comes with the Android SDK ...
Mario646's user avatar
2 votes
1 answer
534 views

I have this error when do ciCheckDebug: jetified-butterknife-runtime-10.2.3\jars\lint.jar does not specify a vendor; see IssueRegistry#vendor Cannot find, how to disable it without abortOnError=false ...
Vladimir Fisher's user avatar
12 votes
2 answers
15k views

Android Studio gives the warning: Unboxing of 'idCollisonMap.get(currentId)' may produce 'NullPointerException' even though I am checking if the key exists before I perform the Map.get(). Am I ...
Kenny Sexton's user avatar
1 vote
0 answers
261 views

I have a multi projects structure. One is the lint project including lint logic code. I wanna get the root project dir. I test some ways. println("mainProject.dir ${context.mainProject.dir}")...
Victor Choy's user avatar
  • 4,286
0 votes
0 answers
92 views

In android, how can I make sure that developers always write unit test of each method they wrote? Is there a lint or klint library or custom code to check that, for example If i have written a ...
Ahmad Shahwaiz's user avatar
11 votes
1 answer
6k views

In my android code (Kotlin) I am using forEach method of java iterable. mandatoryViews.forEach { view -> // my code here } Below is my sdk config in build.gradle (app): minSdkVersion 23 ...
Nitin Verma's user avatar
4 votes
0 answers
276 views

I've enabled the Android Lint on my app module with config xml with these enabled rules, and also created a baseline. lintOptions { checkReleaseBuilds false abortOnError true ...
Igor Matos's user avatar
0 votes
0 answers
353 views

I'm writing a lint check to flag code that is calling a specific function from within a click listener on an Android view. For example: // case 1 button.setOnClickListener(object: View.OnClickListener ...
howettl's user avatar
  • 12.5k
1 vote
2 answers
890 views

How one can get rid of linter deprecation warnings? For example, the annoying NetworkInfo: warning: [deprecation] NetworkInfo in android.net has been deprecated
Martin Zeitler's user avatar
7 votes
2 answers
5k views

I’ve got a project in which I get the following Android lint warning: Obsolete custom lint check ../../../../../../../.gradle/caches/transforms-2/files-2.1/fc4398fa701898f50fcec85691d33578/appcompat-...
mirabilos's user avatar
  • 5,419
0 votes
1 answer
1k views

I am building a multi-module app and in each module I have lint settings as follows android { ... lintOptions { quiet true abortOnError false warningsAsErrors true } ...
H.Nguyen's user avatar
  • 1,839
4 votes
1 answer
2k views

I have created two custom lint rules and verified that they work as expected with unit tests. However, when I try to run lint on the whole project with ./gradlew app:lint these rules are not executed. ...
lotdrops's user avatar
  • 320
0 votes
1 answer
155 views

I want to run the Android Lint both locally (IDE) and on the CI. I have a task like this, which I want the abortOnError as true when run on CI but false when ran locally. task lintCI { outputs....
ThedhFanBoy1's user avatar
5 votes
1 answer
2k views

Context I am using the androidx.legacy.widget.Space in a layout in an Android application project: <androidx.legacy.widget.Space android:layout_width="match_parent" android:...
JJD's user avatar
  • 52.7k
6 votes
0 answers
143 views

I have a drawable file with the IconDipSize Lint issue. This issue is suppressed in lint-baseline.xml file generated on macOS machine, so that it contains file paths with slash, instead of Windows-...
Piotr Aleksander Chmielowski's user avatar
0 votes
1 answer
696 views

I am writing a custom android lint to help to check if the private attributes match naming convention. I used the test cases to verify my implementation. I used a method called ...
Long Ranger's user avatar
  • 6,016

1
2 3 4 5
7