You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to express how I'd like to integrate this tool with ESLint, to prompt discussion and maybe a future feature. I couldn't find any search results relating to eslint.
For example on a webapp I'm using airbnb rules with ESLint, and fta looks like an ideal to plug in as an ESLint rule to provide additional rules relating to code complexity. e.g. configurable warnings/errors for files above difficulty/complexity/fta_score.
The text was updated successfully, but these errors were encountered:
Hi @replete yes this is something that has occurred to me previously. I think in order to become a useful eslint plugin, we would need to solve #24 first.
Since the halsted output is a linear complexity measure, it doesn't really make sense to say "there is an error here" at a specific piece of code. Instead, it could potentially make sense to draw attention to clusters of complexity within a file, which in theory could be captured, but again would not be a binary good-or-bad outcome.
Another school of thought is that an FTA ESLint plugin simply wraps the cli in order to trip the score_cap (see: https://ftaproject.dev/docs/configuration#score_cap) when a particular file breaches it (and therefore the plugin acts as an eslint-friendly good-or-bad outcome, on a whole-file basis).
I wanted to express how I'd like to integrate this tool with ESLint, to prompt discussion and maybe a future feature. I couldn't find any search results relating to eslint.
For example on a webapp I'm using airbnb rules with ESLint, and
fta
looks like an ideal to plug in as an ESLint rule to provide additional rules relating to code complexity. e.g. configurable warnings/errors for files above difficulty/complexity/fta_score.The text was updated successfully, but these errors were encountered: