Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 8a2a5ae

Browse files
feat(rule): add max-lines-per-function (torment)
1 parent 6cc4a34 commit 8a2a5ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coding-styles/torment.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ module.exports = {
3030
// Hit this limit? You are doing it wrong -> refactor!
3131
'max-statements': ['warn', 15],
3232

33+
// Enforce a maximum function length
34+
// More than 30 lines of SLOC in a function? You are doing it wrong -> refactor!
35+
'max-lines-per-function': ['warn', 30],
36+
3337
// Disallow use of negated expressions in conditions
3438
'no-negated-condition': 'warn',
3539

0 commit comments

Comments
 (0)