GithubHelp home page GithubHelp logo

Comments (4)

luxaritas avatar luxaritas commented on August 18, 2024

I think there are actually two issues I've encountered here:

  1. There is handling for fullpath for not-match-d (

    cloc/cloc

    Line 5807 in 61817f5

    if ($opt_fullpath and any_match($F, 0, \$rule, @opt_not_match_d)) {
    ) that is missing for the following block that handles not-match-f
  2. The logic here (in invoke_generator, right now only implemented for not-match-d) falls through to the basename case if a match against the full path is not found. This is not the same behavior as in the non-vcs case (as implemented in files)

I can submit a patch for this if my understanding here is correct!

from cloc.

luxaritas avatar luxaritas commented on August 18, 2024

The prior issue appears to have been introduced in b793135, and the latter earlier in c4da737

from cloc.

AlDanial avatar AlDanial commented on August 18, 2024

Thanks for starting the troubleshooting work. Will be a few days before I can dive in.

from cloc.

luxaritas avatar luxaritas commented on August 18, 2024

I've gone ahead and submitted a PR, let me know if anything looks off!

from cloc.

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.