Skip to content

Releases: dlang-community/D-Scanner

v0.5.5

22 May 10:12
e9d17fd
Compare
Choose a tag to compare

Bug fixed

  • Check for virtual calls in constructors thought that static methods were virtual. (#632)
  • Check for virtual calls in constructors thought that package methods were virtual. (#633)

Other

  • Fix possible deprecation messages (std.c package) when building.

v0.5.4: Merge pull request #630 from BBasile/upd-deps

15 May 05:04
8af3702
Compare
Choose a tag to compare
update dependencies, fix some possible crash during linting
merged-on-behalf-of: BBasile <[email protected]>

v0.5.3: Merge pull request #626 from dlang-community/BBasile-patch-1

08 May 11:39
7a10502
Compare
Choose a tag to compare
Remove dmd-beta and dmd-nightly from TravisCI

v0.5.2

23 Apr 16:55
dae2865
Compare
Choose a tag to compare

New

  • Added a check that detect redundant attributes, such as __gshared static. (#438)

Enhancements

  • The check that verifies if the documentation of public functions contains the right sections also detects if Throws: is missing. (#607)

Bug fixed

  • Fixed a a case of false positive for the properly documented check. (#610)
  • Fixed unusable results of --report due to loging in the library used to read the configuration file. (#612)

Other

  • Windows binary is available for each new release.

v0.5.1

05 Apr 10:07
6ca59c7
Compare
Choose a tag to compare

Enhancements

  • Added a check allowing to verify that @trusted is not applied to a whole scope. Making this can be dangerous because one can forget to check manually if new functions added to the scope are trustworthy. (#545, #425)
  • Under Windows, the --defaultConfig now generates the ini file in the user local appdata directory. The location is also used to detect the default configuration used when the no config file is passed as argument, which didn't work previously. (#268)

Bug fixed

  • False negative for missing parameter in Params. (#586)
  • Gags the unhelpful stack trace that was output when the arguments are not recognized. (#195)
  • Files with an unsupported encoding were read as UTF-8. Now unsupported encodings (everything but UTF-8 with or without BOM) triggers an error. (#278)
  • Allow opCmp with no toHash. (#575)

v0.5.0

30 Mar 22:45
845f363
Compare
Choose a tag to compare

Enhancements

  • A new check allows to verify that public declarations are properly documented (Return and Params DDOC sections).
  • A new check verifies the indentation of if constraints.
  • A new check warns in case a virtual call is found inside a constructor. See the rationale here #423.
  • The format of the warnings can be tweaked, see details in #567.
  • The warning for could be const is not emitted if the variable initializer is a newed class or struct. Because of transitivity, making const aggregates was rarely a pertinent advice.

Bug fixed

  • Several cases of crashes due to the parser have been fixed. They were detected because D-Scanner is more and more used for dynamic linting, i.e to process unfinished or invalid code. (#554, #552)

Note

  • Contrary to what was announced in the notes of the pre-release versions, there's no breaking change. The old INI files will still be recognized, however those who already changed the format will have to revert.

v0.5.0-rc1

23 Mar 15:09
eb28103
Compare
Choose a tag to compare
v0.5.0-rc1 Pre-release
Pre-release

Released by necessity since the dscanner.ini format changed. We recommend you to read this before upgrading.

Breaking change

  • Since D-Scanner is available as a development library its sources have been put in the dscanner package, which breaks the config file section, to which dscanner. must be inserted, meaning that in your config files,
; Configure which static analysis checks are enabled
[analysis.config.StaticAnalysisConfig]

must be changed to

; Configure which static analysis checks are enabled
[dscanner.analysis.config.StaticAnalysisConfig]

Static analysis won't run if a configuration file is provided and if this file is not updated.
To update this file automatically, run once, like you would do otherwise but with --patchConfig.

Other

  • See this table for the complete list of changes included in this release.

v0.5.0-beta.2

22 Mar 23:28
9fa8756
Compare
Choose a tag to compare
v0.5.0-beta.2 Pre-release
Pre-release

Released by necessity since the dscanner.ini format changed. We recommend you to read this before upgrading.

Breaking change

  • Since D-Scanner is available as a development library its sources have been put in the dscanner package, which breaks the config file section, to which dscanner. must be inserted, meaning that in your config files,
; Configure which static analysis checks are enabled
[analysis.config.StaticAnalysisConfig]

must be changed to

; Configure which static analysis checks are enabled
[dscanner.analysis.config.StaticAnalysisConfig]

Other

  • See this table for the complete list of changes included in this release.

v0.5.0-beta.1

22 Mar 19:17
Compare
Choose a tag to compare
v0.5.0-beta.1 Pre-release
Pre-release

Released by necessity since the dscanner.ini format changed. We recommend you to read this before upgrading.

Breaking change

  • Since D-Scanner is available as a development library its sources have been put in the dscanner package, which breaks the config file section, to which dscanner. must be inserted, meaning that in your config files,
; Configure which static analysis checks are enabled
[analysis.config.StaticAnalysisConfig]

must be changed to

; Configure which static analysis checks are enabled
[dscanner.analysis.config.StaticAnalysisConfig]

Other

  • See this table for the complete list of changes included in this release.

v0.4.2: Merge pull request #549 from RazvanN7/Fix_for_7766

26 Jan 11:13
401ee0e
Compare
Choose a tag to compare