Commit Graph

519 Commits

Author SHA1 Message Date
Jeroen Engels
79b56c6066 Fix confusing test 2023-06-17 19:59:24 +02:00
Jeroen Engels
05fb48fcca Add autofix to inject a new version 2023-06-17 19:59:24 +02:00
Jeroen Engels
500923da91 Inline findUnreleasedRange 2023-06-17 19:59:24 +02:00
Jeroen Engels
ce66fafdfe Add case expression 2023-06-17 19:59:24 +02:00
Jeroen Engels
c78297f483 Use withFix 2023-06-17 19:59:24 +02:00
Jeroen Engels
aa48c3df63 Extract variable 2023-06-17 19:59:24 +02:00
Jeroen Engels
ca33d96ef2 Report the first line when unreleased could not be found 2023-06-17 19:59:24 +02:00
Jeroen Engels
d16f175dd0 Report the line for Unreleased 2023-06-17 19:59:24 +02:00
Jeroen Engels
04ad09644d Add findUnreleasedRange 2023-06-17 19:59:24 +02:00
Jeroen Engels
3538b75cac Extract to function 2023-06-17 19:59:24 +02:00
Jeroen Engels
a549883b89 Expect to be under Unreleased 2023-06-17 19:59:24 +02:00
Jeroen Engels
e0fc0df147 Add [Unreleased] to tests 2023-06-17 19:59:24 +02:00
Jeroen Engels
df6cb154ff Update range 2023-06-17 19:59:24 +02:00
Jeroen Engels
3024910771 Target changelog in tests 2023-06-17 19:59:24 +02:00
Jeroen Engels
f92ee4b901 Report an error for the changelog file 2023-06-17 19:59:24 +02:00
Jeroen Engels
45774ce35b fixup! Add visitor for the changelog 2023-06-17 19:59:24 +02:00
Jeroen Engels
608855d1e0 Don't report errors if the version is 1.0.0 2023-06-17 19:59:24 +02:00
Jeroen Engels
14227c4b35 Pass a version when creating a package in tests 2023-06-17 19:59:24 +02:00
Jeroen Engels
676742d633 Report an error if the project is an application 2023-06-17 19:59:24 +02:00
Jeroen Engels
91bfcb1baf Report a global error when the path was custom but could not be found 2023-06-17 19:59:24 +02:00
Jeroen Engels
b29d9f3fef Report a global error if the changelog could not be found 2023-06-17 19:59:24 +02:00
Jeroen Engels
eecf1e4f24 Add the ability to configure the path 2023-06-17 19:59:24 +02:00
Jeroen Engels
2cb805bf91 Report an error when the version could not be found 2023-06-17 19:59:24 +02:00
Jeroen Engels
da70f8c64f Add visitor for the changelog 2023-06-17 19:59:24 +02:00
Jeroen Engels
5322a8a5d1 Add elm.json visitor to get the version 2023-06-17 19:59:24 +02:00
Jeroen Engels
64554ef45f Add tests 2023-06-17 19:59:24 +02:00
Jeroen Engels
04f9a1527b Add new rule Docs.NoMissingChangelogEntry 2023-06-17 19:59:24 +02:00
Jeroen Engels
ac9fefd13e Add test for the visiting order of extra files 2023-06-17 19:57:56 +02:00
Jeroen Engels
201b93311a Name things extra files instead of arbitrary files 2023-06-17 19:57:56 +02:00
Jeroen Engels
6614d677b6 Add test to make sure files only have access to the files they requested 2023-06-17 19:57:56 +02:00
Jeroen Engels
7935afd767 Add the visitor in each test 2023-06-17 19:57:56 +02:00
Jeroen Engels
a6f7aa7a71 Add helper function for creating project in tests 2023-06-17 19:57:56 +02:00
Jeroen Engels
71541bb3b2 Filter out files that were not requested 2023-06-17 19:57:56 +02:00
Jeroen Engels
ce3442ddfe Remove unused import 2023-06-17 19:57:56 +02:00
Jeroen Engels
625bbb5f14 Use exact matches for now in tests 2023-06-17 19:57:56 +02:00
Jeroen Engels
57118354be Add a requested files field 2023-06-17 19:57:56 +02:00
Jeroen Engels
080506814a Add test for arbitrary files visitor 2023-06-17 19:57:56 +02:00
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