Commit Graph

50 Commits

Author SHA1 Message Date
Dillon Kearns
efa0b8dbd7 Review fixes. 2023-05-25 08:33:00 -07:00
Dillon Kearns
a010d93a9d Rename Path -> UrlPath. 2023-05-17 10:12:18 -07:00
Dillon Kearns
b01ec4c8a7 Review fixes. 2023-05-10 10:36:45 -07:00
Dillon Kearns
46296abb60 Update some projects. 2023-04-19 10:49:48 -07:00
Dillon Kearns
96dd80e8a0 Move elm-review dependencies out into hidden review sub-projects. 2022-10-04 13:15:20 -07:00
Dillon Kearns
3bb7c37e4a Handle endings in toModuleName. 2022-09-15 10:39:22 -07:00
Dillon Kearns
ac57661c61 Add starting point for RoutePattern.toModuleName helper. 2022-09-15 10:36:56 -07:00
Dillon Kearns
59a0bc1306 Review fixes. 2022-09-15 07:45:10 -07:00
Dillon Kearns
c93e3d8f85 Fix case for index route codegen. 2022-09-13 08:55:41 -07:00
Dillon Kearns
f07f5feac9 Remove debug.todo. 2022-09-13 08:50:24 -07:00
Dillon Kearns
c81649d93b Handle required splats in generated route module. 2022-09-13 06:51:21 -07:00
Dillon Kearns
27e58f1027 Handle optional case with correctly generating record argument. 2022-09-13 06:37:51 -07:00
Dillon Kearns
27d13c5a15 Prepare for generating 2 branches for optional params. 2022-09-12 21:45:34 -07:00
Dillon Kearns
aba66fef3b Handle optional ending. 2022-09-12 21:24:14 -07:00
Dillon Kearns
693094e6bf Generate records and case expression with no ending. 2022-09-12 21:05:01 -07:00
Dillon Kearns
b93c98ba23 Remove hardcoded name. 2022-09-12 17:00:58 -07:00
Dillon Kearns
9e9cf969e9 Use elm-syntax-dsl for case expression. 2022-09-12 16:59:11 -07:00
Dillon Kearns
fe3c79f30a Add test setup for branch generator. 2022-09-12 15:08:11 -07:00
Dillon Kearns
a9ac1ca707 Add test case for optional segment. 2022-09-12 13:21:41 -07:00
Dillon Kearns
261cd64ed5 Handle optional splat. 2022-09-12 13:20:44 -07:00
Dillon Kearns
2115b9be9d Handle splat route for generating variants. 2022-09-12 13:19:25 -07:00
Dillon Kearns
3f12c6ccb5 Add test for dynamic route param. 2022-09-12 12:16:18 -07:00
Dillon Kearns
c27459fa8d Add RoutePattern.toVariant helper. 2022-09-12 11:59:36 -07:00
Dillon Kearns
459f6df9de Remove module contract requirement for View.placeholder since it is obsolete now with new scaffolding. 2022-09-09 13:09:02 -07:00
Dillon Kearns
b409ef1957 Parse RouteParams in scaffolding generator. 2022-09-09 12:45:28 -07:00
Dillon Kearns
5f148bf277 Run dead-code elimination for Route Modules' action function in addition to data function. 2022-06-30 12:24:01 -07:00
Dillon Kearns
325004f3fc Try removing symlink. 2022-06-30 11:56:13 -07:00
Dillon Kearns
8ea702f4e7 Update examples. 2022-06-28 15:45:36 -07:00
Dillon Kearns
ec40fa4740 Ensure that ActionData is exposed. 2022-05-11 15:52:15 -07:00
Dillon Kearns
d50846cf9b Check for exposed head function in NoContractViolations. 2022-03-31 09:17:49 -07:00
Dillon Kearns
339d54a9e9 Update examples to use ErrorPage, and add to NoContractViolations. 2022-03-29 15:32:43 -07:00
Dillon Kearns
f5e2b511a0 Report contract violation errors for missing exposed types and values for core modules. 2022-03-24 16:10:35 -07:00
Dillon Kearns
a6870989a1 Report missing core modules in NoContractViolations review check. 2022-03-24 15:18:28 -07:00
Dillon Kearns
717d1a8a2a Use module name lookup table to make sure RouteBuilder references are caught whether or not it is aliased/unqualified. 2022-03-11 11:29:57 -08:00
Dillon Kearns
9fe97c7b9a Update elm-review codemod and contract enforcer with new route naming. 2022-03-09 09:48:48 -08:00
Dillon Kearns
f16a30320d Rename Page.elm -> RouteBuilder.elm. 2022-03-05 09:50:01 -08:00
Dillon Kearns
18666e18be Update error messages and internal naming in no contract violations rule. 2022-03-05 09:40:23 -08:00
Dillon Kearns
70143e7149 Fix no contract violations check to handle new Route Modules naming convention. 2022-03-05 09:38:18 -08:00
Dillon Kearns
edfe401f30 Fix some test cases. 2022-02-26 14:10:31 -08:00
Dillon Kearns
e793a8fe89 Ensure that fixes don't infinitely apply for Request.oneOf [] case. 2022-02-21 15:50:17 -08:00
Dillon Kearns
c47dfce740 Handle remaining dead-code elimination cases. 2022-02-13 13:52:31 -08:00
Dillon Kearns
88ca2f8a02 Remove DataSource code from bundle. 2022-02-13 12:42:31 -08:00
Dillon Kearns
6327087998 Add symlink to Internal folder so unit tests can depend on copied internal code files in generated folder. 2021-12-11 12:20:08 -08:00
Dillon Kearns
b3dbb7d4d6 Use more precise region for RouteParams rule errors. 2021-08-27 09:35:57 -07:00
Dillon Kearns
27c75fba9b Point unexposed error to more narrow exposing line. 2021-08-27 09:27:04 -07:00
Dillon Kearns
194470aaf4 Handle optional splats in rule. 2021-08-26 14:05:00 -07:00
Dillon Kearns
562a6e39fd Handle Required Splat route params in rule. 2021-08-26 13:52:51 -07:00
Dillon Kearns
81bc444ba0 Handle optional and required route params in rule. 2021-08-26 13:30:44 -07:00
Dillon Kearns
b3e1d7dc3a Don't run Page Module rules except on Page Modules. 2021-08-26 12:51:21 -07:00
Dillon Kearns
83e1aeddb0 Move review rule to Elm package. 2021-08-26 10:27:30 -07:00