Commit Graph

301 Commits

Author SHA1 Message Date
Jeroen Engels
79beb66a2a Make Rule type opaque 2019-06-25 23:51:43 +02:00
Jeroen Engels
d23ba4a0a5 Move Rule definition to Lint.Rule 2019-06-25 23:51:43 +02:00
Jeroen Engels
861af01bb0 Rename Rule.newRuleSchema to Rule.newSchema 2019-06-25 23:51:43 +02:00
Jeroen Engels
692ebf2406 Simplify DefaultPatternPosition's configuration 2019-06-25 23:51:43 +02:00
Jeroen Engels
3ef7e6f5ab Update the README.md a lot 2019-06-25 23:51:43 +02:00
Jeroen Engels
72c839e9f2 Use qualified imports for Elm.Syntax.Node 2019-06-24 12:32:07 +02:00
Jeroen Engels
19ffc231fd Reorganized example 2019-06-24 01:20:10 +02:00
Jeroen Engels
507dc5f02e Rename Msg name in example 2019-06-24 01:14:30 +02:00
Jeroen Engels
8d3aee574a Make example a bit prettier 2019-06-24 01:11:18 +02:00
Jeroen Engels
8b2cdc9935 Refactor the example a bit 2019-06-24 01:11:05 +02:00
Jeroen Engels
116aee7538 Rename Rule2 to Rule 2019-06-24 00:52:23 +02:00
Jeroen Engels
f0b1733e8b Remove previous Rule implementation 2019-06-24 00:52:23 +02:00
Jeroen Engels
9923ec0368 Use new Rule API in existing rules 2019-06-24 00:52:23 +02:00
Jeroen Engels
7bea2a6e00 Move Direction parameter after the node 2019-06-24 00:52:23 +02:00
Jeroen Engels
c1dd42bde9 Add fromSchema in new Rule file 2019-06-24 00:52:23 +02:00
Jeroen Engels
8bcb7c64c5 Rewrite visitors, so that they do not contain context as a type parameter. 2019-06-24 00:52:23 +02:00
Jeroen Engels
8426a09da8 Move context to be the last parameter of visitors 2019-06-24 00:52:23 +02:00
Jeroen Engels
95bbbc63cb Start a new Rule implementation 2019-06-24 00:52:04 +02:00
Jeroen Engels
76f63ff1f6 Refactor: Move LintResult to Lint.Error 2019-06-24 00:49:58 +02:00
Jeroen Engels
dcbf7d23a8 Simplify rules that do not need to use the context 2019-06-24 00:49:58 +02:00
Jeroen Engels
25fb05d3f4 Move Direction to it's own module 2019-06-24 00:49:58 +02:00
Jeroen Engels
bf8c6a4b76 Add rule NoExtraBooleanComparison 2019-06-24 00:49:58 +02:00
Jeroen Engels
79885adde6 Add utilities to test rules 2019-06-24 00:49:58 +02:00
Jeroen Engels
f8142b7450 Make error collecting faster 2019-06-24 00:49:58 +02:00
Jeroen Engels
43eba229ae Rename initContext to initialContext 2019-06-24 00:49:58 +02:00
Jeroen Engels
3162a8bb68 Remove the need to specify error names when creating an error 2019-06-24 00:49:58 +02:00
Jeroen Engels
182385bfa9 Store the rule name along with the rule analyzer 2019-06-15 21:52:56 +02:00
Jeroen Engels
c1c32328f4 Simplify how a rule gets defined 2019-06-15 21:14:40 +02:00
Jeroen Engels
68a4c9ab01 Simplify the final evaluation by not having it return a context 2019-06-15 21:13:40 +02:00
Jeroen Engels
e979393ef8 Rename visitor names 2019-06-15 20:33:09 +02:00
Jeroen Engels
6d9ff756c8 Use the builder pattern to create rules 2019-06-15 14:47:10 +02:00
Jeroen Engels
ede98bc179 Re-add DefaultPatternPosition 2019-06-08 23:12:55 +02:00
Jeroen Engels
21411aaf8c Re-add NoImportingEverything 2019-06-03 00:30:24 +02:00
Jeroen Engels
7adba9b436 Update and remove dependencies 2019-06-03 00:05:11 +02:00
Jeroen Engels
9cd5b6f001 Add test command 2019-06-02 23:10:36 +02:00
Jeroen Engels
f6683e204d Improve tests 2019-06-02 23:06:08 +02:00
Jeroen Engels
95f4989fa9 Naming 2019-06-02 23:06:08 +02:00
Jeroen Engels
d204c21772 Handle ports 2019-06-02 23:06:08 +02:00
Jeroen Engels
7689d01304 Naming 2019-06-02 23:06:08 +02:00
Jeroen Engels
245b22455d import 2019-06-02 23:06:08 +02:00
Jeroen Engels
c7816e002b Add now.json in example 2019-06-02 23:06:08 +02:00
Jeroen Engels
d656046936 report imports 2019-06-02 23:06:08 +02:00
Jeroen Engels
e28bd30490 nounused 2019-06-02 23:06:08 +02:00
Jeroen Engels
67a05f2c45 Remove visitTypeAnnotation 2019-06-02 23:06:08 +02:00
Jeroen Engels
bbd0eb0a38 Visit all of the AST 2019-06-02 23:06:08 +02:00
Jeroen Engels
06d6e5f247 Add NoUnusedVariables rule 2019-06-02 23:06:08 +02:00
Jeroen Engels
d93474a62e Stop exposing parseSouce 2018-11-11 16:11:45 +01:00
Jeroen Engels
5236dea4d7 Module renaming 2018-11-11 00:10:35 +01:00
Jeroen Engels
c559bd94b8 Modules reordering 2018-11-10 23:38:12 +01:00
Jeroen Engels
1bbaf607cf Make LintRuleImplementation opaque 2018-11-10 17:05:17 +01:00