[Solution] Reformat and cleanup.

This commit is contained in:
2023-10-03 21:59:40 +01:00
parent 4c7b7dd8e4
commit 29512a0a5f
11 changed files with 1442 additions and 1442 deletions

File diff suppressed because it is too large Load Diff

4
.github/FUNDING.yml vendored
View File

@@ -1,6 +1,6 @@
# These are supported funding model platforms # These are supported funding model platforms
# github: claunia # github: claunia
patreon: claunia patreon: claunia
ko_fi: claunia ko_fi: claunia
open_collective: aaru open_collective: aaru

View File

@@ -1,13 +1,13 @@
name: General Bug Report name: General Bug Report
description: Bugs report on other commands. Use this to submit device reports. description: Bugs report on other commands. Use this to submit device reports.
labels: ["bug", "needs triage"] labels: [ "bug", "needs triage" ]
assignees: assignees:
- silaslaspada - silaslaspada
body: body:
- type: dropdown - type: dropdown
id: version id: version
attributes: attributes:
label: Version label: Version
description: What version of Aaru are you running? description: What version of Aaru are you running?
options: options:
- 5.3.0 - 5.3.0
@@ -18,22 +18,22 @@ body:
validations: validations:
required: true required: true
- type: input - type: input
id: commit id: commit
attributes: attributes:
label: Commit hash label: Commit hash
description: If using a developmen commit, which one description: If using a developmen commit, which one
- type: checkboxes - type: checkboxes
id: debug id: debug
attributes: attributes:
label: Tested debug version? label: Tested debug version?
description: Have you reproduced the problem using the debug version? description: Have you reproduced the problem using the debug version?
options: options:
- label: "Yes" - label: "Yes"
required: true required: true
- type: checkboxes - type: checkboxes
id: os id: os
attributes: attributes:
label: Which operating systems have you used? label: Which operating systems have you used?
description: You may select more than one. description: You may select more than one.
options: options:
- label: Windows - label: Windows
@@ -41,56 +41,56 @@ body:
- label: macOS - label: macOS
- label: Other - label: Other
- type: checkboxes - type: checkboxes
id: bitsize id: bitsize
attributes: attributes:
label: What is the architectural bit size you're using? label: What is the architectural bit size you're using?
description: You may select more than one. description: You may select more than one.
options: options:
- label: 32-bit - label: 32-bit
- label: 64-bit - label: 64-bit
- label: Unsure or unknown - label: Unsure or unknown
- type: checkboxes - type: checkboxes
id: cpu id: cpu
attributes: attributes:
label: What processor are you using? label: What processor are you using?
description: You may select more than one. description: You may select more than one.
options: options:
- label: An Intel or AMD - label: An Intel or AMD
- label: An ARM or Apple Silicon - label: An ARM or Apple Silicon
- label: Unsure or unknown - label: Unsure or unknown
- type: textarea - type: textarea
id: description id: description
attributes: attributes:
label: Description label: Description
description: Description of the bug description: Description of the bug
validations: validations:
required: true required: true
- type: input - type: input
id: command_line id: command_line
attributes: attributes:
label: Exact command line used label: Exact command line used
placeholder: "`Aaru [command] [parameters]`" placeholder: "`Aaru [command] [parameters]`"
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: expected id: expected
attributes: attributes:
label: Expected behavior label: Expected behavior
description: What did you expect to happen description: What did you expect to happen
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: actual id: actual
attributes: attributes:
label: Actual behavior label: Actual behavior
description: What actually happened description: What actually happened
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: output id: output
attributes: attributes:
label: Output of command execution with debug output enabled label: Output of command execution with debug output enabled
placeholder: Paste the whole output of the executed command when you append '-d' to your command line parameters here placeholder: Paste the whole output of the executed command when you append '-d' to your command line parameters here
render: shell render: shell
validations: validations:
required: true required: true

View File

