Giter Site home page Giter Site logo

Comments (8)

ychulovskyy avatar ychulovskyy commented on May 21, 2024

I'll work on it.

from checkstyle.

mkordas avatar mkordas commented on May 21, 2024

Hi Iurii, StrictDuplicateCode has been removed from Checkstyle, so this
issue can be just closed.
24-12-2014 23:36 użytkownik "Yuriy Chulovskyy (Iurii Chulovskyi)" <
[email protected]> napisał:

I'll work on it.


Reply to this email directly or view it on GitHub
#26 (comment)
.

from checkstyle.

ychulovskyy avatar ychulovskyy commented on May 21, 2024

@mkordas Thanks for update!
@romani Could you please close the issue?

from checkstyle.

romani avatar romani commented on May 21, 2024

@ychulovskyy, here problem is not about a particular Check , you can substitude StrictDuplicateCheck to another Check that is not running under TreeWalker. Such Checks are called FileSet checks.

from checkstyle.

ychulovskyy avatar ychulovskyy commented on May 21, 2024

Ok, I've found the issue.
Checker.process do the following:

        for (final FileSetCheck fsc : mFileSetChecks) {
            // They may also log!!!
            fsc.finishProcessing();
            fsc.destroy();
        }

Need to do the same but in separate loops. Otherwise destroy method will release file context and next check doesn't have it. As a result - filter.accept() will return true and we will see the audit message.
Will fix and create test in a few days.

from checkstyle.

romani avatar romani commented on May 21, 2024

@ychulovskyy , are you planing to provide fix or our team should do that ?

from checkstyle.

ychulovskyy avatar ychulovskyy commented on May 21, 2024

@romani I'll provide till EOW. It's not so important since there is no more checks that do processing in finishProcessing() method. Only StrictDuplicateCodehad it.
So, need to think how to test the fix.

from checkstyle.

romani avatar romani commented on May 21, 2024

that solution is accepted, but #820 is created to fix that conceptual problem.

fix is merged, will be in 6.5

from checkstyle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.