diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-19 00:54:09 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-19 00:54:09 +0000 |
commit | 7123f7236b5415c29f1b48c01d2528f71c457be2 (patch) | |
tree | c6126064962e41a74e5555139045f7ce692fd359 /test | |
parent | c012563984f0470a7c637b3b55cebea28b7a50b0 (diff) | |
download | ale-7123f7236b5415c29f1b48c01d2528f71c457be2.zip |
#852 - Capture error codes for reek
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_reek_handler.vader | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/handler/test_reek_handler.vader b/test/handler/test_reek_handler.vader index 6861428c..db0a1119 100644 --- a/test/handler/test_reek_handler.vader +++ b/test/handler/test_reek_handler.vader @@ -12,17 +12,20 @@ Execute(The reek handler should parse JSON correctly, with only context enabled) \ [ \ { \ 'lnum': 12, - \ 'text': 'Rule1: Context#method violates rule number one', + \ 'text': 'Context#method violates rule number one', + \ 'code': 'Rule1', \ 'type': 'W', \ }, \ { \ 'lnum': 34, - \ 'text': 'Rule2: Context#method violates rule number two', + \ 'text': 'Context#method violates rule number two', + \ 'code': 'Rule2', \ 'type': 'W', \ }, \ { \ 'lnum': 56, - \ 'text': 'Rule2: Context#method violates rule number two', + \ 'text': 'Context#method violates rule number two', + \ 'code': 'Rule2', \ 'type': 'W', \ }, \ ], @@ -38,7 +41,8 @@ Execute(The reek handler should parse JSON correctly, with no context or wiki li \ [ \ { \ 'lnum': 12, - \ 'text': 'Rule1: violates rule number one', + \ 'text': 'violates rule number one', + \ 'code': 'Rule1', \ 'type': 'W', \ }, \ ], @@ -54,7 +58,8 @@ Execute(The reek handler should parse JSON correctly, with both context and wiki \ [ \ { \ 'lnum': 12, - \ 'text': 'Rule1: Context#method violates rule number one [https://example.com/Rule1.md]', + \ 'text': 'Context#method violates rule number one [https://example.com/Rule1.md]', + \ 'code': 'Rule1', \ 'type': 'W', \ }, \ ], |