-
Notifications
You must be signed in to change notification settings - Fork 11
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
100 changed files
with
1,557 additions
and
385 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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Contributions are highly appreciated! | ||
|
||
If you have any questions, feature requests or suspected bugs please do not hesitate to | ||
If you have any questions, feature requests or suspected bugs please do not hesitate to | ||
open a new issue. | ||
|
||
If you want to actively contribute code, please follow this advice: | ||
I don't want you to waste your time on changes that I might decline, so please open a new | ||
issue before implementing any new feature and sending a pull request. I'm happy to | ||
I don't want you to waste your time on changes that I might decline, so please open a new | ||
issue before implementing any new feature and sending a pull request. I'm happy to | ||
discuss your idea and give advice on how to best implement it. | ||
|
||
If your idea is accepted, simply send the PR against the *development* branch. | ||
Contributions should adhere to the coding standards used. All changes and additions | ||
should be covered by unit tests. We do use spaces here :) | ||
If your idea is accepted, simply send the PR against the *development* branch. | ||
Contributions should adhere to the coding standards used. All changes and additions | ||
should be covered by unit tests. We do use spaces here :) |
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
### Forbid all wildcard imports | ||
```xml | ||
<RestrictImports> | ||
<reason>Don't use wildcard imports</reason> | ||
<bannedImport>**.'*'</bannedImport> | ||
</RestrictImports> | ||
``` | ||
_Note_: `'*'` is a special literal which is treated specially. It is only allowed as the last part of a package | ||
pattern. | ||
|
||
### Forbid all static imports | ||
```xml | ||
<RestrictImports> | ||
<reason>Don't use static imports</reason> | ||
<bannedImport>static **</bannedImport> | ||
</RestrictImports> | ||
``` | ||
|
||
|
||
### Unify logging frameworks | ||
```xml | ||
<RestrictImports> | ||
<reason>Use slf4j Logger</reason> | ||
<bannedImport>**.Logger</bannedImport> | ||
<allowedImport>org.slf4j.Logger</allowedImport> | ||
</RestrictImports> | ||
``` | ||
### Forbid all wildcard imports | ||
```xml | ||
<RestrictImports> | ||
<reason>Don't use wildcard imports</reason> | ||
<bannedImport>**.'*'</bannedImport> | ||
</RestrictImports> | ||
``` | ||
_Note_: `'*'` is a special literal which is treated specially. It is only allowed as the last part of a package | ||
pattern. | ||
|
||
### Forbid all static imports | ||
```xml | ||
<RestrictImports> | ||
<reason>Don't use static imports</reason> | ||
<bannedImport>static **</bannedImport> | ||
</RestrictImports> | ||
``` | ||
|
||
|
||
### Unify logging frameworks | ||
```xml | ||
<RestrictImports> | ||
<reason>Use slf4j Logger</reason> | ||
<bannedImport>**.Logger</bannedImport> | ||
<allowedImport>org.slf4j.Logger</allowedImport> | ||
</RestrictImports> | ||
``` |
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.