-
Notifications
You must be signed in to change notification settings - Fork 7
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
318 changed files
with
17,648 additions
and
16,609 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,81 @@ | ||
comments: | ||
# License in each file is unnecessary. | ||
AbsentOrWrongFileLicense: | ||
active: false | ||
# Nothing wrong with documenting private methods. | ||
CommentOverPrivateFunction: | ||
active: false | ||
# Nothing wrong with documenting private properties. | ||
CommentOverPrivateProperty: | ||
active: false | ||
# Bugged, see https://github.com/detekt/detekt/issues/4727, fixed in Detekt 1.21.0 | ||
OutdatedDocumentation: | ||
active: false | ||
# [Disagree] License in each file is unnecessary. | ||
AbsentOrWrongFileLicense: | ||
active: false | ||
# [Disagree] Simple private functions should be documented too. | ||
CommentOverPrivateFunction: | ||
active: false | ||
# [Disagree] Simple private properties should be documented too. | ||
CommentOverPrivateProperty: | ||
active: false | ||
|
||
complexity: | ||
# Static analysis is not good at estimating this. | ||
TooManyFunctions: | ||
thresholdInClasses: 20 | ||
# Acceptable if used sparingly. | ||
LabeledExpression: | ||
active: false | ||
# [Disagree] Acceptable if used sparingly. | ||
LabeledExpression: | ||
active: false | ||
# [False Positive] Solved using resource bundles. All remaining duplicates are resource identifiers. | ||
StringLiteralDuplication: | ||
active: false | ||
# [Exception] Acceptable for helper files. | ||
TooManyFunctions: | ||
excludes: '**/*Helpers.kt' | ||
|
||
formatting: | ||
# Experimental. Too many false positives. | ||
ArgumentListWrapping: | ||
active: false | ||
# That's part of my code style. | ||
NoConsecutiveBlankLines: | ||
active: false | ||
# Acceptable because of auto-formatting. | ||
MultiLineIfElse: | ||
active: false | ||
|
||
naming: | ||
# Static analysis is not good at estimating this. | ||
FunctionMaxLength: | ||
active: false | ||
# Cannot be suppressed in case of false positives. | ||
MatchingDeclarationName: | ||
active: false | ||
# [Disagree] Acceptable for many short arguments. | ||
ArgumentListWrapping: | ||
active: false | ||
# [Bug] Incorrectly detects violation if semicolon is followed by more than one newline. | ||
EnumWrapping: | ||
active: false | ||
# [Disagree] Multi-line expressions are easier to understand if they start on the next line. | ||
FunctionSignature: | ||
active: false | ||
# [Disagree] Short one-liners are easier to understand. | ||
IfElseWrapping: | ||
active: false | ||
# [Bug] Causes ugly indentation when using named multiline arguments to a function. | ||
MultilineExpressionWrapping: | ||
active: false | ||
# [Disagree] Braces use unnecessary extra space. | ||
MultiLineIfElse: | ||
active: false | ||
# [Disagree] Consecutive blank lines are used consistently to group blocks of code. | ||
NoConsecutiveBlankLines: | ||
active: false | ||
# [Disagree] Required for lists and varargs, but ugly when it is unlikely that the function signature will change. | ||
TrailingCommaOnCallSite: | ||
active: false | ||
|
||
potential-bugs: | ||
# The alternative is to safe cast and throw an exception, which is equally bad. | ||
UnsafeCast: | ||
active: false | ||
# [Exception] Initialised by scene builder. | ||
LateinitUsage: | ||
ignoreOnClassesPattern: ".*Editor" | ||
|
||
style: | ||
# Those functions are added as conscious design decisions. | ||
DataClassContainsFunctions: | ||
active: false | ||
# Not if they're settings objects. | ||
DataClassShouldBeImmutable: | ||
active: false | ||
# Not an issue if names are self-explanatory. | ||
DestructuringDeclarationWithTooManyEntries: | ||
active: false | ||
# Such comments are OK. | ||
ForbiddenComment: | ||
active: false | ||
# No braces are easier to read. | ||
MandatoryBracesIfStatements: | ||
active: false | ||
# False positives when there are two newlines after the imports. | ||
SpacingBetweenPackageAndImports: | ||
active: false | ||
# [Disagree] `apply` is confusing to use because of namespace conflicts. | ||
AlsoCouldBeApply: | ||
active: false | ||
# [Disagree] Braces use unnecessary extra space, but consistency helps in legibility. | ||
BracesOnIfStatements: | ||
multiLine: consistent | ||
# [Disagree] Legibility is possible despite consistency because it is wrapped in a multi-line `when` block. | ||
BracesOnWhenStatements: | ||
multiLine: necessary | ||
# [Disagree] Functions on data classes are useful. | ||
DataClassContainsFunctions: | ||
active: false | ||
# [Disagree] Mutable data classes are useful. | ||
DataClassShouldBeImmutable: | ||
active: false | ||
# [Exception] Acceptable in (parameterized) tests. | ||
DestructuringDeclarationWithTooManyEntries: | ||
excludes: '**/test/**' | ||
# [Bug] Fails when used as function expression body. | ||
MultilineRawStringIndentation: | ||
active: false | ||
# [Bug] False positives when there are two newlines after the imports. | ||
SpacingBetweenPackageAndImports: | ||
active: false | ||
# [Bug] Suggests using raw string in constant, but then `trimIndent` is not possible, resulting in weird indenting. | ||
StringShouldBeRawString: | ||
active: false |
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 |
---|---|---|
|
@@ -9,3 +9,6 @@ insert_final_newline = true | |
|
||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.yml] | ||
indent_size = 2 |
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,3 +1,2 @@ | ||
*.dic binary | ||
*.sketch binary | ||
*.svg binary |
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
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,16 +1,32 @@ | ||
# Release checklist | ||
## Documentation | ||
* Bump the version number according to [Semantic Versioning](https://semver.org/). | ||
* Update `README.md`, `change-notes.html`, and `description.html` if necessary. | ||
* Make sure to preview the change notes in the IDE by loading the plugin. | ||
* Update screenshots in `.github/img/` and on the plugin repository if necessary. | ||
* Distance between bottom of "Refresh" button and top of button bar at bottom is 50 pixels, or the original distance, | ||
whichever is smaller. | ||
* Ensure documentation generates without errors and push documentation to `gh-pages` branch. | ||
* Update [`README.md`](../README.md), [`CHANGELOG.md`](../CHANGELOG.md), and | ||
[`description.html`](../src/main/resources/META-INF/description.html) if necessary. | ||
* Make sure to preview the change notes in the IDE by loading the plugin. | ||
* Make sure the list of acknowledgements is up-to-date. | ||
* Update screenshots and GIFs in `.github/img/` and on the plugin repository if necessary. | ||
* Set the global UI scale to 200% before recording/screenshotting to ensure high-resolution images. | ||
* Use the project in `src/test/resources/screenshots/` to store code snippets in. | ||
Do not store `.idea/`, `.gradle`, and similar build files in this project. | ||
* Hide (inlay) hints and set font size to 20. | ||
* Distance between bottom of "Refresh" button and top of button bar at bottom is 50 pixels, or the original | ||
distance, whichever is smaller. | ||
* On Linux, the screen can be recorded using [peek](https://github.com/phw/peek) or | ||
[SimpleScreenRecorder](https://www.maartenbaert.be/simplescreenrecorder/). | ||
* Reducing GIF size is a difficult process. | ||
The following seems to work fine: | ||
1. `for f in ./*.webm; do ffmpeg -y -i "$f" -vf "fps=10,scale=768:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 "${f%.*}.gif"; done` | ||
2. Go to [ezgif](https://ezgif.com/optimize) and upload the GIF to reduce in size. | ||
3. Apply the following optimisations in question; after each result, you can click "Optimize" to apply another filter: | ||
1. "Color Reduction" to 64 colours | ||
2. "Optimize Transparency" with 2% fuzz | ||
3. "Lossy GIF" with compression level 30 | ||
* Ensure documentation generates without errors, and push the documentation to the `gh-pages` branch. | ||
|
||
## Verification | ||
* Run tests and static analysis one more time. | ||
* Try out the plugin yourself and check that old and new features work properly. | ||
* Run the plugin verifier. | ||
* Make sure the latest IDE version is in the plugin verifier's configuration. | ||
* Make sure the latest IDE version is in the plugin verifier's configuration. | ||
* Ensure settings from the previous version correctly load into the new version. |
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,7 +1,8 @@ | ||
# Security policy | ||
## Supported versions | ||
Only the [latest version](https://github.com/FWDekker/intellij-randomness/releases/latest) is ever supported and supplied with security patches. | ||
Only the [latest version](https://github.com/FWDekker/intellij-randomness/releases/latest) is ever supported and | ||
supplied with security patches. | ||
|
||
## Reporting a vulnerability | ||
To report a security vulnerability, send an email to [email protected] instead of using the issue tracker. | ||
To report a security vulnerability, email `[email protected]` instead of using the issue tracker. | ||
You will be contacted as soon as possible. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,44 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.github/**.md' | ||
- '.github/img/**' | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- '.github/**.md' | ||
- '.github/img/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'gradle' | ||
- name: Run checks (Ubuntu) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
chmod +x ./gradlew | ||
sudo apt install -y xvfb | ||
xvfb-run --auto-servernum ./gradlew --no-daemon check | ||
./gradlew --stop | ||
- name: Run checks (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
./gradlew --no-daemon check | ||
./gradlew --stop | ||
- uses: codecov/codecov-action@v3 | ||
if: success() && matrix.os == 'ubuntu-latest' | ||
with: | ||
fail_ci_if_error: true | ||
files: build/reports/kover/report.xml |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.