@@ -1,13 +1,13 @@
name: Image Bug Report name: Image Bug Report
description: Bugs report on commands that handle images, like converting or extracting. description: Bugs report on commands that handle images, like converting or extracting.
labels: ["bug", "needs triage", "dump image format"] labels: [ "bug", "needs triage", "dump image format" ]
assignees: assignees:
- silaslaspada - silaslaspada
body: body:
- type: dropdown - type: dropdown
id: version id: version
attributes: attributes:
label: Version label: Version
description: What version of Aaru are you running? description: What version of Aaru are you running?
options: options:
- 5.3.0 - 5.3.0
@@ -18,22 +18,22 @@ body:
validations: validations:
required: true required: true
- type: input - type: input
id: commit id: commit
attributes: attributes:
label: Commit hash label: Commit hash
description: If using a developmen commit, which one description: If using a developmen commit, which one
- type: checkboxes - type: checkboxes
id: debug id: debug
attributes: attributes:
label: Tested debug version? label: Tested debug version?
description: Have you reproduced the problem using the debug version? description: Have you reproduced the problem using the debug version?
options: options:
- label: "Yes" - label: "Yes"
required: true required: true
- type: checkboxes - type: checkboxes
id: os id: os
attributes: attributes:
label: Which operating systems have you used? label: Which operating systems have you used?
description: You may select more than one. description: You may select more than one.
options: options:
- label: Windows - label: Windows
@@ -41,39 +41,39 @@ body:
- label: macOS - label: macOS
- label: Other - label: Other
- type: checkboxes - type: checkboxes
id: bitsize id: bitsize
attributes: attributes:
label: What is the architectural bit size you're using? label: What is the architectural bit size you're using?
description: You may select more than one. description: You may select more than one.
options: options:
- label: 32-bit - label: 32-bit
- label: 64-bit - label: 64-bit
- label: Unsure or unknown - label: Unsure or unknown
- type: checkboxes - type: checkboxes
id: cpu id: cpu
attributes: attributes:
label: What processor are you using? label: What processor are you using?
description: You may select more than one. description: You may select more than one.
options: options:
- label: An Intel or AMD - label: An Intel or AMD
- label: An ARM or Apple Silicon - label: An ARM or Apple Silicon
- label: Unsure or unknown - label: Unsure or unknown
- type: input - type: input
id: format id: format
attributes: attributes:
label: Image format label: Image format
validations: validations:
required: true required: true
- type: input - type: input
id: application id: application
attributes: attributes:
label: Application that created the image label: Application that created the image
validations: validations:
required: true required: true
- type: checkboxes - type: checkboxes
id: action id: action
attributes: attributes:
label: What were you doing when it failed? label: What were you doing when it failed?
description: Choose all that apply description: Choose all that apply
options: options:
- label: I was converting the image to another format... - label: I was converting the image to another format...
@@ -86,54 +86,54 @@ body:
- label: I was verifying the image... - label: I was verifying the image...
- label: I was calculating the image entropy... - label: I was calculating the image entropy...
- type: input - type: input
id: target_format id: target_format
attributes: attributes:
label: Destination image format label: Destination image format
description: If you were converting the image format, what format were you trying to convert it into description: If you were converting the image format, what format were you trying to convert it into
- type: input - type: input
id: filesystem id: filesystem
attributes: attributes:
label: Filesystem label: Filesystem
description: If you were listing information, contents, or extracting the contents of a filesystem, which filesystem is it? (leave empty if unknown) description: If you were listing information, contents, or extracting the contents of a filesystem, which filesystem is it? (leave empty if unknown)
- type: textarea - type: textarea
id: description id: description
attributes: attributes:
label: Description label: Description
description: Description of the bug description: Description of the bug
validations: validations:
required: true required: true
- type: input - type: input
id: command_line id: command_line
attributes: attributes:
label: Exact command line used label: Exact command line used
placeholder: "`Aaru [command] [parameters]`" placeholder: "`Aaru [command] [parameters]`"
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: expected id: expected
attributes: attributes:
label: Expected behavior label: Expected behavior
description: What did you expect to happen description: What did you expect to happen
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: actual id: actual
attributes: attributes:
label: Actual behavior label: Actual behavior
description: What actually happened description: What actually happened
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: output id: output
attributes: attributes:
label: Output of command execution with debug output enabled label: Output of command execution with debug output enabled
placeholder: Paste the whole output of the executed command when you append '-d' to your command line parameters here placeholder: Paste the whole output of the executed command when you append '-d' to your command line parameters here
render: shell render: shell
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: image id: image
attributes: attributes:
label: Affected image label: Affected image
placeholder: Upload the image, compressed and with the number of this issue. placeholder: Upload the image, compressed and with the number of this issue.
If the image contains personal data contact the project lead, and the image contents will be handled confidentially under the GDPR requirements. If the image contains personal data contact the project lead, and the image contents will be handled confidentially under the GDPR requirements.

