সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
লিন্ট
Gradle API-এর ব্যবহার যাচাই করতে Lint চেক করে
সর্বশেষ আপডেট | স্থিতিশীল রিলিজ | প্রার্থী মুক্তি | বিটা রিলিজ | আলফা রিলিজ |
---|
20 মে, 2025 | - | - | - | 1.0.0-আলফা05 |
নির্ভরতা ঘোষণা করা
লিন্টের উপর নির্ভরতা যোগ করতে, আপনাকে অবশ্যই আপনার প্রকল্পে Google Maven সংগ্রহস্থল যোগ করতে হবে। আরও তথ্যের জন্য Google এর Maven সংগ্রহস্থল পড়ুন।
আপনার অ্যাপ বা মডিউলের জন্য build.gradle
ফাইলে আপনার প্রয়োজনীয় আর্টিফ্যাক্টগুলির জন্য নির্ভরতা যোগ করুন:
গ্রোভি
plugins {
id("com.android.lint")
}
dependencies {
lintChecks "androidx.lint:lint-gradle:1.0.0-alpha05"
}
কোটলিন
plugins {
id("com.android.lint")
}
dependencies {
lintChecks("androidx.lint:lint-gradle:1.0.0-alpha05")
}
নির্ভরতা সম্পর্কে আরও তথ্যের জন্য, বিল্ড নির্ভরতা যুক্ত করুন দেখুন।
প্রতিক্রিয়া
আপনার প্রতিক্রিয়া জেটপ্যাককে আরও ভাল করতে সাহায্য করে। আপনি যদি নতুন সমস্যা আবিষ্কার করেন বা এই লাইব্রেরির উন্নতির জন্য ধারনা পান তাহলে আমাদের জানান। আপনি একটি নতুন তৈরি করার আগে অনুগ্রহ করে এই লাইব্রেরিতে বিদ্যমান সমস্যাগুলি দেখুন৷ আপনি তারকা বোতামে ক্লিক করে একটি বিদ্যমান সমস্যায় আপনার ভোট যোগ করতে পারেন।
একটি নতুন সমস্যা তৈরি করুন
আরও তথ্যের জন্য ইস্যু ট্র্যাকার ডকুমেন্টেশন দেখুন।
এই শিল্পকর্মের জন্য কোন রিলিজ নোট নেই.
সংস্করণ 1.0
সংস্করণ 1.0.0-alpha05
20 মে, 2025
androidx.lint:lint-gradle:1.0.0-alpha05
প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha05-এ এই কমিট রয়েছে।
নতুন বৈশিষ্ট্য
-
configurations.create
এবং configurations.maybeCreate
এর ব্যবহার সম্পর্কে সতর্ক করার জন্য একটি চেক যোগ করুন কারণ এইগুলি গ্রেডল 8.14 থেকে শুরু হওয়া কনফিগারেশনের উৎসুক উপলব্ধি করে এবং এইভাবে configurations.register
দিয়ে প্রতিস্থাপন করা উচিত। - অভ্যন্তরীণ Kotlin Gradle Plugin API-এর ব্যবহার ধরতে একটি চেক যোগ করুন
-
evaluationDependsOn
এবং evaluationDependsOnChildren
এর ব্যবহার ধরতে একটি চেক যোগ করুন কারণ এটি Isolated Projects বৈশিষ্ট্যের সাথে নিরাপদ নয়।
সংস্করণ 1.0.0-alpha04
23 এপ্রিল, 2025
androidx.lint:lint-gradle:1.0.0-alpha04
প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha04 এই কমিট ধারণ করে।
নতুন বৈশিষ্ট্য
- দুর্ঘটনাজনিত
Provider<String>.toString
কলগুলি সম্ভবত বাগ। - অভ্যন্তরীণ প্রকার থেকে আসা পদ্ধতি, বৈশিষ্ট্য, ক্ষেত্রগুলির ব্যবহার ধরতে চেক যোগ করুন।
বাগ ফিক্স
-
Project.isolated
ব্যবহারের অনুমতি দিতে GradleProjectIsolation
চেক ঠিক করুন। -
configureEach
ছাড়া Project.tasks.withType<Task>()
এর ব্যবহার ধরতে WithTypeWithoutConfigureEach
চেক ঠিক করুন। - অভ্যন্তরীণ API-এর সম্পূর্ণ যোগ্য ব্যবহার ধরার জন্য
InternalGradleApiUsage
চেক ঠিক করুন।
সংস্করণ 1.0.0-alpha03
11 ডিসেম্বর, 2024
androidx.lint:lint-gradle:1.0.0-alpha03
প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha03-এ এই কমিট রয়েছে।
নতুন বৈশিষ্ট্য
-
Provider<>.toString
এ কল ধরুন কারণ এটি করা প্রায় সবসময় একটি বাগ। -
TaskContainer
এ Kotlin সংগ্রহের এক্সটেনশন ফাংশনের কলগুলি ধরুন কারণ এইগুলি আগ্রহী Task
তৈরির কারণ। -
Configuration
পাস করা থেকে ConfigurableFileCollection.from
এ কলগুলি ধরুন কারণ এটি project.files(configuration)
বা configuration.incoming.artifactView {}.files
ব্যবহার করার পরামর্শ দেয় কনফিগারেশনের আগ্রহী রেজোলিউশনের কারণ। -
RegularFileProperty
বা DirectoryProperty
ব্যবহার করার পরামর্শ দিচ্ছে Property<File>
এর ব্যবহার ধরুন কারণ এটি ব্যবহার ডিরেক্টরি বনাম ফাইল প্রয়োগ করছে।
সংস্করণ 1.0.0-alpha02
4 সেপ্টেম্বর, 2024
androidx.lint:lint-gradle:1.0.0-alpha02
প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha02-এ এই কমিট রয়েছে।
নতুন বৈশিষ্ট্য
- নিরুৎসাহিত
GradleRunner.withPluginClasspath
API-এর জন্য একটি চেক যোগ করা হয়েছে। -
configureEach
কল না করে TaskContainer.withType
এ কল ফ্ল্যাগ করে অলস কনফিগারেশনের জন্য সমস্যাযুক্ত APIগুলির জন্য চেক যোগ করা হয়েছে।-
Project.getRootProject
, Project.findProject
, Project.getParent , Project.getParent
, Project.findProperty
, Project.getProperties
, Project.property
এ কল ফ্ল্যাগ করে গ্রেডল প্রজেক্ট আইসোটেশনের জন্য সমস্যাযুক্ত APIগুলির জন্য চেক যোগ করা হয়েছে Project.hasProperty
সংস্করণ 1.0.0-alpha01
21 ফেব্রুয়ারি, 2024
androidx.lint:lint-gradle:1.0.0-alpha01
প্রকাশিত হয়েছে। সংস্করণ 1.0.0-alpha01-এ এই কমিট রয়েছে।
নতুন বৈশিষ্ট্য
- গ্র্যাডল প্লাগইন লেখকদের তাদের কোডে ভুল ধরতে সাহায্য করার জন্য লিন্ট চেকের একটি প্রাথমিক সেট। তারা Gradle প্রকল্পগুলিতে ব্যবহার করা হবে বলে আশা করা হচ্ছে যা
java-gradle-plugin
প্রয়োগ করে। এটি অভ্যন্তরীণ গ্রেডল এবং অ্যান্ড্রয়েড গ্রেডল প্লাগইন API এবং আগ্রহী টাস্ক কনফিগারেশনের ব্যবহার ধরবে।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# lint\n====\n\nAPI Reference \n[androidx.lint](/reference/kotlin/androidx/lint/package-summary) \nLint checks to verify usage of Gradle APIs \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|---------------|----------------|-------------------|--------------|----------------------------------------------------------------|\n| May 20, 2025 | - | - | - | [1.0.0-alpha05](/jetpack/androidx/releases/lint#1.0.0-alpha05) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on Lint, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\nplugins {\n id(\"com.android.lint\")\n}\ndependencies {\n lintChecks \"androidx.lint:lint-gradle:1.0.0-alpha05\"\n}\n```\n\n### Kotlin\n\n```kotlin\nplugins {\n id(\"com.android.lint\")\n}\ndependencies {\n lintChecks(\"androidx.lint:lint-gradle:1.0.0-alpha05\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1518777%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1518777&template=1946997)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nThere are no release notes for this artifact.\n\nVersion 1.0\n-----------\n\n### Version 1.0.0-alpha05\n\nMay 20, 2025\n\n`androidx.lint:lint-gradle:1.0.0-alpha05` is released. Version 1.0.0-alpha05 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/7bbd2bffb18b5a7d6ab44019d31979acc72315a7..cd41781824511ce4d5c4a05d2df4aaaee669f0bc/lint/lint-gradle).\n\n**New Features**\n\n- Add a check to warn about usages of `configurations.create` and `configurations.maybeCreate` as these cause eager realization of that configuration starting with Gradle 8.14 and thus should be replaced with `configurations.register`.\n- Add a check to catch usages of internal Kotlin Gradle Plugin APIs\n- Add a check to catch usages of `evaluationDependsOn` and `evaluationDependsOnChildren` as it is not safe with Isolated Projects feature.\n\n### Version 1.0.0-alpha04\n\nApril 23, 2025\n\n`androidx.lint:lint-gradle:1.0.0-alpha04` is released. Version 1.0.0-alpha04 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/2ffcbb08c7221e79b12c0ef234bcfb5517d10ece..7bbd2bffb18b5a7d6ab44019d31979acc72315a7/lint/lint-gradle).\n\n**New Features**\n\n- Add a check for accidental `Provider\u003cString\u003e.toString` calls as they are likely bugs.\n- Add check to catch uses of methods, properties, fields coming from internal types.\n\n**Bug Fixes**\n\n- Fix `GradleProjectIsolation` check to allow usage of `Project.isolated`.\n- Fix `WithTypeWithoutConfigureEach` check to catch uses of `Project.tasks.withType\u003cTask\u003e()` without `configureEach`.\n- Fix `InternalGradleApiUsage` check to catch fully qualified usages of internal APIs.\n\n### Version 1.0.0-alpha03\n\nDecember 11, 2024\n\n`androidx.lint:lint-gradle:1.0.0-alpha03` is released. Version 1.0.0-alpha03 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/9cd42c5cbf5e69b0223d5b0c357593175182f365..2ffcbb08c7221e79b12c0ef234bcfb5517d10ece/lint/lint-gradle).\n\n**New Features**\n\n- Catch calls to `Provider\u003c\u003e.toString` as it is nearly always a bug to do that.\n- Catch calls of Kotlin collection extension functions on `TaskContainer` as these cause eager `Task` creation.\n- Catch calls to `ConfigurableFileCollection.from` passing in a `Configuration` as that causes eager resolution of the configuration suggesting to use `project.files(configuration)` or `configuration.incoming.artifactView {}.files`.\n- Catch usages of `Property\u003cFile\u003e` suggesting to use `RegularFileProperty` or `DirectoryProperty` as it is enforcing the use directory vs file.\n\n### Version 1.0.0-alpha02\n\nSeptember 4, 2024\n\n`androidx.lint:lint-gradle:1.0.0-alpha02` is released. Version 1.0.0-alpha02 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/e1b82c49c59d8e976ce558aba5586f6c61bc9054..9cd42c5cbf5e69b0223d5b0c357593175182f365/lint/lint-gradle).\n\n**New Features**\n\n- Added a check for discouraged `GradleRunner.withPluginClasspath` API.\n- Added checks for APIs that are problematic for lazy configuration by flagging calls to `TaskContainer.withType` without calling `configureEach`.\n - Added checks for APIs that are problematic for Gradle Project Isotation by flagging calls to `Project.getRootProject`, `Project.findProject`, `Project.getParent`, `Project.findProperty`, `Project.getProperties`, `Project.hasProperty`, `Project.property`.\n\n### Version 1.0.0-alpha01\n\nFebruary 21, 2024\n\n`androidx.lint:lint-gradle:1.0.0-alpha01` is released. [Version 1.0.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/e1b82c49c59d8e976ce558aba5586f6c61bc9054/lint/lint-gradle)\n\n**New Features**\n\n- An initial set of lint checks for Gradle Plugin authors to help them catch mistakes in their code. They are expected to be used on Gradle projects that apply `java-gradle-plugin`. It will catch uses of internal Gradle and Android Gradle Plugin APIs and eager task configuration."]]