-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
6,668 additions
and
7,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,9 @@ | |
# Sublime Text 2 | ||
*.sublime-workspace | ||
|
||
# Idea stuff | ||
.idea/ | ||
|
||
# Subversion | ||
.svn/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ | |
[submodule "DCD"] | ||
path = DCD | ||
url = https://github.com/dlang-community/DCD.git | ||
[submodule "dmd"] | ||
path = dmd | ||
url = [email protected]:dlang/dmd.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,15 @@ | |
D-Scanner is a tool for analyzing D source code | ||
|
||
### Building and installing | ||
First make sure that you have all the source code. Run ```git submodule update --init --recursive``` | ||
|
||
First, make sure that you have fetched the upstream: [email protected]:dlang-community/D-Scanner.git | ||
|
||
``` | ||
git remote add upstream [email protected]:dlang-community/D-Scanner.git | ||
git fetch upstream | ||
``` | ||
|
||
Secondly, make sure that you have all the source code. Run ```git submodule update --init --recursive``` | ||
after cloning the project. | ||
|
||
To build D-Scanner, run ```make``` (or the build.bat file on Windows). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Avoid checking `enforce` calls as it is phobos specific. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Remove the check for comma expression check | ||
e.g. (int a = 3, a + 7) | ||
This check is no longer necessary since comma expression have been removed from the D language. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Remove the check for duplicate attributes (@property, @safe, @trusted, @system, pure, nothrow). | ||
This check is no longer necessary since having duplicated attributes is now a compiler error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove IfStatementCheck, as it has been disabled in 2015 due to false positives and untouched ever since then. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Remove the check regarding structs with no arguments constructors. | ||
|
||
The check is implemented in constructors.d and it warns against the usage | ||
of both constructors with all parameters with default values and constructors | ||
without any arguments, as this might be confusing. This scenario, for structs, | ||
is no longer D valid code and that's why it is being deprecated. | ||
|
||
Let's consider the following code: | ||
|
||
--- | ||
struct Dog | ||
{ | ||
this() {} | ||
this(string name = "doggie") {} // [warn]: This struct constructor can never be called with its default argument. | ||
} | ||
--- | ||
|
||
D-Scanner would throw and error for this particular struct, but this code | ||
does not compile anymore hence this check is not needed anymore/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.