Git Product home page Git Product logo

Comments (5)

stuartskelton avatar stuartskelton commented on August 20, 2024

I wonder if we could put a PR into Path::Tiny to extend the lines, to have a start_at option.

my $start = $violation_line - $config_plus_minus;
@violation_area = $file->lines(
    {
        start_at => $start < 0 ? 0 : $start,
        count    => ($config_plus_minus * 2) + 1
    }
);

Other wise we'll just have to make out own file splice subroutine.
(sorry for the edit spam)

from p5-app-critique.

stuartskelton avatar stuartskelton commented on August 20, 2024

Or thinking about it, File::Tie could be an option.

from p5-app-critique.

stevan avatar stevan commented on August 20, 2024

Actually I was thinking I could use the PPI nodes to get the info. Traverse up to the parent node, note the line number, render the parent node and trim the resulting string appropriately.

That said, I've not tried to do this yet :)

On Sep 4, 2016, at 22:39, Stuart Skelton [email protected] wrote:

Or thinking about it, File::Tie could be an option.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from p5-app-critique.

stuartskelton avatar stuartskelton commented on August 20, 2024

I look forward to seeing that commit chain.

On 5 Sep 2016 8:35 a.m., "Stevan Little" [email protected] wrote:

Actually I was thinking I could use the PPI nodes to get the info.
Traverse up to the parent node, note the line number, render the parent
node and trim the resulting string appropriately.

That said, I've not tried to do this yet :)

On Sep 4, 2016, at 22:39, Stuart Skelton [email protected]
wrote:

Or thinking about it, File::Tie could be an option.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#27 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAc1FnhhxWD964OTbjQqEcLtG9RgCgc6ks5qm8Y5gaJpZM4J0l37
.

from p5-app-critique.

stevan avatar stevan commented on August 20, 2024

Haha, me too ;)

from p5-app-critique.

Related Issues (19)

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.