3 ms·
It's a pattern that I have used multiple times in the past, and greatly appreciate for modular components like this, but in this specific case, this was the pat
by amethyst 3y ago
It's a pattern that I have used multiple times in the past, and greatly appreciate for modular components like this, but in this specific case, this was the pattern used by the original authors of Fixit 1, and I was very happy to maintain and improve upon that during the redesign.
- iib 3y agoWhere can I see this? I didn't find the pattern in the repo or the article.
- amethyst 3y agoThe user guide has a short section on writing custom rules [1], and the API reference also covers the attributes of a LintRule [2]. I plan to document this in more detail at some point in the future. 1: https://fixit.readthedocs.io/en/latest/guide.html#custom-rules https://fixit.readthedocs.io/en/latest/guide.html#custom-rul... 2: https://fixit.readthedocs.io/en/latest/api.html#lint-rules https://fixit.readthedocs.io/en/latest/api.html#lint-rules