Skip to content

v0.8.0

Choose a tag to compare

@rafal-qa rafal-qa released this 13 Sep 20:27
· 8 commits to main since this release

Splitting code into units was rebuilt together with language parsers.
See the new README section "How code is split into units" for current logic.

Impact

  • The database schema was updated, so an old slopo.db should be removed.
  • Multiple changes affected results, so now they are different.
  • Some configuration properties and default values were changed.
  • Forks with custom additional languages may need to reimplement them to follow the new convention. Parsers are more complex because they extract more with higher precision.

Main changes

  • Code blocks inside conditionals, loops, etc. are extracted.
  • The function signature is excluded from a code being compared.
  • Code parser tests were rebuilt. Now they are stronger, cleaner and can act as documentation.
  • Separate threshold configurations for the analyze and review commands.
  • Default body_node_count_threshold was increased 2x.