Commit Graph

2618 Commits

Author SHA1 Message Date
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
6019524a87 Inline projectReadme 2023-04-10 11:31:48 +02:00
Jeroen Engels
d08f057f3e Split computeReadme 2023-04-10 11:31:28 +02:00
Jeroen Engels
10140cf957 Merge computeFinalProjectEvaluation and computeFinalProjectEvaluationHelp 2023-04-10 11:28:24 +02:00
Jeroen Engels
475c6bf11c Remove Output type 2023-04-10 11:26:13 +02:00
Jeroen Engels
6a8ae9ce5e Change the data for FoundNoFixes 2023-04-10 11:25:42 +02:00
Jeroen Engels
b7bef44d03 Rename variable 2023-04-10 11:24:13 +02:00
Jeroen Engels
801f0f1916 Stop returning errors in computeFinalProjectEvaluationHelp 2023-04-10 11:23:15 +02:00
Jeroen Engels
11119c29fc Stop looking for fixes in computeFinalProjectEvaluation 2023-04-10 11:22:14 +02:00
Jeroen Engels
aa4ff7b2d5 Find fixes on the errors reported by the given rule 2023-04-10 11:20:52 +02:00
Jeroen Engels
4c0166b2ae Pass more arguments 2023-04-10 11:17:02 +02:00
Jeroen Engels
2383c96323 Extract 2023-04-10 11:13:35 +02:00
Jeroen Engels
83fe044204 Add variant for when we find fixes 2023-04-10 11:12:02 +02:00
Jeroen Engels
f24ff2e52a Rename variant 2023-04-10 11:11:12 +02:00
Jeroen Engels
16d7583a3a Use case expression 2023-04-10 11:09:45 +02:00
Jeroen Engels
37c75be380 Rename variant 2023-04-10 11:09:07 +02:00
Jeroen Engels
e94eecabcd Return custom type 2023-04-10 09:13:40 +02:00
Jeroen Engels
97ce3e3282 Add type annotation 2023-04-10 09:13:03 +02:00
Jeroen Engels
dbc510b150 Use a recursive function rather than a fold 2023-04-10 09:07:44 +02:00
Jeroen Engels
0c7b30c562 Create helper function 2023-04-10 09:05:23 +02:00
Jeroen Engels
1f78ba22b6 Rename Abort to EndAnalysis 2023-04-10 08:55:28 +02:00
Jeroen Engels
8d7ef680ed Log about fixed errors only once 2023-04-10 08:53:25 +02:00
Jeroen Engels
555f50ba85 Revert "Cause the analysis to be aborted when elm.json has been modified"
This reverts commit 37a80ef295bb504f734530d880fcb2dd3d4809cd.
2023-04-10 08:53:25 +02:00
Jeroen Engels
8596a8892e Abort when discovering an error that touches elm.json 2023-04-10 08:53:25 +02:00
Jeroen Engels
ab23309d6d Cause the analysis to be aborted when elm.json has been modified 2023-04-10 08:53:25 +02:00
Jeroen Engels
48a5b0ad41 Don't return a Maybe 2023-04-10 08:53:25 +02:00
Jeroen Engels
248dc2b23f Always abort on fixes after elm.json analysis 2023-04-10 08:53:25 +02:00
Jeroen Engels
05c362155f Remove all checks of what can or can't be applied in elm.json
Instead, we will stop all further analysis, and if the fix is accepted,
then the CLI will reboot everything from scratch anyway.
2023-04-10 08:53:25 +02:00
Jeroen Engels
2b208b8c6f Remove redundant comment 2023-04-10 08:53:25 +02:00
Jeroen Engels
bb58d1d76b Extract to variable 2023-04-10 08:53:25 +02:00
Jeroen Engels
04081dbdac Extract to variable 2023-04-10 08:53:25 +02:00
Jeroen Engels
d898858548 Inline computeUpdatedDependencies 2023-04-10 08:53:25 +02:00
Jeroen Engels
a6f3d87765 Avoid re-setting dependencies when they haven't changed 2023-04-10 08:53:25 +02:00
Jeroen Engels
ba33b1caf0 Remove unnecessary re-setting of source directories 2023-04-10 08:53:25 +02:00
Jeroen Engels
129d95889c Make FixedErrors' data a record 2023-04-10 08:53:25 +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