Commit Graph

347 Commits

Author SHA1 Message Date
Jeroen Engels
253b04187e Add unexpectedGlobalErrorDetails 2021-03-10 17:02:21 +01:00
Jeroen Engels
f1f97de257 Change error message for unexpectedDetails 2021-03-10 17:02:21 +01:00
Jeroen Engels
5e112638f7 Change test breakage 2021-03-10 17:02:21 +01:00
Jeroen Engels
279ac055bb Remove handling of global error module name 2021-03-10 17:02:21 +01:00
Jeroen Engels
bbc4697d9f Duplicate 2021-03-10 17:02:21 +01:00
Jeroen Engels
0dd50b51d9 break test 2021-03-10 17:02:21 +01:00
Jeroen Engels
0c5feb427c Start working on expectGlobalErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
cb84596b08 Handle global errors differently 2021-03-10 17:02:21 +01:00
Jeroen Engels
f46f3216bb Make a specific error for too many global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
cc17889499 Make a specific error for unexpected global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
4cb8d74815 Change the error message for global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
1789110c4a Use globalerror 2021-03-10 17:02:21 +01:00
Jeroen Engels
3d2b7234f9 Fix test 2021-03-10 17:02:21 +01:00
Jeroen Engels
22f68ab542 Add Review.Test.expectGlobalErrors function 2021-03-10 17:02:21 +01:00
Jeroen Engels
6345bc8a90 Add annotations 2021-03-10 17:02:21 +01:00
Jeroen Engels
0d7eb30f4e Remove code related to getting the elm.json key 2021-03-10 17:02:21 +01:00
Jeroen Engels
362a192665 Print target function name 2021-03-10 17:02:21 +01:00
Jeroen Engels
2da8367965 NoUnsafeRegexFromLiteral: Report as global error 2021-03-10 17:02:21 +01:00
Jeroen Engels
6bf6d41c55 Backport NoUnsafeRegexFromLiteral rule 2021-02-28 18:51:45 +01:00
Jeroen Engels
a4bb1719b5 Backport rules from elm-review-code-style 2021-02-10 17:15:09 +01:00
Jeroen Engels
584f0bef8a Adapt tests to elm-syntax fix 2021-02-02 16:03:05 +01:00
Jeroen Engels
4669fe3960 Backport elm-review-unused 2021-01-24 16:46:42 +01:00
Jeroen Engels
63819d3fb7 Backport elm-review-debug 2021-01-24 16:43:58 +01:00
Jeroen Engels
fa8bc02068 Backport rules from elm-review-common 2021-01-19 21:45:35 +01:00
Jeroen Engels
cb604c782f Backport unused and test-values 2020-12-23 19:12:04 +01:00
Jeroen Engels
2a4c93a0b4 Remove unused imports 2020-12-21 21:45:55 +01:00
Jeroen Engels
f044f9cd1d ModuleNameLookupTable: Add test to make sure that aliasing in patterns works 2020-12-06 14:30:39 +01:00
Jeroen Engels
c6ca7ec9fe Backport elm-review-unused 2020-12-05 12:40:40 +01:00
Jeroen Engels
13371a1af9 Backport rules from elm-review-noop 2020-11-18 10:16:23 +01:00
Jeroen Engels
ed1f40bbc3 Fix ModuleNameLookupTable not registering aliases from the prelude 2020-11-18 10:07:16 +01:00
Jeroen Engels
66f5375eaa ModuleNameLookupTableTest: Add tests for function declarations handling 2020-09-23 10:38:39 +02:00
Jeroen Engels
82037d4e5b ModuleNameLookupTableTest: Add signature texts 2020-09-23 10:30:47 +02:00
Jeroen Engels
efebce84d1 ModuleNameLookupTableTest: Refactor declaration visitor 2020-09-23 10:27:39 +02:00
Jeroen Engels
ccfcc99468 ModuleNameLookupTableTest: Add declaration visitor 2020-09-23 10:25:40 +02:00
Jeroen Engels
97c0e4abe9 Add test for handling pattern aliases 2020-09-23 10:21:35 +02:00
Jeroen Engels
c2488a06b0 Add failing test case for ModuleNameLookupTableTest 2020-09-23 10:12:19 +02:00
Jeroen Engels
b1b96c6dcf Backport rules from other projects 2020-09-23 08:11:51 +02:00
Jeroen Engels
80e4d87436 Use helper in declaration visitor 2020-09-22 19:08:17 +02:00
Jeroen Engels
75e535ce2a Use helper in expression visitor 2020-09-22 19:06:45 +02:00
Jeroen Engels
4ad35edde3 Add helper for showing the real name 2020-09-22 19:03:43 +02:00
Jeroen Engels
01e2f66fc7 Rename test module 2020-09-22 19:01:02 +02:00
Jeroen Engels
2208b410a0 Change test suite title 2020-09-22 19:00:15 +02:00
Jeroen Engels
e4acd4de29 Move code from ModuleNameForValueTest into ModuleNameForTypeTest 2020-09-22 18:59:34 +02:00
Jeroen Engels
bb0955c07b ModuleNameType: Creator rule dynamicaly 2020-09-22 18:56:30 +02:00
Jeroen Engels
e925d0a25a Fix files not being evaluated when they're ignored in project rules without a folder 2020-09-09 18:50:42 +02:00
Jeroen Engels
3087e757a8 Fix module name lookup table not knowing about patterns inside let functions destructuring 2020-09-08 10:06:28 +02:00
Jeroen Engels
0ff71b2c84 Remove unused code 2020-08-26 19:01:47 +02:00
Jeroen Engels
7c0d7e6fad Support record update functions for module name lookup table 2020-08-25 15:28:56 +02:00
Jeroen Engels
7455bca8a8 Use lookup table in ScopeExample 2020-08-22 10:23:25 +02:00
Jeroen Engels
9c40b95394 Add ScopeExample 2020-08-22 10:21:53 +02:00