Commit Graph

43 Commits

Author SHA1 Message Date
Jeroen Engels
776cb6f293 Use a let expression 2024-06-10 23:46:44 +02:00
Jeroen Engels
75650d1952 Clean up unused code 2024-06-10 23:42:33 +02:00
Jeroen Engels
469a064223 Use file patterns from users 2024-05-07 23:41:59 +02:00
Jeroen Engels
2eb405e3bb Use CssFunctions to capture CSS classes 2024-05-07 23:41:59 +02:00
Jeroen Engels
f306ecdb92 Add functionOrValuesToIgnore 2024-05-07 23:41:59 +02:00
Jeroen Engels
1a9a6771ae Add lookup table 2024-05-07 23:41:59 +02:00
Jeroen Engels
6a9fe48b1f Add test 2024-05-07 23:41:59 +02:00
Jeroen Engels
4ced912e03 Improve error message 2024-05-07 23:41:59 +02:00
Jeroen Engels
9fce35936c Parse CSS files using the parser 2024-05-07 23:41:59 +02:00
Jeroen Engels
67994b61c3 Extract CSS parser to a new file 2024-05-07 23:41:59 +02:00
Jeroen Engels
1c072d4b92 Use new function 2024-05-07 23:41:59 +02:00
Jeroen Engels
a9827b8baf Add expectation 2024-05-07 18:27:00 +02:00
Jeroen Engels
3b6027578c Rename rule 2024-05-07 18:18:52 +02:00
Jeroen Engels
955c3c56be Copy tests 2024-05-07 11:04:09 +02:00
Jeroen Engels
14132fbf29 Add example rule to report unused CSS classes 2024-05-07 00:55:52 +02:00
Jeroen Engels
f505932b0c Use extraFiles2 everywhere 2024-04-17 00:52:29 +02:00
Jeroen Engels
1573cfa0ab Use regex to get the list of classes 2024-04-10 20:13:58 +02:00
Jeroen Engels
aa69758fa8 Add failing tests 2024-04-10 20:13:58 +02:00
Jeroen Engels
5a197a22a0 Update file path to reflect rule name 2024-04-10 20:13:57 +02:00
Jeroen Engels
e3082e15ec Move the file pattern to be the last argument of withExtraFiles visitors 2024-04-10 20:13:36 +02:00
Jeroen Engels
d8ce5c7250 Use FilePattern 2024-04-10 20:13:36 +02:00
Jeroen Engels
5bed2f1439 Handle variable case 2024-04-10 20:13:36 +02:00
Jeroen Engels
733d1acd03 Add ModuleNameLookupTable to arguments 2024-04-10 20:13:36 +02:00
Jeroen Engels
03cddfb839 Add variant UngraspableExpression 2024-04-10 20:13:36 +02:00
Jeroen Engels
91bad94165 Understand case expressions 2024-04-10 20:13:36 +02:00
Jeroen Engels
79b36ab76a Understand if expressions 2024-04-10 20:13:36 +02:00
Jeroen Engels
e403c32f4a Add ClassFunction.fromExpression 2024-04-10 20:13:36 +02:00
Jeroen Engels
c60be9ac6e Add test for if 2024-04-10 20:13:36 +02:00
Jeroen Engels
86ea5c4157 Cleanup CSS rule 2024-04-10 20:13:36 +02:00
Jeroen Engels
7af1d00dda Move CSS class functions over to ClassFunctions 2024-04-10 20:13:36 +02:00
Jeroen Engels
c8c6f43b2d Remove unused CssFunctions 2024-04-10 20:13:36 +02:00
Jeroen Engels
dda670a24f Add Class.none 2024-04-10 20:13:03 +02:00
Jeroen Engels
ffd24e20a4 Report error when function is missing some arguments 2024-04-10 20:13:03 +02:00
Jeroen Engels
43edf17433 Change CssFunctions data structure 2024-04-10 20:13:03 +02:00
Jeroen Engels
28eae8f47b Add test 2024-04-10 20:13:03 +02:00
Jeroen Engels
076884b912 Report stray classes 2024-04-10 20:13:03 +02:00
Jeroen Engels
7c2a0ff76b Extract function 2024-04-10 20:13:03 +02:00
Jeroen Engels
81f30678fc Collect locations where we find a class function 2024-04-10 20:13:03 +02:00
Jeroen Engels
675c596eab Add test 2024-04-10 20:13:03 +02:00
Jeroen Engels
75a6db06e1 Report Html.Attributes.attribute "class" 2024-04-10 20:13:03 +02:00
Jeroen Engels
9f9419b68a Add documentation for Css.NoUnknownClasses 2024-04-10 20:13:03 +02:00
Jeroen Engels
825ad01ea9 Extract ClassFunction 2024-04-10 20:13:03 +02:00
Jeroen Engels
22af4f62df Rename rule 2024-04-10 20:13:03 +02:00