Minor fixes reported by the code inspection

This commit is contained in:
Jakub Chrzanowski 2023-01-13 21:34:46 +01:00 committed by Jakub Chrzanowski
parent 54d6b64304
commit b99218fb83
7 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="2024" height="305" viewBox="0 0 745.71429 112.5"> <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="2024" height="305" viewBox="0 0 745.71429 112.5">
<defs> <defs>
<linearGradient id="linear-gradient" x1="21.98732" y1="-879.27899" x2="91.77826" y2="-949.06994" gradientTransform="matrix(1, 0, 0, -1, 0, -853.5)" gradientUnits="userSpaceOnUse"> <linearGradient id="linear-gradient" x1="21.98732" y1="-879.27899" x2="91.77826" y2="-949.06994" gradientTransform="matrix(1, 0, 0, -1, 0, -853.5)" gradientUnits="userSpaceOnUse">
<stop offset="0.15937" stop-color="#3bea62"/> <stop offset="0.15937" stop-color="#3bea62"/>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,4 +1,4 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="2024" height="305" viewBox="0 0 745.71429 112.5"> <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="2024" height="305" viewBox="0 0 745.71429 112.5">
<defs> <defs>
<linearGradient id="linear-gradient" x1="21.98732" y1="-879.27899" x2="91.77826" y2="-949.06994" gradientTransform="matrix(1, 0, 0, -1, 0, -853.5)" gradientUnits="userSpaceOnUse"> <linearGradient id="linear-gradient" x1="21.98732" y1="-879.27899" x2="91.77826" y2="-949.06994" gradientTransform="matrix(1, 0, 0, -1, 0, -853.5)" gradientUnits="userSpaceOnUse">
<stop offset="0.15937" stop-color="#3bea62"/> <stop offset="0.15937" stop-color="#3bea62"/>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -26,4 +26,5 @@ gradleVersion = 7.6
kotlin.stdlib.default.dependency = false kotlin.stdlib.default.dependency = false
# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html # Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html
# suppress inspection "UnusedProperty"
org.gradle.unsafe.configuration-cache = true org.gradle.unsafe.configuration-cache = true

View File

@ -1,4 +1,4 @@
# GitHub Actions Workflow created for testing and preparing the plugin release in following steps: # GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps:
# - validate Gradle Wrapper, # - validate Gradle Wrapper,
# - run 'test' and 'verifyPlugin' tasks, # - run 'test' and 'verifyPlugin' tasks,
# - run Qodana inspections, # - run Qodana inspections,
@ -149,7 +149,7 @@ jobs:
- name: Fetch Sources - name: Fetch Sources
uses: actions/checkout@v3 uses: actions/checkout@v3
# Remove old release drafts by using the curl request for the available releases with draft flag # Remove old release drafts by using the curl request for the available releases with a draft flag
- name: Remove Old Release Drafts - name: Remove Old Release Drafts
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -158,7 +158,7 @@ jobs:
--jq '.[] | select(.draft == true) | .id' \ --jq '.[] | select(.draft == true) | .id' \
| xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{} | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
# Create new release draft - which is not publicly visible and requires manual acceptance # Create a new release draft which is not publicly visible and requires manual acceptance
- name: Create Release Draft - name: Create Release Draft
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,7 +1,6 @@
# GitHub Actions Workflow created for handling the release process based on the draft release prepared # GitHub Actions Workflow created for handling the release process based on the draft release prepared with the Build workflow.
# with the Build workflow. Running the publishPlugin task requires all of the following secrets to be be provided: # Running the publishPlugin task requires all following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN.
# PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN # See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information.
# See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information
name: Release name: Release
on: on:

View File

@ -9,7 +9,7 @@ on:
jobs: jobs:
# Run cleaning process only if workflow is triggered by the non-"intellij-platform-plugin-template" repository. # Run a cleaning process only if the workflow is triggered by the non-"intellij-platform-plugin-template" repository.
template-cleanup: template-cleanup:
name: Template Cleanup name: Template Cleanup
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -26,7 +26,7 @@ repositories {
mavenCentral() mavenCentral()
} }
// Set the JVM language level used to build project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+. // Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
kotlin { kotlin {
jvmToolchain(11) jvmToolchain(11)
} }
@ -113,7 +113,7 @@ tasks {
publishPlugin { publishPlugin {
dependsOn("patchChangelog") dependsOn("patchChangelog")
token.set(System.getenv("PUBLISH_TOKEN")) token.set(System.getenv("PUBLISH_TOKEN"))
// pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3 // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first())) channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first()))