Is there a rule about `max file lines`? (Can't fin...
# detekt
u
Is there a rule about
max file lines
? (Can't find it) That's something I presonally care more about than number of functions, lines per class etc
b
There isn't. But it shouldn't be difficult to implement. You could open an issue so we can decide if it would be worth too add it. Or you can implement the rule yourself. It should be a really easy one.
u
does the ast provide number of source lines? I though it was just about the semantic stuff
b
You can ask for
text
that will provide you the source code. There you just need to count lines
u
sweet, thanks!
s
@ursus Honestly, just for checking the number of lines in a kotlin file, you do not need static analysis. Existing command line tools in combination with a commit-hook or CI action are fine for this use case. Please note that this comment is written by a detekt maintainer, just be transparent about potential biases. I'm happy about everyone who likes to use detekt. 😉
👍 1
u
Well I want detekt for bunch of things and make sense to me to keep the tech stack the same, but thanks
❤️ 1