Factory plunger cannot find any jumpers

How to configure phabricator to use only files that match *py ?

Below is my .arclint file:

 { "linters": { "pylint": { "type": "pylint", "include": "(\\.py$)" } } } 

which is based on the examples found here: https://secure.phabricator.com/book/phabricator/article/arcanist_lint/

When I run it, I get the following:

 $ arc lint No paths are lintable. 

If I delete the include line, it tries to tie every file, so there should be something wrong in the regular expression: "(\\.py$)" , which, frankly, looks strange to me, but that’s exactly what I found in the examples. And "(*.py)" , "*.py" and "^*.py$" are all invalid regular expressions.

+6
source share
1 answer

Thus, it turns out that there is nothing wrong with the regular expression. I just do not use arc lint correctly.

The arc lint command only tries to reinstall files that have been modified. I just expected it to behave like arc lint --everything .

 $ arc lint --help lint [options] [paths] lint [options] --rev [rev] Supports: git, svn, hg Run static analysis on changes to check for mistakes. If no files are specified, lint will be run on all files which have been modified. 
+13
source

All Articles