ShtukbaseStandard
page/norms/code/code-refactoring.md

Settings: Code: smells after Fowler

Page fields (9)
functionLines60
fileLines600
classLines300
minLines8
maxParams5
maxNesting4
envyMin8
distinctMin4
exclude

Thresholds of the checks of the code-refactoring package. Change a number in the header and the checks will take it on the next run. If a key is absent, the default value is used.

KeyDefaultWhat it means
functionLines60length of a function in lines of code (RF-R01)
fileLines600length of a file in lines of code (RF-R02)
classLines300length of a class or impl block in lines of code (RF-R02)
minLines8length of a repeated block in significant lines (RF-R03)
maxParams5number of a function's parameters (RF-R04)
maxNesting4nesting depth of blocks (RF-R05)
envyMin8accesses to a foreign object that make a method count as envious (RF-R06)
distinctMin4distinct fields of a foreign object (RF-R06)

exclude is path masks from the project root that this package's checks do not read: src/generated/**, legacy, **/*_pb.ts. Shared exclusions for all code packages are on the page /norms/code.md.

The package Code: smells after Fowler puts this page at /norms/code/code-refactoring.md.Source text