diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-12-19 21:24:44 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-12-19 21:24:44 +0100 |
commit | b4ceed37472579dda05b576095ad8fd57d650b1b (patch) | |
tree | 70d793c49039cbb215251df91015d4c07057e40f | |
parent | d2e2e7ded69b66386e2d9cc8e5fd275f11899d84 (diff) | |
download | pylint-git-b4ceed37472579dda05b576095ad8fd57d650b1b.tar.gz |
Add functional tests
6 files changed, 12 insertions, 2 deletions
diff --git a/tests/functional/e/.#emacs_file_lock.py b/tests/functional/e/.#emacs_file_lock.py index ff23907a9..80dc7634c 100644 --- a/tests/functional/e/.#emacs_file_lock.py +++ b/tests/functional/e/.#emacs_file_lock.py @@ -1,4 +1,4 @@ -# There is no module docstring, but we should not analyse this file -# Because it starts like an emacs file lock +# The name is invalid, but we should not analyse this file +# Because it starts like an emacs file lock ignored by default # https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html # See #367 diff --git a/tests/functional/e/.#emacs_file_lock_by_conf.py b/tests/functional/e/.#emacs_file_lock_by_conf.py new file mode 100644 index 000000000..ada62688b --- /dev/null +++ b/tests/functional/e/.#emacs_file_lock_by_conf.py @@ -0,0 +1,2 @@ +# The name is invalid, but we should not analyse this file +# Because it starts like an emacs file lock ignored in the configuration diff --git a/tests/functional/e/.#emacs_file_lock_by_conf.rc b/tests/functional/e/.#emacs_file_lock_by_conf.rc new file mode 100644 index 000000000..4140338cd --- /dev/null +++ b/tests/functional/e/.#emacs_file_lock_by_conf.rc @@ -0,0 +1,2 @@ +[MASTER] +ignore-patterns=^\.# diff --git a/tests/functional/e/.#emacs_file_lock_redefined_conf.py b/tests/functional/e/.#emacs_file_lock_redefined_conf.py new file mode 100644 index 000000000..9400a2602 --- /dev/null +++ b/tests/functional/e/.#emacs_file_lock_redefined_conf.py @@ -0,0 +1,3 @@ +# [invalid-name] +# The name is invalid, and we should analyse this file +# as the ignore-patterns is redefined in the configuration diff --git a/tests/functional/e/.#emacs_file_lock_redefined_conf.rc b/tests/functional/e/.#emacs_file_lock_redefined_conf.rc new file mode 100644 index 000000000..76cd083fd --- /dev/null +++ b/tests/functional/e/.#emacs_file_lock_redefined_conf.rc @@ -0,0 +1,2 @@ +[MASTER] +ignore-patterns="" diff --git a/tests/functional/e/.#emacs_file_lock_redefined_conf.txt b/tests/functional/e/.#emacs_file_lock_redefined_conf.txt new file mode 100644 index 000000000..52050dcc8 --- /dev/null +++ b/tests/functional/e/.#emacs_file_lock_redefined_conf.txt @@ -0,0 +1 @@ +invalid-name:1:0:None:None::Module name "#emacs_file_lock_redefined_conf" doesn't conform to snake_case naming style:HIGH |