View File

@@ -1,13 +1,13 @@
name: Media Bug Report name: Media Bug Report
description: Bugs report on commands that handle media, like dumping or retrieving information. description: Bugs report on commands that handle media, like dumping or retrieving information.
labels: ["bug", "needs triage", "media"] labels: [ "bug", "needs triage", "media" ]
assignees: assignees:
- silaslaspada - silaslaspada
body: body:
- type: dropdown - type: dropdown
id: version id: version
attributes: attributes:
label: Version label: Version
description: What version of Aaru are you running? description: What version of Aaru are you running?
options: options:
- 5.3.0 - 5.3.0
@@ -18,22 +18,22 @@ body:
validations: validations:
required: true required: true
- type: input - type: input
id: commit id: commit
attributes: attributes:
label: Commit hash label: Commit hash
description: If using a developmen commit, which one description: If using a developmen commit, which one
- type: checkboxes - type: checkboxes
id: debug id: debug
attributes: attributes:
label: Tested debug version? label: Tested debug version?
description: Have you reproduced the problem using the debug version? description: Have you reproduced the problem using the debug version?
options: options:
- label: "Yes" - label: "Yes"
required: true required: true
- type: checkboxes - type: checkboxes
id: os id: os
attributes: attributes:
label: Which operating systems have you used? label: Which operating systems have you used?
description: You may select more than one. description: You may select more than one.
options: options:
- label: Windows - label: Windows
@@ -41,39 +41,39 @@ body:
- label: macOS - label: macOS
- label: Other - label: Other
- type: checkboxes - type: checkboxes
id: bitsize id: bitsize
attributes: attributes:
label: What is the architectural bit size you're using? label: What is the architectural bit size you're using?
description: You may select more than one. description: You may select more than one.
options: options:
- label: 32-bit - label: 32-bit
- label: 64-bit - label: 64-bit
- label: Unsure or unknown - label: Unsure or unknown
- type: checkboxes - type: checkboxes
id: cpu id: cpu
attributes: attributes:
label: What processor are you using? label: What processor are you using?
description: You may select more than one. description: You may select more than one.
options: options:
- label: An Intel or AMD - label: An Intel or AMD
- label: An ARM or Apple Silicon - label: An ARM or Apple Silicon
- label: Unsure or unknown - label: Unsure or unknown
- type: input - type: input
id: manufacturer id: manufacturer
attributes: attributes:
label: Device manufacturer label: Device manufacturer
validations: validations:
required: true required: true
- type: input - type: input
id: model id: model
attributes: attributes:
label: Device model label: Device model
validations: validations:
required: true required: true
- type: checkboxes - type: checkboxes
id: bus id: bus
attributes: attributes:
label: Bus the device uses to attach to the computer label: Bus the device uses to attach to the computer
description: Select the physical drive bus as well as the bus you're using if using a cable or card reader description: Select the physical drive bus as well as the bus you're using if using a cable or card reader
options: options:
- label: Parallel ATA - label: Parallel ATA
@@ -86,19 +86,19 @@ body:
- label: SecureDigital - label: SecureDigital
- label: MultiMediaCard - label: MultiMediaCard
- type: input - type: input
id: usb_manufacturer id: usb_manufacturer
attributes: attributes:
label: USB cable or card reader manufacturer label: USB cable or card reader manufacturer
description: Fill if using a USB cable or a USB card reader description: Fill if using a USB cable or a USB card reader
- type: input - type: input
id: usb_model id: usb_model
attributes: attributes:
label: USB cable or card reader model label: USB cable or card reader model
description: Fill if using a USB cable or a USB card reader description: Fill if using a USB cable or a USB card reader
- type: checkboxes - type: checkboxes
id: action id: action
attributes: attributes:
label: What were you doing when it failed? label: What were you doing when it failed?
description: Choose all that apply description: Choose all that apply
options: options:
- label: I was dumping media (disk, tape, etc)... - label: I was dumping media (disk, tape, etc)...
@@ -106,43 +106,43 @@ body:
- label: I was scanning media (disk, tape, etc)... - label: I was scanning media (disk, tape, etc)...
- label: I was retrieving device information... - label: I was retrieving device information...
- type: textarea - type: textarea
id: description id: description
attributes: attributes:
label: Description label: Description
description: Description of the bug description: Description of the bug
validations: validations:
required: true required: true
- type: input - type: input
id: command_line id: command_line
attributes: attributes:
label: Exact command line used label: Exact command line used
placeholder: "`Aaru [command] [parameters]`" placeholder: "`Aaru [command] [parameters]`"
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: expected id: expected
attributes: attributes:
label: Expected behavior label: Expected behavior
description: What did you expect to happen description: What did you expect to happen
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: actual id: actual
attributes: attributes:
label: Actual behavior label: Actual behavior
description: What actually happened description: What actually happened
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: output id: output
attributes: attributes:
label: Output of command execution with debug output enabled label: Output of command execution with debug output enabled
placeholder: Paste the whole output of the executed command when you append '-d' to your command line parameters here placeholder: Paste the whole output of the executed command when you append '-d' to your command line parameters here
render: shell render: shell
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: details id: details
attributes: attributes:
label: Media details label: Media details
placeholder: Photo, EAN-13, if possible eBay link placeholder: Photo, EAN-13, if possible eBay link

