Commit Graph

1429 Commits

Author SHA1 Message Date
Jeroen Engels
c4f775fddb Speed up Review.Test 2022-09-18 08:12:34 +02:00
Jeroen Engels
6e883bca87 Filter ignored files and set rule name before caching errors 2022-09-18 00:24:24 +02:00
Jeroen Engels
5e8386c4ce Add name to RunnableProjectVisitor 2022-09-18 00:19:20 +02:00
Jeroen Engels
3b4a0fb789 Speed up Fix.containRangeCollisions 2022-09-17 22:36:41 +02:00
Jeroen Engels
43835d67a3 Speed up errorsFromCache 2022-09-17 22:28:17 +02:00
Jeroen Engels
8d7d0e2bb2 Speed up registerImportExposed 2022-09-17 22:25:04 +02:00
Jeroen Engels
d889646337 Speed up exposedElements 2022-09-17 22:25:02 +02:00
Jeroen Engels
59bf89ceae Speed up computeModuleAndCacheResult 2022-09-17 22:18:27 +02:00
Jeroen Engels
5c5deabdcc Speed up checkForConfigurationErrors 2022-09-17 22:14:41 +02:00
Jeroen Engels
ba3c03576a Speed up createDeclarationAndExpressionVisitor 2022-09-17 22:02:27 +02:00
Jeroen Engels
409816a707 Speed up compactProjectDataVisitors 2022-09-17 22:00:40 +02:00
Jeroen Engels
c5e090df77 Speed up scope_expressionEnterVisitor 2022-09-17 21:59:31 +02:00
Jeroen Engels
12f6807ce1 Speed up registerExposedCustomType 2022-09-17 21:55:06 +02:00
Jeroen Engels
a57aa78fb0 Speed up expressionChildrenTCO 2022-09-17 21:53:55 +02:00
Jeroen Engels
e726935135 Speed up computeModules 2022-09-17 21:46:20 +02:00
Jeroen Engels
bba7e19bbd Always compute the folded context, but compare with it
Previously we were comparing with the list of project contexts, which
I think will either be very costly or be frail in practice (if the order
of the contexts change?)

Now we always compute the folded project context if we need to (for
the final evaluation or for extracting), and compare against that to
see if we need to recompute the final evaluation or extract.
2022-09-17 21:34:48 +02:00
Jeroen Engels
0ace703e8e Change the order of operations in computeModules 2022-09-17 21:34:48 +02:00
Jeroen Engels
32b38f3e82 Speed up removeErrorPhantomTypeFromVisitor 2022-09-17 21:34:48 +02:00
Jeroen Engels
d43f3b5a17 Speed up withFinalProjectEvaluation 2022-09-17 21:34:48 +02:00
Jeroen Engels
175588a996 Speed up runRules 2022-09-17 21:34:48 +02:00
Jeroen Engels
9bf2ad4127 Speed up checkForModulesThatFailedToParse 2022-09-17 21:34:48 +02:00
Jeroen Engels
c931c47c81 Speed up runReview 2022-09-17 21:34:48 +02:00
Jeroen Engels
0d944f581f Speed up review 2022-09-17 21:34:48 +02:00
Jeroen Engels
07767a2be5 Use less tuples in the internal ModuleNameLookupTable representation 2022-09-17 21:34:48 +02:00
Jeroen Engels
e836d48b4b Add patterns directly to the lookup table 2022-09-17 21:34:48 +02:00
Jeroen Engels
5e4665dcbd Speed up scope_declarationEnterVisitor 2022-09-17 21:34:48 +02:00
Jeroen Engels
e519b2b775 Simplify tuple argument 2022-09-17 21:34:48 +02:00
Jeroen Engels
927c9f1cce Rename makeFinalModuleEvaluation 2022-09-17 21:34:48 +02:00
Jeroen Engels
3e46869ebe Remove fastConcatMap 2022-09-17 21:34:48 +02:00
Jeroen Engels
2c6ddeacb8 Speed up collection modules names from patterns 2022-09-17 21:34:48 +02:00
Jeroen Engels
313e8e26da Speed up parameters 2022-09-17 21:34:48 +02:00
Jeroen Engels
36df458899 Speed up parameters 2022-09-17 21:34:48 +02:00
Jeroen Engels
65cf7e8f01 Speed up registerImportExposed 2022-09-17 21:34:48 +02:00
Jeroen Engels
371984d590 Speed up scope_dependenciesVisitor 2022-09-17 21:34:48 +02:00
Jeroen Engels
dc417cb770 Speed up final evaluations 2022-09-17 21:34:48 +02:00
Jeroen Engels
4d60f6e61c Speed up collectModuleNamesFromTypeAnnotationHelp 2022-09-17 21:34:48 +02:00
Jeroen Engels
5ffb9efa20 Speed up scope_expressionEnterVisitor 2022-09-17 21:34:48 +02:00
Jeroen Engels
b1d668fa86 Speed up scope_declarationEnterVisitor 2022-09-17 21:34:48 +02:00
Jeroen Engels
2829d5576d Speed up expressionChildren 2022-09-17 21:34:48 +02:00
Jeroen Engels
2332828230 Speed up errorsFromCache 2022-09-17 21:34:48 +02:00
Jeroen Engels
30b15b4eef Avoid unnecessary data constructors in registerImportExposed 2022-09-17 21:34:48 +02:00
Jeroen Engels
6695c3c26b Use faster list functions 2022-09-17 21:34:48 +02:00
Jeroen Engels
902fd381b6 Add faster list functions 2022-09-17 21:34:48 +02:00
Jeroen Engels
5b79818260 Use ModuleName where it makes sense 2022-09-17 21:34:48 +02:00
Jeroen Engels
f02896282d Use explicit lambda to not have an uncurry perf hit 2022-09-17 21:34:48 +02:00
Jeroen Engels
913f11f5e4 Add tests for ignored files 2022-09-17 21:34:48 +02:00
Jeroen Engels
89c03e0117 Remove NoUnused.Modules from configuration 2022-09-14 09:23:38 +02:00
Jeroen Engels
3b50c0ebd2 Enable NoForbiddenWords 2022-09-01 18:01:31 +02:00
Jeroen Engels
a37d5afedc Backport rules from elm-review-forbidden-words 2022-09-01 18:00:56 +02:00
Jeroen Engels
bf3f9b1469 Simplify FileParser.parse 2022-09-01 16:30:20 +02:00