Commit graph

45 commits

Author SHA1 Message Date
Gabriel Ebner
59abb9a332 feat: move docstring before | in ctors 2022-09-14 08:26:17 -07:00
Sebastian Ullrich
b9152a5296 refactor: move, generalize findSyntaxStack? 2022-08-31 17:49:43 -07:00
Mario Carneiro
ebb5b97d73 chore: move Bootstrap.Data -> Lean.Data 2022-08-31 11:48:57 -07:00
Mario Carneiro
bf89c5a0f5 chore: move Std -> Bootstrap 2022-08-29 01:26:12 -07:00
Mario Carneiro
e0221db2e2 feat: add @[inheritDoc] attribute 2022-08-16 18:31:55 -07:00
Mario Carneiro
a4f1db7aca feat: attributes on {macro,elab}(_rules) 2022-08-15 08:40:40 -07:00
Mario Carneiro
3b793b949b feat: attributes on notation 2022-08-14 11:18:20 -07:00
Mario Carneiro
c961cd1310 feat: doc comments on notation 2022-08-13 17:18:14 -07:00
Mario Carneiro
0b92f625ae feat: MissingDocs doesn't lint on struct redecl 2022-08-07 08:48:42 -07:00
Sebastian Ullrich
3ee9ab855e fix: logging of linter warnings 2022-08-06 09:25:09 -07:00
Mario Carneiro
12c8845026 feat: add builtin MissingDocs handler attr 2022-08-06 10:23:53 +02:00
Mario Carneiro
ab55af01b3 feat: add builtin MissingDocs handler attr (part 1) 2022-08-06 10:23:53 +02:00
Mario Carneiro
ea0f177bf2 feat: add unused/deprecation diagnostic tags 2022-08-05 17:45:50 +02:00
Mario Carneiro
c1d2f3c5a6 feat: make MissingDocs extensible 2022-08-04 19:35:00 -07:00
Mario Carneiro
eef51aced2 feat: make MissingDocs extensible (part 1) 2022-08-04 19:32:17 -07:00
Sebastian Ullrich
abde2e4606 fix: unused variables in foreign definition 2022-08-03 18:15:15 -07:00
Mario Carneiro
c952c69690 feat: add missingDocs linter 2022-07-31 18:18:21 -07:00
Sebastian Ullrich
b027946496 feat: suffix linter messages with option name 2022-07-29 10:31:19 -07:00
Sebastian Ullrich
5e6b2a9460 feat: add 'suspicious unexpander patterns' linter 2022-07-29 10:31:19 -07:00
Sebastian Ullrich
e048bbc93a perf: unused variables linter: early cut-off 2022-07-29 10:31:19 -07:00
Sebastian Ullrich
2a977d8969 refactor: move unused variables linter into separate file 2022-07-29 10:31:19 -07:00
Lars
105bfcc8f0
feat: allow custom ignore functions for the unused variables linter
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2022-07-25 09:16:44 +02:00
larsk21
123fd801cb doc: linter utils 2022-07-13 10:35:37 +02:00
larsk21
9980123291 fix: check if variables are used first 2022-07-13 10:35:37 +02:00
larsk21
70aff92f8f fix: short-circuit ignore functions in unused variables linter 2022-07-13 10:35:37 +02:00
larsk21
9fcae6ffe9 fix: replace constant with opaque 2022-07-13 10:35:37 +02:00
larsk21
15f9c0585a fix: consider macro expansions in unused variables linter 2022-07-13 10:35:37 +02:00
larsk21
ced8df3e86 fix: references of variables with equal ranges 2022-07-13 10:35:37 +02:00
Gabriel Ebner
a8cab84735 refactor: use computed fields for Expr 2022-07-11 14:19:41 -07:00
Sebastian Ullrich
a4236c0721 fix: ignore hygiened names in unused variables linter 2022-06-18 17:24:08 +02:00
Leonardo de Moura
22c8f10b12 chore: remove constant command 2022-06-14 17:14:28 -07:00
Leonardo de Moura
3a1dc5e066 fix: support new inductionAlt syntax at Linter/Basic.lean 2022-06-14 11:31:49 -07:00
Leonardo de Moura
bd2cccf287 chore: use double tick 2022-06-14 11:30:55 -07:00
Sebastian Ullrich
8c377436f4 fix: do not report unused variables in unfinished declarations 2022-06-10 11:27:11 +02:00
larsk21
60c8a72262 fix: unused variables linter: consider induction variables as pattern variables 2022-06-06 15:53:10 -07:00
larsk21
a9293410a2 fix: unused variables linter: ignore structure, class and inductive signatures 2022-06-06 15:53:10 -07:00
Sebastian Ullrich
3c41962275 refactor: Expr.forEach' use in unused variables linter 2022-06-05 14:16:40 +02:00
Sebastian Ullrich
05c5dd4441 fix: unused variables linter: search fvar aliases in tactics 2022-06-03 22:37:38 +02:00
Sebastian Ullrich
f3a7654a63 fix: unused variables linter: find nested uses in tactics 2022-06-03 22:37:38 +02:00
larsk21
caa8804a1d feat: add nolint options for function arguments and pattern variables 2022-06-03 13:03:52 +02:00
larsk21
93480a3e05 fix: consider tactic mvar assignments for used variables 2022-06-03 13:03:52 +02:00
larsk21
bf907d7b8c fix: ignore exposed function arguments in unused variables linter 2022-06-03 13:03:52 +02:00
larsk21
57c8c76cd0 fix: use findModuleRefs in unused variables linter 2022-06-03 13:03:52 +02:00
larsk21
cf4e106304 fix: unused variables linter review comments
- ignore unused variables in dep arrows
- avoid negated options
- make syntax stack generation more performant
- make ignore functions more extensible
- change message severity to `warning`
2022-06-03 13:03:52 +02:00
larsk21
37d5f8e74a feat: add unused variables linter 2022-06-03 13:03:52 +02:00