Releases: dlang-community/D-Scanner
Releases · dlang-community/D-Scanner
v0.5.5
v0.5.4: Merge pull request #630 from BBasile/upd-deps
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
Remove dmd-beta and dmd-nightly from TravisCI
v0.5.2
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
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
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
new
ed 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
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
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
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
Make visiting alias public