| 1 | #PerlySense Project Config |
|---|
| 2 | |
|---|
| 3 | #What's this all about? See: http://search.cpan.org/dist/Devel-PerlySense/ |
|---|
| 4 | |
|---|
| 5 | project: |
|---|
| 6 | |
|---|
| 7 | #The human readable name of the Project |
|---|
| 8 | moniker: 'WWW::HatenaDiary' |
|---|
| 9 | |
|---|
| 10 | #Extra @INC directories, relative to the project root |
|---|
| 11 | #These come before the default inc directories "." and "lib" |
|---|
| 12 | inc_dir: [] |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | #Bookmarks are regexes that may match against a single line. |
|---|
| 16 | # |
|---|
| 17 | #The "rex" is either a qr regex declaration, or an array ref of |
|---|
| 18 | #regexes (any of them could match to make a bookmark for the line). |
|---|
| 19 | # |
|---|
| 20 | #The line, or $1 if captured, is displayed. |
|---|
| 21 | bookmark: |
|---|
| 22 | - |
|---|
| 23 | moniker: Todo |
|---|
| 24 | rex: |
|---|
| 25 | - qr/\# \s* TODO \s* : \s* (.+?) \s*$/x |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | external: |
|---|
| 29 | editor: |
|---|
| 30 | |
|---|
| 31 | #Emacs specific configuration |
|---|
| 32 | emacs: |
|---|
| 33 | |
|---|
| 34 | #To enable flymake in Emacs, configure this in your .emacs file |
|---|
| 35 | #(setq perly-sense-load-flymake t) |
|---|
| 36 | # |
|---|
| 37 | #For more details, settings and colors, see: |
|---|
| 38 | #http://search.cpan.org/dist/Devel-PerlySense/lib/Devel/PerlySense.pm#Emacs_installation |
|---|
| 39 | # |
|---|
| 40 | flymake: |
|---|
| 41 | |
|---|
| 42 | #During a flymake compilation, perly_sense can run: |
|---|
| 43 | |
|---|
| 44 | #Check Syntax (perl -c) |
|---|
| 45 | # |
|---|
| 46 | #!!!NOTE!!! |
|---|
| 47 | # Running perl -c on random Perl code will execute |
|---|
| 48 | # the BEGIN blocks! Any funny business in them and you're toast! |
|---|
| 49 | #!!!NOTE!!! |
|---|
| 50 | syntax: 1 |
|---|
| 51 | |
|---|
| 52 | #Perl Critic |
|---|
| 53 | #PerlySense will point Critic to a .perlcritic file in this |
|---|
| 54 | #directory. A default config file with fairly lenient rules is |
|---|
| 55 | #provided. |
|---|
| 56 | critic: 1 |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | #These are evaluated in order to find a way to run a file. First |
|---|
| 61 | #match is used. |
|---|
| 62 | run_file: |
|---|
| 63 | - |
|---|
| 64 | command: "prove -v --no-color ${INC} \"${SOURCE_FILE}\"" |
|---|
| 65 | moniker: Test |
|---|
| 66 | rex: \.t$ |
|---|
| 67 | run_from: source_root_directory |
|---|
| 68 | - |
|---|
| 69 | command: "perl -wc ${INC} \"${SOURCE_FILE}\" 2>&1| perl -ne \"/Subroutine \w+ redefined at/ or print\"" |
|---|
| 70 | moniker: Module |
|---|
| 71 | rex: \.pm$ |
|---|
| 72 | run_from: source_root_directory |
|---|
| 73 | - |
|---|
| 74 | command: "perl ${INC} \"${SOURCE_FILE}\"" |
|---|
| 75 | moniker: Script |
|---|
| 76 | rex: \.pl$ |
|---|
| 77 | run_from: file_directory |
|---|
| 78 | |
|---|
| 79 | #This is a catch-all for all other types of files |
|---|
| 80 | - |
|---|
| 81 | command: "perl ${INC} \"${SOURCE_FILE}\"" |
|---|
| 82 | moniker: 'Script (no .pl)' |
|---|
| 83 | rex: . |
|---|
| 84 | run_from: file_directory |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | #EOF |
|---|