View File

@@ -1,14 +1,14 @@
name: Feature Request name: Feature Request
description: For feature requests. Please search for existing issues first. Also see CONTRIBUTING. description: For feature requests. Please search for existing issues first. Also see CONTRIBUTING.
title: "[Feature request] " title: "[Feature request] "
labels: [feature request, needs triage] labels: [ feature request, needs triage ]
assignees: assignees:
- claunia - claunia
body: body:
- type: dropdown - type: dropdown
attributes: attributes:
description: Type of feture you're requesting description: Type of feture you're requesting
label: Type label: Type
options: options:
- Support for a new media image format... - Support for a new media image format...
- Support for identifying a new filesystem... - Support for identifying a new filesystem...
@@ -21,19 +21,19 @@ body:
- type: textarea - type: textarea
attributes: attributes:
description: Detailed Description description: Detailed Description
label: Description label: Description
placeholder: Provide a detailed description of the change or addition you are proposing placeholder: Provide a detailed description of the change or addition you are proposing
validations: validations:
required: true required: true
- type: textarea - type: textarea
attributes: attributes:
description: Context description: Context
label: Context label: Context
placeholder: Why is this change important to you? How would you use it? How can it benefit other users? placeholder: Why is this change important to you? How would you use it? How can it benefit other users?
validations: validations:
required: true required: true
- type: textarea - type: textarea
attributes: attributes:
description: Known documentation description: Known documentation
label: Documentation label: Documentation
placeholder: Attach documentation, links to specifications or existing source code placeholder: Attach documentation, links to specifications or existing source code

View File

@@ -1,6 +1,6 @@
name: "CodeQL" name: "CodeQL"
on: [push, pull_request] on: [ push, pull_request ]
jobs: jobs:
CodeQL-Build: CodeQL-Build:
@@ -12,8 +12,8 @@ jobs:
security-events: write security-events: write
# only required for workflows in private repositories # only required for workflows in private repositories
actions: read actions: read
contents: read contents: read
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -24,7 +24,7 @@ jobs:
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:
dotnet-version: | dotnet-version: |
8.0.x 8.0.x
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2

View File

