Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: perlcritic speedup

by jthalhammer (Friar)
on Jan 25, 2012 at 10:09 UTC ( #949864=note: print w/replies, xml ) Need Help??


in reply to Re^4: perlcritic speedup
in thread perlcritic speedup

Well, flymake looks like exactly what you need:

Flymake is a Vim plugin to perform on-the-fly syntax checking for the files being edited by using the external syntax checking tool (usually a compiler). It also highlights erroneous lines and displays associated error and warning messages. This plugin is a port of 'flymake-mode' for Emacs.

Just substitute the world "perlcritic" wherever it says "compiler", and BAM! The trick is configuring the output of perlcritic to look like the output of a compiler. The formatting capabilities of the --verbose option are designed precisely for this situation.

I know that people have successfully used Emacs' flymake-mode with perlcritic. So I gotta believe that you can make it work with vim-flymake. Let me know how it works out.

Jeffrey Thalhammer
Imaginative Software Systems

Replies are listed 'Best First'.
Re^6: perlcritic speedup
by powerman (Friar) on Jan 25, 2012 at 10:29 UTC

    I know I can use perlcritic as "compiler" - that's how I use it with syntastic. :)

    As for flymake, I don't think it's doing anything interesting. If you check the code, you'll see it start on file save, just like all other syntax checkers for Vim, and just run external checker using usual blocking system(), not in background. So, flymake is just basic version of much more advanced syntastic plugin.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949864]
help
Chatterbox?
[PriNet]: i think i found the problem, the "source" array that sets the individual key values isn't being cleared, it's keeping the previous values...
[atcroft]: PriNet: You might consider posting a small, self-contained snippet of that segment of your code, and see if someone else has a better idea.....
[atcroft]: PriNet: Ahhh... interesting.
[PriNet]: small would be a problem *heh*... the program reads all the lines from a pdf and converts the individual colum data to a seperate key/value pair... that's where the "previous" array from the pdf is not being cleared properly before reading the next pdf
[atcroft]: PriNet: It was a thought....
[PriNet]: thanx... actually just having someone to talk to was making me think... *heh*
[PriNet]: a regular array would just be "delete @array" correct? no need for the post "()" ?

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-06-28 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (620 votes). Check out past polls.