Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8910985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:49:51+00:00 2026-06-15T03:49:51+00:00

Our Android project is dependent on some external projects over which we do not

  • 0

Our Android project is dependent on some external projects over which we do not have control. Therefore I’m trying to setup custom lint.xml file so we can add ignore rules for them. As starting scenario I tried to remove warnings from ActionBarSherlock (no offence Jake)

<?xml version="1.0" encoding="UTF-8"?>
<lint>
  <issue id="FloatMath">
    <ignore path="app/target/classes/com/actionbarsherlock/*" />
  </issue>
  <issue id="DefaultLocale">
    <ignore path="app/target/classes/com/actionbarsherlock/*" />
  </issue>
  <issue id="ViewConstructor">
    <ignore path="app/target/classes/com/actionbarsherlock/*" />
  </issue>
</lint>

with following command in

lint app --disable FloatMath,DefaultLocale,ViewConstructor --xml lint-result.xml

However produced report still included messages from ABS.

Update
I changed command to

lint --disable FloatMath,DefaultLocale,ViewConstructor --xml lint-result.xml app

Doesn’t make any change for Jenkins still produce same report no matter what is in ignore, however if run in command line it does ignores all issues listed after disable. I wish that there was simple way to say, hey ignore/exclude things in sort of way Maven does…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:49:52+00:00Added an answer on June 15, 2026 at 3:49 am

    Once again answering my own question…
    lint.xml looks now like this and it will ignore any ActionBarSherlock reports on ASB 4.2.0

    <?xml version="1.0" encoding="UTF-8"?>
    <lint>
      <issue id="NewApi">
        <ignore path="target/classes/com/actionbarsherlock/internal/ActionBarSherlockNative.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/ActionBarSherlockNative$ActionModeWrapper.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/app/ActionBarWrapper.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/app/ActionBarWrapper$TabWrapper.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/view/ActionProviderWrapper.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/view/menu/ActionMenuItemView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/view/menu/MenuItemWrapper.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/view/menu/ActionMenuPresenter$HasPermanentMenuKey.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/IcsAdapterView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/IcsProgressBar.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/ActionBarView$HomeView.class" />
        <ignore path="target/classes/com/actionbarsherlock/widget/SearchView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/nineoldandroids/widget/NineFrameLayout.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/nineoldandroids/widget/NineHorizontalScrollView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/nineoldandroids/widget/NineLinearLayout.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/nineoldandroids/view/NineViewGroup.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/view/menu/BaseMenuPresenter.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/AbsActionBarView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/ActionBarContextView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/ActionBarView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/CapitalizingButton.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/CapitalizingTextView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/IcsAbsSpinner.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/IcsLinearLayout.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/IcsListPopupWindow.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/ScrollingTabContainerView.class" />
        <ignore path="target/classes/com/actionbarsherlock/widget/ActivityChooserView$SetActivated.class" />
        <ignore path="target/classes/com/actionbarsherlock/app/SherlockActivity.class" />
        <ignore path="target/classes/com/actionbarsherlock/app/SherlockExpandableListActivity.class" />
        <ignore path="target/classes/com/actionbarsherlock/app/SherlockListActivity.class" />
        <ignore path="target/classes/com/actionbarsherlock/app/SherlockPreferenceActivity.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/ActionBarSherlockNative$ActionModeCallbackWrapper.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/app/ActionBarImpl$1.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/app/ActionBarImpl.class" />
      </issue>
    
      <issue id="FloatMath">
        <ignore path="target/classes/com/actionbarsherlock/internal/nineoldandroids/view/animation/AnimatorProxy.class" />
      </issue>
    
      <issue id="DefaultLocale">
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/CapitalizingTextView.class" />
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/CapitalizingButton.class" />
      </issue>
    
      <issue id="ViewConstructor">
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/CollapsibleActionViewWrapper.class" />
      </issue>
    
      <issue id="WrongCall">
        <ignore path="target/classes/com/actionbarsherlock/internal/widget/IcsAdapterView.class" />
      </issue>
    </lint>
    

    Shell execution command that we now use is

    lint --config lint.xml --xml lint-results.xml .;
    

    PS: Please be aware that this will not remove all reports of excluded APKLIB like in this case ABS as so far there is no way to exclude reports to unused resources of R.class. On compile process R.class of linked library and your project do get merged and Lint has no way to know this. It does only see single R.class with some references that are not used and reports them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C++ codebase which is used by our Android project via JNI
I have a Splash Screen for an Android Project in which I have to
Over time our Android project has expanded a great deal, and these days we
Project Description: I have to make an application in android which gets the Latitude
We have a usb port in our android tablet(version 4.0.3). How do we find
I want to use Gama component in Android to make our app good.I have
I want to implement an android app which compares recorded audio files with our
How can I get that API into our Android project.
I'm working on an Android project to scan the local WiFi environment in our
I have a project that is just using Android 1.5 for programming, but with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.