@@ -1,6 +1,6 @@
name: .NET name: .NET
on: [push, pull_request] on: [ push, pull_request ]
jobs: jobs:
build: build:
@@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
- name: Setup .NET - name: Setup .NET
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:
dotnet-version: 8.0 dotnet-version: 8.0
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore Aaru.sln run: dotnet restore Aaru.sln
- name: Build - name: Build
run: dotnet build --no-restore Aaru.sln run: dotnet build --no-restore Aaru.sln

View File

@@ -1,7 +1,7 @@
language: csharp language: csharp
solution: Aaru.sln solution: Aaru.sln
mono: none mono: none
dotnet: 6.0.100 dotnet: 6.0.100
script: script:
- dotnet restore Aaru.sln - dotnet restore Aaru.sln
- dotnet build Aaru.sln - dotnet build Aaru.sln

View File

@@ -1,5 +1,5 @@
trigger: trigger:
- master - master
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-latest'
@@ -8,77 +8,77 @@ variables:
buildConfiguration: 'Release' buildConfiguration: 'Release'
steps: steps:
- checkout: self - checkout: self
submodules: true submodules: true
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r alpine-x64 -o $(Build.ArtifactStagingDirectory)/out/alpine-amd64' arguments: '-r alpine-x64 -o $(Build.ArtifactStagingDirectory)/out/alpine-amd64'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Alpine Linux (amd64)" displayName: "Building for Alpine Linux (amd64)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r linux-arm -o $(Build.ArtifactStagingDirectory)/out/linux-arm' arguments: '-r linux-arm -o $(Build.ArtifactStagingDirectory)/out/linux-arm'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Linux (armv7h)" displayName: "Building for Linux (armv7h)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r linux-arm64 -o $(Build.ArtifactStagingDirectory)/out/linux-aarch64' arguments: '-r linux-arm64 -o $(Build.ArtifactStagingDirectory)/out/linux-aarch64'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Linux (aarch64)" displayName: "Building for Linux (aarch64)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r linux-x64 -o $(Build.ArtifactStagingDirectory)/out/linux-amd64' arguments: '-r linux-x64 -o $(Build.ArtifactStagingDirectory)/out/linux-amd64'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Linux (amd64)" displayName: "Building for Linux (amd64)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r linux-x86 -o $(Build.ArtifactStagingDirectory)/out/linux-x86' arguments: '-r linux-x86 -o $(Build.ArtifactStagingDirectory)/out/linux-x86'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Linux (x86)" displayName: "Building for Linux (x86)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r osx-x64 -o $(Build.ArtifactStagingDirectory)/out/macos' arguments: '-r osx-x64 -o $(Build.ArtifactStagingDirectory)/out/macos'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for macOS (amd64)" displayName: "Building for macOS (amd64)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r win8-arm -o $(Build.ArtifactStagingDirectory)/out/windows-arm' arguments: '-r win8-arm -o $(Build.ArtifactStagingDirectory)/out/windows-arm'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Windows (armv7h)" displayName: "Building for Windows (armv7h)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r win-x64 -o $(Build.ArtifactStagingDirectory)/out/windows-x64' arguments: '-r win-x64 -o $(Build.ArtifactStagingDirectory)/out/windows-x64'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Windows (x64)" displayName: "Building for Windows (x64)"
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
inputs: inputs:
command: 'publish' command: 'publish'
projects: 'Aaru/Aaru.csproj' projects: 'Aaru/Aaru.csproj'
publishWebProjects: false publishWebProjects: false
arguments: '-r win-x86 -o $(Build.ArtifactStagingDirectory)/out/windows-x86' arguments: '-r win-x86 -o $(Build.ArtifactStagingDirectory)/out/windows-x86'
zipAfterPublish: false zipAfterPublish: false
displayName: "Building for Windows (x86)" displayName: "Building for Windows (x86)"

View File

@@ -1 +1 @@
{"projectId":"86f6b810-badc-4055-b342-78cc33bdbeeb","projectName":"Aaru"} {"projectId": "86f6b810-badc-4055-b342-78cc33bdbeeb", "projectName": "Aaru"}