Commit Graph

628 Commits

Author SHA1 Message Date
Jeroen Engels
a36dc9a15e
Update elm-lint-to-elm-review.md 2020-04-01 17:07:00 +02:00
Jeroen Engels
25daae31d9 Document withModuleContext 2020-03-24 00:09:15 +01:00
Jeroen Engels
1bd923cd5f Fix wrong error message. Thanks Anton Komissarov! 2020-03-23 20:42:29 +01:00
Jeroen Engels
a0397d1a5a Document withModuleContext 2020-03-22 10:41:54 +01:00
Jeroen Engels
c2ce950f4f Document withModuleVisitor 2020-03-22 10:41:54 +01:00
Jeroen Engels
5f7bf971c4 Relax the module visitor by introducing a type variable in the user-supplied function 2020-03-21 22:16:30 +01:00
Jeroen Engels
9a983f1190 Rename NotNeeded phantom type to Forbidden 2020-03-21 22:16:30 +01:00
Jeroen Engels
097dbdb7b0 Document project rules 2020-03-21 22:16:30 +01:00
Jeroen Engels
c49b24fe57 Rename phantom variable in ModuleRuleSchema 2020-03-21 22:16:30 +01:00
Jeroen Engels
ae27c82ce6 Make it impossible to have a project rule without visitors 2020-03-21 14:15:28 +01:00
Jeroen Engels
71f945de5f Document project rules 2020-03-20 20:45:01 +01:00
Jeroen Engels
45ca6e2832 Document Rule.errorForReadme 2020-03-20 19:54:21 +01:00
Jeroen Engels
c674f97c55 Document expectErrorsForReadme 2020-03-20 19:47:12 +01:00
Jeroen Engels
023bbd60b5 Rename Project.withReadme to Project.addReadme 2020-03-20 19:06:09 +01:00
Jeroen Engels
0113edbb91 Use internal alias for module context functions 2020-03-20 13:38:39 +01:00
Jeroen Engels
9bf286c02b Add documentation for phantom types 2020-03-19 23:56:32 +01:00
Jeroen Engels
6f73e42b9a Rename Project.withDependency and Project.withElmJson to Project.add* 2020-03-19 23:50:41 +01:00
Jeroen Engels
a2037ea973 Require calling withModuleContext after withModuleVisitor 2020-03-19 23:26:54 +01:00
Jeroen Engels
abac9224bc Make it not possible to use withModuleVisitor after withModuleContext 2020-03-19 23:15:48 +01:00
Jeroen Engels
06da24e1aa Make it not possible to use withModuleContext without withModuleVisitor 2020-03-19 23:06:04 +01:00
Jeroen Engels
a83c0a4dfe Make it not possible to use withModuleContext twice 2020-03-19 23:06:04 +01:00
Jeroen Engels
9cf4525650 Add phantom type to ProjectRuleSchema 2020-03-19 23:06:04 +01:00
Jeroen Engels
7fa1fd97df Prevent elm-test from crashing when there is a docs.json file 2020-03-19 23:06:04 +01:00
Jeroen Engels
e841c6756e Add command to generate the compilation results of phantom type tests 2020-03-19 23:06:04 +01:00
Jeroen Engels
3e69688bd5 Add tests for phantom type tests to make sure we don't start allowing some constructs 2020-03-19 23:00:40 +01:00
Jeroen Engels
160cea7323 Remove module visitors for rules that didn't need them 2020-03-19 19:35:45 +01:00
Jeroen Engels
3077047e63 Make Scope add all visitors at once 2020-03-19 19:28:01 +01:00
Jeroen Engels
f076643150 Remove context and visitor argument for newProjectRuleSchema 2020-03-19 19:21:49 +01:00
Jeroen Engels
ef74ec5126 Use module context from moduleVisitor field 2020-03-19 19:11:45 +01:00
Jeroen Engels
d07676dd29 Use module visitors from moduleVisitor field 2020-03-19 19:03:12 +01:00
Jeroen Engels
ce7c6b7021 Move initial project context to an argument of Rule.newProjectRuleSchema 2020-03-19 19:03:12 +01:00
Jeroen Engels
2ab777e6f6 Add a moduleVisitor field to ProjectRuleSchema containing the module visitor data 2020-03-19 17:56:40 +01:00
Jeroen Engels
4b0a56dd21 Add withModuleVisitors function 2020-03-19 17:17:57 +01:00
Jeroen Engels
8b1050b2f8 Visit modules in project rule more efficiently and only if necessary 2020-03-19 00:21:45 +01:00
Jeroen Engels
f37b19d6ed Only compute the module visitors once 2020-03-19 00:06:58 +01:00
Jeroen Engels
8f83d4161f Prepare for being able to supply multiple moduleVisitors to a project rule 2020-03-18 23:56:52 +01:00
Jeroen Engels
3b2449af08 Allow to expect for README errors in tests 2020-03-18 23:25:56 +01:00
Jeroen Engels
8273322832 Allow elm.json visitors to report errors in project rules 2020-03-18 23:08:06 +01:00
Jeroen Engels
66a1f8cb3c Allow dependencies visitors to report errors in project rules 2020-03-18 23:01:04 +01:00
Jeroen Engels
550db23f0a Add visitor for the README.md 2020-03-18 22:49:42 +01:00
Jeroen Engels
735d45d6ce Simplify NoTodoComment 2020-03-18 22:31:33 +01:00
Jeroen Engels
7c76d8947a Add README support to Review.Project 2020-03-18 21:01:12 +01:00
Jeroen Engels
4263f35db9 Add dummy rule that will look at the README 2020-03-18 20:32:31 +01:00
Jeroen Engels
7f9435e887 Add NoTodoComment to review configuration 2020-03-18 17:50:32 +01:00
Jeroen Engels
c619e2c484 Improve the range for NoTodoComment 2020-03-18 17:35:11 +01:00
Jeroen Engels
d1e77c29bf Improve comment on NoTodoComment rule 2020-03-17 23:28:47 +01:00
Jeroen Engels
b0614b62c7 Improve documentation for newModuleRuleSchema 2020-03-17 23:00:02 +01:00
Jeroen Engels
cff1770300 Mention Direction in expression and declaration visitors 2020-03-17 22:42:10 +01:00
Jeroen Engels
f02095e960 Document fromProjectRuleSchema 2020-03-17 18:38:28 +01:00
Jeroen Engels
f9abd790a5 Add NoTodoComment rule draft 2020-03-16 23:03:19 +01:00