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 6380821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:19:01+00:00 2026-05-25T02:19:01+00:00

We work with a lot of legacy code and we think about introducing some

  • 0

We work with a lot of legacy code and we think about introducing some metrics for new code. Is it possible to let Findbugs and Checkstyle run on changed files only instead of a complete project?

It would be nice to assure that only file with a minimum of quality is checked in, but the code base itself is not (yet) touched and evaluated not to confuse people by thousands of issues.

  • 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-05-25T02:19:01+00:00Added an answer on May 25, 2026 at 2:19 am

    In theory, it would be possible. You would use a shell script to parse the SVN (or whatever SCM) change logs after a given start date, identify the .java files from these change sets and build two patterns from these:

    • The Findbugs Maven Plugin expects a comma-separated list of class (or
      package) names for the parameter onlyAnalyze, so you’ll have
      to translate file names to fully qualified class names (this will get
      tricky when you’re dealing with inner classes)
    • The Maven Checkstyle Plugin is even worse, it expects a
      configuration file for its packageNamesLocation parameter.
      Unfortunately, only packages are allowed, not individual files. So
      you’ll have to translate file names to packages.

    In the above examples I assume that you are using maven. I am pretty sure that similar things can be done with ant, but I wouldn’t know.

    I myself would probably use a Groovy script instead of a shell script to achieve the above results.

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

Sidebar

Related Questions

I see a lot of legacy .Net 1.1-style code at work like in example
I have legacy C code base at work and I find a lot of
I am working with legacy systems at the moment, and a lot of work
Attempting to generics-ify some legacy code, I'm stuck. I have a ParentObject which wraps
We work on a lot of integration projects and a customer has a legacy
I'm working on a project that has a lot of legacy C code. We've
I have a lot of legacy code which I currently compile using an antiquated
I am currently doing some work for a company that runs a legacy web
At work, I am working with this old legacy code modified Cake-PHP code that
As a small company we do work a lot on open source code. (http://Github.com/agiliq).

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.