Commit Graph

56 Commits

Author SHA1 Message Date
Jeroen Engels
fec6420f50 Move RuleError to Lint.elm and rename it to LintError 2019-07-03 13:27:33 +02:00
Jeroen Engels
d23ba4a0a5 Move Rule definition to Lint.Rule 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
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
bf8c6a4b76 Add rule NoExtraBooleanComparison 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
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
06d6e5f247 Add NoUnusedVariables rule 2019-06-02 23:06:08 +02: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
66f73b625c Add range information to linting errors 2018-11-06 13:15:23 +01:00
Jeroen Engels
4be496579c Make example easier to use 2018-11-06 13:08:20 +01:00
Jeroen Engels
ee482cd0aa Update example to use new parser 2018-11-05 19:30:47 +01:00
Jeroen Engels
f274a5008f Upgrade example/ to 0.19 2018-11-05 19:06:03 +01:00
Jeroen Engels
4e4a315ffe Remove rules 2018-11-05 19:00:37 +01:00
Jeroen Engels
a16c660048 elm-format 2018-11-05 18:59:42 +01:00
Jeroen Engels
c39f700360 Simplify Visitor 2017-06-18 21:48:36 +02:00
Jeroen Engels
1477fe856d Dogfeeding: cleaning up 2017-06-18 20:58:08 +02:00
Jeroen Engels
11b37494a9 Add rule ElmTest.NoDuplicateTestBodies 2017-06-18 20:58:08 +02:00
Jeroen Engels
aab4379e78 Add ability to specify exceptions in NoImporting 2017-06-18 16:52:52 +02:00
Jeroen Engels
9536c1cb6f Do not reparse source for every rule 2017-06-17 11:56:34 +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
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
da3f260ece Add NoNestedLet rule 2017-01-24 23:33:16 +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
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
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
0db86da1aa Rename FindNoAnnotatedFunction to NoUnannotatedFunction 2017-01-16 00:18:17 +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