Skip to content

Releases: crystal-ameba/ameba

v0.9.2

03 Jun 15:33
ed66054
Compare
Choose a tag to compare

Improvements

  • Rules now have severities. The --fail-level can be set to control the level of failure #100

Bug fixes

  • Stop calculating cyclomatic complexity for methods which have Macro c… #99
  • Invalid Performance/SizeAfterFilter in macros #102
  • Incorrect detection of Performance/FirstLastAfterFilter when first returns more than 1 #104

v0.9.1

23 Mar 17:36
a0da393
Compare
Choose a tag to compare
  • Now globs can be used to exclude files as a cli argument: (see 3c5e3cd)
  $ ameba path/to/shard/*.cr !path/to/shard/lib
  $ ameba . !lib

v0.9.0

09 Jan 11:43
5aa7ee4
Compare
Choose a tag to compare

New Features

  • New rules:
    • UnreachableCode #82, #83
    • RedundantReturn #87
  • Allow showing the affected code in the default report #85
  • Let Ameba explain the issue at a specified location #86
  • Codacy-Ameba integration project, which is still in review by the Codacy team.

Improvements

  • Correct the end location of the issue reported by ConstantNames, see e951c07
  • Correct the end location of the issue reported by MethodNames, see f8dab3b
  • Correct the line number of the issue reported by TrailingBlankLines, see 32ac199

Bug fixes

  • Fix regression with UnusedArgument rule and crystal latest release, see 60ce034

v0.8.1

20 Oct 15:33
d795220
Compare
Choose a tag to compare

Improvements

  • Run ameba in docker #73
  • New rules:
    • Performance/SizeAfterFilter #74
    • Performance/AnyAfterFilter #75
    • Performance/FirstLastAfterFilter #76

Bugfixes

  • Generate UTC (instead of local) time in a configuration file 18ac04d
  • Correctly process record declaration at a top level #78
  • Fix Style/RedundantBegin: begin-end in a proc literal 12aa48c

v0.8.0

15 Aug 16:59
d9cfc90
Compare
Choose a tag to compare

New Features

  • Now rules have namespaces (i.e. style, lint, layout), see #63

  • It became possible to run only rules that belong to a specific namespace, see #65

    $ ameba --only Style,Lint
    $ ameba --except Style
    
  • It became possible to disable a group of rules by inline directive, see 98f0aa7

    time = Time.epoch(1483859302) # ameba:disable Style, Lint

Improvements

  • Fix Makefile to avoid rebuild if bin/ameba exists, see #69
  • Disable PredicateName and LargeNumbers rules by default, see 970ca4b
  • Now ameba accepts --all cli flag, that enables all available rules (even if they are disabled by default), 248c5a6
  • Added --no-color cli flag to disable colorizing, see d60aea1

Bugfixes

  • Correctly handle type declarations in scopes, see 04c7300
  • Ignore outer shadowing of throwaway variables, see dbac46b

v0.7.0

15 Jun 09:11
d9f04af
Compare
Choose a tag to compare

New Features:

  • Now Ameba has a Roadmap
  • Crystal 0.25.0 support, see #57
  • New rule ShadowingOuterLocalVar, which detects the shadowing of outer local variables, see #59
  • New rule ShadowedArgument, which detects the shadowing of arguments, see #60

Improvements:

  • Now it is possible to include/exclude files in a config using a wildcard, see #61
  • Error is renamed to Issue which is semantically more correct, see #62
  • JSON reporter now reports the end location of the issue, see #62

Bugfixing:

  • Now LargeNumbers rule doesn't report false positiveness for float number with less than 3 digits after comma, see 1cea21b
  • Now RedundantBegin rule does not report false positiveness if there is an inner error handler, see 3887da1, #56

v0.6.0

13 May 12:02
7a4fcec
Compare
Choose a tag to compare

New features:

  • Detection of useless assignments #41
  • Detection of unused arguments #52
  • JSON output formatter #54
  • SublimeText linter plugin #55

Improvements:

  • Add a space delimiter to duplicated hash keys d307f01
  • Drop --no-debug flag when building 5647621
  • Constantize error messages #50
  • Improve usage info 58e6b42

Bugfixes:

  • Do not report unneeded disable directive if the directive is used one line above 1fc0c52
  • Ignore config if todo formatter is used 6579c8f

v0.5.1

12 Apr 16:26
9cf5d05
Compare
Choose a tag to compare
  • New rule: rand zero 2f83737
  • Support of Crystal 0.24.2 f4734a5
  • Use shards build command instead of crystal deps b225b17, b225b17
  • Show duplidated hash keys in the error message 9e2ab9c
  • Ignore the suggested predicate name if it is not valid #46

v0.5.0

02 Feb 20:20
672de9f
Compare
Choose a tag to compare
  • Allow to configure formatter via config file 1d436fb
  • Inline comments directives #33
  • Unneeded disable directive rule #35
  • Add rule's name to flycheck formatter 2382657

v0.4.2

25 Jan 10:42
bfe18f4
Compare
Choose a tag to compare
  • allow inspecting a directory ca50275
  • add editor integration section 2f9d31b
  • properly process invalid Crystal syntax #32