Commit Graph

482 Commits

Author SHA1 Message Date
Jeroen Engels
929d8508fd Fix let function arguments not registering with the correct module name 2023-06-17 19:49:41 +02:00
Jeroen Engels
84aae3b64b Make test setup failure more helpful 2023-06-17 19:49:41 +02:00
Jeroen Engels
f5cf817169 Remove outdated TODOs 2023-04-15 20:32:55 +02:00
Jeroen Engels
ed59b64dae Turn fixes into ErrorFixes 2023-04-11 00:13:48 +02:00
Jeroen Engels
c32689a730 Add test for checking that README fixed are applied 2023-04-10 11:49:41 +02:00
Jeroen Engels
b3bb662b36 Add test package elm.json 2023-04-10 11:40:14 +02:00
Jeroen Engels
084b8d3860 Add helper to parse elm.json files 2023-04-10 11:39:07 +02:00
Jeroen Engels
34aa2835a1 Add new test 2023-04-10 08:53:25 +02:00
Jeroen Engels
8c0c8cbe52 Check the fixed errors 2023-04-10 08:53:25 +02:00
Jeroen Engels
1fe9f61518 Decode the elm.json to avoid inconsistencies 2023-04-10 08:53:25 +02:00
Jeroen Engels
1ad68a693e Add alias to Json.Encode 2023-04-10 08:53:25 +02:00
Jeroen Engels
3e96146587 Add test to check that fixes work on elm.json 2023-04-10 08:53:25 +02:00
Jeroen Engels
1b4608a680 Add a helper to create a version 2023-04-10 08:53:25 +02:00
Jeroen Engels
abf205c24f Pass the rule explicitly 2023-04-10 08:53:25 +02:00
Jeroen Engels
7f60cb7327 Add utilities to create elm.json files 2023-04-10 08:53:25 +02:00
Jeroen Engels
eb25c6dff6 Add a test for fixes with limits 2023-04-10 08:53:25 +02:00
Jeroen Engels
2391a52cef Change test titles 2023-04-10 08:53:25 +02:00
Jeroen Engels
9f07a21a34 Add an expectation on the fixed errors 2023-04-10 08:53:25 +02:00
Jeroen Engels
c7a39beccb Extract variable 2023-04-10 08:53:25 +02:00
Jeroen Engels
dc8077ebda Use less pipes 2023-04-10 08:53:25 +02:00
Jeroen Engels
f16dfc3ce6 USe Expect.all 2023-04-10 08:53:25 +02:00
Jeroen Engels
187dcd78e1 Extract variable 2023-04-10 08:53:25 +02:00
Jeroen Engels
3649eaec15 Fix another problem 2023-04-10 08:53:25 +02:00
Jeroen Engels
3c3380f5cf Add helper 2023-04-10 08:53:25 +02:00
Jeroen Engels
24ea436bd1 Improve order test to check that imports are visited one in the right order 2023-03-30 10:30:59 +02:00
Jeroen Engels
484442ce3c Add test for the order of case branches 2023-03-18 10:04:16 +01:00
Jeroen Engels
fbc86c0adf Add test for the order of let declarations 2023-03-18 10:04:16 +01:00
Jeroen Engels
704537ffa2 Rename ignoredFilesImpactsResults to ignoredFilesImpactResults 2023-01-22 09:24:43 +01:00
Jeroen Engels
9decbec8df Make a nice error message 2023-01-22 09:11:26 +01:00
Jeroen Engels
c5d1bd74b0 Add a test case 2023-01-22 09:11:26 +01:00
Jeroen Engels
365e838bac Test empty details for configuration errors 2022-12-28 16:45:25 +01:00
Jeroen Engels
227db6df30 Test empty details for global errors 2022-12-28 16:45:25 +01:00
Jeroen Engels
988c9364aa Add test for checking an empty details 2022-12-28 16:45:25 +01:00
Jeroen Engels
66dc42725d Add helper to easily create custom message/details in tests 2022-12-28 16:45:25 +01:00
Jeroen Engels
07999d3d3f Make error message more consistent 2022-12-28 16:45:25 +01:00
Jeroen Engels
3504cac433 Add test for checking an unexpected configuration error 2022-12-28 16:45:25 +01:00
Jeroen Engels
087fb63d4c Add test for checking the configuration error message 2022-12-28 16:45:25 +01:00
Jeroen Engels
02302ef0e0 Use expectations of failure to test unexpected configuration error details 2022-12-28 16:45:25 +01:00
Jeroen Engels
d4e54f2691 Use expectations of failure to test unexpected global error details 2022-12-28 16:45:25 +01:00
Jeroen Engels
aee3c0f8a4 Use expectations of failure to test unexpected details 2022-12-28 16:45:25 +01:00
Jeroen Engels
a084a208db Also check for the length of the error messaage 2022-12-28 16:45:25 +01:00
Jeroen Engels
338b47735e Use expectations of failure to test incorrect under position 2022-12-28 16:45:25 +01:00
Jeroen Engels
8f0afe515b Use expectations of failure to test unexpected global error message 2022-12-28 16:45:25 +01:00
Jeroen Engels
c2f95dec1f Use expectations of failure to test unexpected error message 2022-12-28 16:45:25 +01:00
Jeroen Engels
f88e0fbda2 Use expectations of failure to test unexpected global errors 2022-12-28 16:45:25 +01:00
Jeroen Engels
6f417c8431 Rename test rule 2022-12-28 16:45:25 +01:00
Jeroen Engels
84a861f4b7 Use expectations of failure to test unexpected errors 2022-12-28 16:45:21 +01:00
Jeroen Engels
aa9f1384f5 Use expectations of failure to test parsing errors 2022-12-28 16:45:21 +01:00
Jeroen Engels
66ee143b08 Fix withIsFileIgnored returning the wrong value 2022-12-20 21:53:04 +01:00
Jeroen Engels
6bdb985f8f Backport rules from elm-review-cognitive-complexity 2022-12-16 16:54:04 +01:00