Commit Graph

55 Commits

Author SHA1 Message Date
Jeroen Engels
688813eded Format linting output 2017-06-16 01:25:39 +02:00
Jeroen Engels
c20be88081 Lint files dynamically 2017-06-16 01:25:39 +02:00
Jeroen Engels
992bdb88ea Create temp project binary that lints 2017-06-16 01:25:39 +02:00
Jeroen Engels
35d5cdadfd WIP 2017-06-16 01:25:39 +02:00
Jeroen Engels
fe10615afc Rename Error to LintError 2017-06-15 15:00:14 +02:00
Jeroen Engels
2e37e86ee8 Update tests to account for signature change 2017-06-13 01:31:10 +02:00
Jeroen Engels
c4974111fb Failure to parse now returns an error 2017-06-13 01:31:10 +02:00
Jeroen Engels
5eee6e50e1 Add SimplifyPropertyAccess rule 2017-06-11 19:43:02 +02:00
Jeroen Engels
70ac690a90 Ignore -- xyz comments that are not supported by the parser 2017-06-11 18:35:40 +02:00
Jeroen Engels
97777a6563 NoUnusedVariables: handle function declarations in let statements 2017-06-11 18:01:42 +02:00
Jeroen Engels
e2c2c0e7e6 Make project compile again 2017-06-10 15:57:25 +02:00
Jeroen Engels
bf504a69ce Bump elm-ast to v8.0.3 2017-06-10 15:57:13 +02:00
Jeroen Engels
09460f741b Remove license in README 2017-01-29 22:53:31 +01:00
Jeroen Engels
a64a719cdf Add documentation for every rule inside the source 2017-01-29 22:50:48 +01:00
Jeroen Engels
e32f51e62f Add lintSource function that lints a file with a list of rules 2017-01-29 21:49:05 +01:00
Jeroen Engels
0710792368 Add documentation 2017-01-29 21:35:00 +01:00
Jeroen Engels
fc93fad157 Reorganize project file structure 2017-01-29 20:03:31 +01:00
Jeroen Engels
c371244a4c NoUnusedVariables: Report unused imported variables 2017-01-28 16:11:52 +01:00
Jeroen Engels
da3f260ece Add NoNestedLet rule 2017-01-24 23:33:16 +01:00
Jeroen Engels
1e6129cdd1 Add more tests for NoUselessPatternMatchingTest 2017-01-23 20:10:04 +01:00
Jeroen Engels
a9b17d8bfa Add NoUselessIf rule 2017-01-23 20:09:37 +01:00
Jeroen Engels
2b3a3e5a88 Add DefaultPatternPosition rule 2017-01-22 23:50:00 +01:00
Jeroen Engels
fb59dfc294 Add NoWarningComments rule 2017-01-22 23:09:54 +01:00
Jeroen Engels
4fc47e93e6 Add NoUselessPatternMatching rule 2017-01-22 13:08:15 +01:00
Jeroen Engels
9dd2456bb0 Add NoConstantCondition rule 2017-01-21 15:40:06 +01:00
Jeroen Engels
73a82c63c2 Remove unused import 2017-01-21 13:39:33 +01:00
Jeroen Engels
65ed24f942 Add SimplifyPiping rule 2017-01-21 01:25:38 +01:00
Jeroen Engels
6ef2ee0d94 Make AST rendering less cluttered 2017-01-19 23:56:49 +01:00
Jeroen Engels
72c4add26b Display "helpful" error message when code could not be parsed 2017-01-19 22:38:46 +01:00
Jeroen Engels
c7de6956be Fix NoDuplicateImports bug when importing submodules 2017-01-19 22:30:50 +01:00
Jeroen Engels
a793e30c56 Add NoImportingEverything rule 2017-01-19 22:27:11 +01:00
Jeroen Engels
9c13d065e1 Add NoDuplicateImports rule 2017-01-19 21:02:21 +01:00
Jeroen Engels
e37eb1a206 Add README 2017-01-18 17:31:25 +01:00
Jeroen Engels
98e79442a8 Simplify NoDebug 2017-01-17 23:32:30 +01:00
Jeroen Engels
76be1cc6c1 Example: Show message when no errors were found 2017-01-17 00:00:28 +01:00
Jeroen Engels
e2cf51dbcf Add NoUnusedVariables rule 2017-01-16 23:34:05 +01:00
Jeroen Engels
33ba0246f0 Tests styling 2017-01-16 21:40:22 +01:00
Jeroen Engels
72ab86cde6 Add tests for NoDebug and visit all expression types 2017-01-16 00:51:31 +01:00
Jeroen Engels
0db86da1aa Rename FindNoAnnotatedFunction to NoUnannotatedFunction 2017-01-16 00:18:17 +01:00
Jeroen Engels
f33f613c14 Add Tests 2017-01-16 00:07:04 +01:00
Jeroen Engels
9a5718ba06 Make type Error contain the rule name 2017-01-15 23:30:33 +01:00
Jeroen Engels
c52c169572 Changed rule signature to be able to make a list of rules 2017-01-15 23:24:37 +01:00
Jeroen Engels
c6ab2b4b8a Improve example visual (a bit) 2017-01-15 22:57:03 +01:00
Jeroen Engels
27225b40fb Make lint take in a String rather than a list of statements 2017-01-09 22:13:27 +01:00
Jeroen Engels
bb05a3edf0 Separate visitor creation logic in its own file 2017-01-09 21:22:10 +01:00
Jeroen Engels
b3b5a49429 Add special ModelEndFn visitor 2017-01-08 16:24:59 +01:00
Jeroen Engels
5e25a994cb Separate visitors into Enter and Exit types 2017-01-08 15:54:10 +01:00
Jeroen Engels
9ebb4ac7d4 Add NoExposingEverything rule 2017-01-08 11:44:37 +01:00
Jeroen Engels
af030b9e7b Try to make visits simpler 2017-01-08 11:05:48 +01:00
Jeroen Engels
a491c97059 Compute visitors only once for a given input 2017-01-08 10:58:45 +01:00