oxidized 0.38.0 → 0.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +3 -2
- data/bin/oxidized-device2yaml +4 -0
- data/docs/Configuration.md +1 -0
- data/docs/Deprecated.md +104 -0
- data/docs/DeviceSimulation.md +9 -1
- data/docs/Release.md +18 -5
- data/extra/device2yaml.rb +2 -2
- data/lib/oxidized/cli.rb +11 -1
- data/lib/oxidized/config.rb +2 -1
- data/lib/oxidized/model/aoscx.rb +1 -1
- data/lib/oxidized/model/fastiron.rb +2 -1
- data/lib/oxidized/model/fortios.rb +3 -2
- data/lib/oxidized/model/ios.rb +1 -1
- data/lib/oxidized/redact.rb +1 -1
- data/lib/oxidized/version.rb +2 -2
- metadata +14 -35
- data/.codeclimate.yml +0 -4
- data/.coderabbit.yaml +0 -21
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -71
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -29
- data/.github/ISSUE_TEMPLATE/support-request.md +0 -65
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -14
- data/.github/dependabot.yml +0 -31
- data/.github/workflows/codeql.yml +0 -76
- data/.github/workflows/publishdocker.yml +0 -117
- data/.github/workflows/ruby.yml +0 -40
- data/.github/workflows/stale.yml +0 -21
- data/.gitignore +0 -56
- data/.rubocop.yml +0 -149
- data/.rubocop_todo.yml +0 -38
- data/AGENTS.md +0 -174
- data/Dockerfile +0 -106
- data/Gemfile +0 -2
- data/Rakefile +0 -131
- data/TODO.md +0 -29
- data/bin/console +0 -9
- data/oxidized.gemspec +0 -77
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Support request
|
|
3
|
-
about: Ask for help
|
|
4
|
-
title: ''
|
|
5
|
-
labels: question
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
<!--
|
|
10
|
-
Thanks for reaching out!
|
|
11
|
-
|
|
12
|
-
Please read docs/Issues.md on how to write a good issue:
|
|
13
|
-
https://github.com/ytti/oxidized/blob/master/docs/Issues.md
|
|
14
|
-
-->
|
|
15
|
-
|
|
16
|
-
> By submitting content here (especially YAML simulation files), I agree that it
|
|
17
|
-
> may be integrated into the project under its license (Apache-2.0).
|
|
18
|
-
|
|
19
|
-
**Describe the problem**
|
|
20
|
-
A clear and concise description of what your problem is.
|
|
21
|
-
|
|
22
|
-
**Expected behavior**
|
|
23
|
-
A clear and concise description of what you expected to happen.
|
|
24
|
-
|
|
25
|
-
**Configuration**
|
|
26
|
-
```
|
|
27
|
-
If applicable, publish your configuration.
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
**Logs**
|
|
31
|
-
```
|
|
32
|
-
If applicable, add logs to help explain your problem.
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
**Running environment (please complete the following information):**
|
|
36
|
-
<!-- complete the following information and add further details if needed.
|
|
37
|
-
Always test the latest version of oxidized.
|
|
38
|
-
Tip: run `oxidized --support` as the same user and in the same environment as
|
|
39
|
-
the regular Oxidized process. With Docker, use
|
|
40
|
-
`docker exec --user oxidized <container-name> oxidized --support`. Remove any
|
|
41
|
-
sensitive data before sharing the output. -->
|
|
42
|
-
- OS: [e.g. Debian Bookworm, official container version xxx, ...]
|
|
43
|
-
- oxidized version: [e.g. 0.32.2]
|
|
44
|
-
- oxidized-web version: [e.g. 0.15.1, if applicable]
|
|
45
|
-
- Manufacturer model and software version:
|
|
46
|
-
- oxidized model name:
|
|
47
|
-
|
|
48
|
-
**Device simulation (for model-specific issues)**
|
|
49
|
-
<!--
|
|
50
|
-
If your issue is about a specific device/model, a YAML simulation file helps us
|
|
51
|
-
a lot. When the issue can be reproduced with the current Oxidized model
|
|
52
|
-
unchanged, the easiest way is to enable the yaml debug option in your input
|
|
53
|
-
section:
|
|
54
|
-
|
|
55
|
-
input:
|
|
56
|
-
debug: yaml
|
|
57
|
-
|
|
58
|
-
Reproduce the backup, then attach the generated file from
|
|
59
|
-
~/.config/oxidized/logs/. See docs/DeviceSimulation.md for details, and remember
|
|
60
|
-
to remove sensitive data (passwords, IP addresses, serial numbers).
|
|
61
|
-
-->
|
|
62
|
-
|
|
63
|
-
**Additional context**
|
|
64
|
-
Add any other context about the problem here.
|
|
65
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
## Pre-Request Checklist
|
|
2
|
-
<!-- Not all items apply to each PR, but a great PR addresses all applicable items. -->
|
|
3
|
-
<!-- After submitting the pull request, ensure that all GitHub CI checks pass. -->
|
|
4
|
-
|
|
5
|
-
- [ ] Passes rubocop code analysis (try `rubocop --auto-correct`)
|
|
6
|
-
- [ ] Tests added or adapted (try `rake test`)
|
|
7
|
-
- [ ] Model changes include a YAML simulation file and the expected output (see `docs/DeviceSimulation.md` and `docs/ModelUnitTests.md`)
|
|
8
|
-
- [ ] Changes are reflected in the documentation
|
|
9
|
-
- [ ] User-visible changes appended to `CHANGELOG.md`
|
|
10
|
-
|
|
11
|
-
## Description
|
|
12
|
-
<!-- Describe your changes here. -->
|
|
13
|
-
|
|
14
|
-
<!-- Add a text similar to "Closes issue #" if this PR relates to an existing issue. -->
|
data/.github/dependabot.yml
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: "github-actions"
|
|
9
|
-
target-branch: "master"
|
|
10
|
-
directory: "/"
|
|
11
|
-
schedule:
|
|
12
|
-
interval: "daily"
|
|
13
|
-
open-pull-requests-limit: 10
|
|
14
|
-
labels:
|
|
15
|
-
- dependencies
|
|
16
|
-
- package-ecosystem: "bundler"
|
|
17
|
-
target-branch: "master"
|
|
18
|
-
directory: "/"
|
|
19
|
-
schedule:
|
|
20
|
-
interval: "daily"
|
|
21
|
-
open-pull-requests-limit: 10
|
|
22
|
-
labels:
|
|
23
|
-
- dependencies
|
|
24
|
-
- package-ecosystem: "docker"
|
|
25
|
-
target-branch: "master"
|
|
26
|
-
directory: "/"
|
|
27
|
-
schedule:
|
|
28
|
-
interval: "daily"
|
|
29
|
-
open-pull-requests-limit: 10
|
|
30
|
-
labels:
|
|
31
|
-
- dependencies
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
-
# to commit it to your repository.
|
|
3
|
-
#
|
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
-
# or to provide custom queries or build logic.
|
|
6
|
-
#
|
|
7
|
-
# ******** NOTE ********
|
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
-
# supported CodeQL languages.
|
|
11
|
-
#
|
|
12
|
-
name: "CodeQL"
|
|
13
|
-
|
|
14
|
-
on:
|
|
15
|
-
push:
|
|
16
|
-
branches: [ "master" ]
|
|
17
|
-
pull_request:
|
|
18
|
-
# The branches below must be a subset of the branches above
|
|
19
|
-
branches: [ "master" ]
|
|
20
|
-
schedule:
|
|
21
|
-
- cron: '44 21 * * 0'
|
|
22
|
-
|
|
23
|
-
jobs:
|
|
24
|
-
analyze:
|
|
25
|
-
name: Analyze
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
permissions:
|
|
28
|
-
actions: read
|
|
29
|
-
contents: read
|
|
30
|
-
security-events: write
|
|
31
|
-
|
|
32
|
-
strategy:
|
|
33
|
-
fail-fast: false
|
|
34
|
-
matrix:
|
|
35
|
-
language: [ 'ruby' ]
|
|
36
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
37
|
-
# Use only 'java' to analyze code written in Java, Kotlin or both
|
|
38
|
-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
|
39
|
-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
40
|
-
|
|
41
|
-
steps:
|
|
42
|
-
- name: Checkout repository
|
|
43
|
-
uses: actions/checkout@v7
|
|
44
|
-
|
|
45
|
-
# Initializes the CodeQL tools for scanning.
|
|
46
|
-
- name: Initialize CodeQL
|
|
47
|
-
uses: github/codeql-action/init@v4.39.3
|
|
48
|
-
with:
|
|
49
|
-
languages: ${{ matrix.language }}
|
|
50
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
51
|
-
# By default, queries listed here will override any specified in a config file.
|
|
52
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
53
|
-
|
|
54
|
-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
55
|
-
# queries: security-extended,security-and-quality
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
59
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
|
60
|
-
- name: Autobuild
|
|
61
|
-
uses: github/codeql-action/autobuild@v4.39.3
|
|
62
|
-
|
|
63
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
64
|
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
65
|
-
|
|
66
|
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
67
|
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
68
|
-
|
|
69
|
-
# - run: |
|
|
70
|
-
# echo "Run, Build Application using script"
|
|
71
|
-
# ./location_of_script_within_repo/buildscript.sh
|
|
72
|
-
|
|
73
|
-
- name: Perform CodeQL Analysis
|
|
74
|
-
uses: github/codeql-action/analyze@v4.39.3
|
|
75
|
-
with:
|
|
76
|
-
category: "/language:${{matrix.language}}"
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
name: Publish Docker
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [ "master" ]
|
|
5
|
-
tags: [ "[0-9]+.[0-9]+.[0-9]+" ]
|
|
6
|
-
env:
|
|
7
|
-
REGISTRY_IMAGE: oxidized/oxidized
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
if: github.repository_owner == 'ytti'
|
|
12
|
-
runs-on: ${{ matrix.runner }}
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
include:
|
|
17
|
-
- platform: linux/amd64
|
|
18
|
-
runner: ubuntu-latest
|
|
19
|
-
- platform: linux/arm64
|
|
20
|
-
runner: ubuntu-24.04-arm
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
- name: Prepare
|
|
24
|
-
run: |
|
|
25
|
-
platform=${{ matrix.platform }}
|
|
26
|
-
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
|
|
27
|
-
|
|
28
|
-
- name: Docker meta
|
|
29
|
-
id: meta
|
|
30
|
-
uses: docker/metadata-action@v6
|
|
31
|
-
with:
|
|
32
|
-
images: ${{ env.REGISTRY_IMAGE }}
|
|
33
|
-
tags: |
|
|
34
|
-
type=semver,pattern={{version}}
|
|
35
|
-
type=semver,pattern={{major}}
|
|
36
|
-
type=sha,prefix=master-
|
|
37
|
-
flavor: |
|
|
38
|
-
latest=true
|
|
39
|
-
|
|
40
|
-
- name: Login to Docker Hub
|
|
41
|
-
uses: docker/login-action@v4.8.0
|
|
42
|
-
with:
|
|
43
|
-
username: ${{ secrets.DOCKER_USERNAME }}
|
|
44
|
-
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
45
|
-
|
|
46
|
-
- name: Set up Docker Buildx
|
|
47
|
-
uses: docker/setup-buildx-action@v4
|
|
48
|
-
|
|
49
|
-
- name: Build and push by digest
|
|
50
|
-
id: build
|
|
51
|
-
uses: docker/build-push-action@v7
|
|
52
|
-
with:
|
|
53
|
-
platforms: ${{ matrix.platform }}
|
|
54
|
-
tags: ${{ env.REGISTRY_IMAGE }}
|
|
55
|
-
labels: |
|
|
56
|
-
${{ steps.meta.outputs.labels }}
|
|
57
|
-
org.opencontainers.image.ref.name=${{ steps.meta.outputs.version }}
|
|
58
|
-
build-args: |
|
|
59
|
-
BUILDKIT_CONTEXT_KEEP_GIT_DIR=true
|
|
60
|
-
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
|
|
61
|
-
|
|
62
|
-
- name: Export digest
|
|
63
|
-
run: |
|
|
64
|
-
mkdir -p ${{ runner.temp }}/digests
|
|
65
|
-
digest="${{ steps.build.outputs.digest }}"
|
|
66
|
-
touch "${{ runner.temp }}/digests/${digest#sha256:}"
|
|
67
|
-
|
|
68
|
-
- name: Upload digest
|
|
69
|
-
uses: actions/upload-artifact@v7
|
|
70
|
-
with:
|
|
71
|
-
name: digests-${{ env.PLATFORM_PAIR }}
|
|
72
|
-
path: ${{ runner.temp }}/digests/*
|
|
73
|
-
if-no-files-found: error
|
|
74
|
-
retention-days: 1
|
|
75
|
-
|
|
76
|
-
merge:
|
|
77
|
-
runs-on: ubuntu-latest
|
|
78
|
-
needs:
|
|
79
|
-
- build
|
|
80
|
-
steps:
|
|
81
|
-
- name: Download digests
|
|
82
|
-
uses: actions/download-artifact@v8
|
|
83
|
-
with:
|
|
84
|
-
path: ${{ runner.temp }}/digests
|
|
85
|
-
pattern: digests-*
|
|
86
|
-
merge-multiple: true
|
|
87
|
-
|
|
88
|
-
- name: Login to Docker Hub
|
|
89
|
-
uses: docker/login-action@v4.8.0
|
|
90
|
-
with:
|
|
91
|
-
username: ${{ secrets.DOCKER_USERNAME }}
|
|
92
|
-
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
93
|
-
|
|
94
|
-
- name: Set up Docker Buildx
|
|
95
|
-
uses: docker/setup-buildx-action@v4
|
|
96
|
-
|
|
97
|
-
- name: Docker meta
|
|
98
|
-
id: meta
|
|
99
|
-
uses: docker/metadata-action@v6
|
|
100
|
-
with:
|
|
101
|
-
images: ${{ env.REGISTRY_IMAGE }}
|
|
102
|
-
tags: |
|
|
103
|
-
type=semver,pattern={{version}}
|
|
104
|
-
type=semver,pattern={{major}}
|
|
105
|
-
type=sha,prefix=master-
|
|
106
|
-
flavor: |
|
|
107
|
-
latest=true
|
|
108
|
-
|
|
109
|
-
- name: Create manifest list and push
|
|
110
|
-
working-directory: ${{ runner.temp }}/digests
|
|
111
|
-
run: |
|
|
112
|
-
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
|
113
|
-
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
|
|
114
|
-
|
|
115
|
-
- name: Inspect image
|
|
116
|
-
run: |
|
|
117
|
-
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
|
data/.github/workflows/ruby.yml
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
-
# They are provided by a third-party and are governed by
|
|
3
|
-
# separate terms of service, privacy policy, and support
|
|
4
|
-
# documentation.
|
|
5
|
-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
-
|
|
8
|
-
name: CI
|
|
9
|
-
|
|
10
|
-
on: [ push, pull_request ]
|
|
11
|
-
# push:
|
|
12
|
-
# branches: [ master ]
|
|
13
|
-
# pull_request:
|
|
14
|
-
# branches: [ master ]
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
test:
|
|
18
|
-
|
|
19
|
-
runs-on: ${{ matrix.os }}
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
ruby-version: ['3.2', '3.3', '3.4', '4.0', 'ruby-head']
|
|
23
|
-
os: [ubuntu-latest]
|
|
24
|
-
# ubuntu-26.04 (ubuntu-latest) only provides Ruby >= 3.2
|
|
25
|
-
include:
|
|
26
|
-
- ruby-version: '3.0'
|
|
27
|
-
os: ubuntu-24.04
|
|
28
|
-
- ruby-version: '3.1'
|
|
29
|
-
os: ubuntu-24.04
|
|
30
|
-
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
|
|
31
|
-
|
|
32
|
-
steps:
|
|
33
|
-
- uses: actions/checkout@v7
|
|
34
|
-
- name: Set up Ruby
|
|
35
|
-
uses: ruby/setup-ruby@v1
|
|
36
|
-
with:
|
|
37
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
38
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
39
|
-
- name: Run tests
|
|
40
|
-
run: bundle exec rake
|
data/.github/workflows/stale.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Stale Issue/PR cleanup"
|
|
3
|
-
on:
|
|
4
|
-
schedule:
|
|
5
|
-
- cron: "30 1 * * *"
|
|
6
|
-
|
|
7
|
-
permissions:
|
|
8
|
-
issues: write
|
|
9
|
-
pull-requests: write
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
stale:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/stale@v11
|
|
16
|
-
with:
|
|
17
|
-
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity.'
|
|
18
|
-
stale-pr-message: 'This PR is stale because it has been open 90 days with no activity.'
|
|
19
|
-
operations-per-run: 500
|
|
20
|
-
days-before-stale: 90
|
|
21
|
-
days-before-close: -1
|
data/.gitignore
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
/.config
|
|
4
|
-
/coverage/
|
|
5
|
-
/InstalledFiles
|
|
6
|
-
/pkg/
|
|
7
|
-
/spec/reports/
|
|
8
|
-
/spec/examples.txt
|
|
9
|
-
/test/tmp/
|
|
10
|
-
/test/version_tmp/
|
|
11
|
-
/tmp/
|
|
12
|
-
.idea/
|
|
13
|
-
Gemfile.lock
|
|
14
|
-
.ruby-version
|
|
15
|
-
.sass-cache/
|
|
16
|
-
.vscode/
|
|
17
|
-
|
|
18
|
-
# Used by dotenv library to load environment variables.
|
|
19
|
-
# .env
|
|
20
|
-
|
|
21
|
-
## Specific to RubyMotion:
|
|
22
|
-
.dat*
|
|
23
|
-
.repl_history
|
|
24
|
-
build/
|
|
25
|
-
*.bridgesupport
|
|
26
|
-
build-iPhoneOS/
|
|
27
|
-
build-iPhoneSimulator/
|
|
28
|
-
|
|
29
|
-
## Specific to RubyMotion (use of CocoaPods):
|
|
30
|
-
#
|
|
31
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
|
32
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
|
33
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
|
34
|
-
#
|
|
35
|
-
# vendor/Pods/
|
|
36
|
-
|
|
37
|
-
## Documentation cache and generated files:
|
|
38
|
-
/.yardoc/
|
|
39
|
-
/_yardoc/
|
|
40
|
-
/doc/
|
|
41
|
-
/rdoc/
|
|
42
|
-
|
|
43
|
-
## Environment normalization:
|
|
44
|
-
/.bundle/
|
|
45
|
-
/vendor/bundle
|
|
46
|
-
/lib/bundler/man/
|
|
47
|
-
|
|
48
|
-
# for a library or gem, you might want to ignore these files since the code is
|
|
49
|
-
# intended to run in multiple environments; otherwise, check them in:
|
|
50
|
-
# Gemfile.lock
|
|
51
|
-
# .ruby-version
|
|
52
|
-
# .ruby-gemset
|
|
53
|
-
|
|
54
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
55
|
-
.rvmrc
|
|
56
|
-
/.rake_tasks~
|
data/.rubocop.yml
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
|
2
|
-
|
|
3
|
-
inherit_mode:
|
|
4
|
-
merge:
|
|
5
|
-
- Exclude
|
|
6
|
-
|
|
7
|
-
plugins:
|
|
8
|
-
- rubocop-rake
|
|
9
|
-
- rubocop-minitest
|
|
10
|
-
- rubocop-sequel
|
|
11
|
-
|
|
12
|
-
AllCops:
|
|
13
|
-
NewCops: enable
|
|
14
|
-
# Do not attempt to police vendored code
|
|
15
|
-
Exclude:
|
|
16
|
-
- 'vendor/**/*'
|
|
17
|
-
|
|
18
|
-
Gemspec/DevelopmentDependencies:
|
|
19
|
-
EnforcedStyle: gemspec
|
|
20
|
-
|
|
21
|
-
# We prefer to use ”” by default and use ’’ to signal that interpolation is
|
|
22
|
-
# intentionally turned off, but we don't enforce it.
|
|
23
|
-
Style/StringLiterals:
|
|
24
|
-
Enabled: false
|
|
25
|
-
|
|
26
|
-
Style/FrozenStringLiteralComment:
|
|
27
|
-
Enabled: false
|
|
28
|
-
|
|
29
|
-
Layout/LineLength:
|
|
30
|
-
Enabled: true
|
|
31
|
-
Max: 120
|
|
32
|
-
# Too much models have long lines, which is unsafe to reduce without
|
|
33
|
-
# having an existing model unit test.
|
|
34
|
-
Exclude:
|
|
35
|
-
- lib/oxidized/model/*.rb
|
|
36
|
-
|
|
37
|
-
# We do not enforce the cop in the models as it would not work with the
|
|
38
|
-
# DSL style of the models
|
|
39
|
-
Lint/AmbiguousRegexpLiteral:
|
|
40
|
-
Enabled: true
|
|
41
|
-
Exclude:
|
|
42
|
-
- lib/oxidized/model/*.rb
|
|
43
|
-
|
|
44
|
-
Lint/RaiseException:
|
|
45
|
-
Enabled: true
|
|
46
|
-
|
|
47
|
-
Lint/StructNewOverride:
|
|
48
|
-
Enabled: true
|
|
49
|
-
|
|
50
|
-
# Stick to verbose until https://bugs.ruby-lang.org/issues/10177 is closed.
|
|
51
|
-
Style/PreferredHashMethods:
|
|
52
|
-
EnforcedStyle: verbose
|
|
53
|
-
|
|
54
|
-
Layout/HashAlignment:
|
|
55
|
-
EnforcedHashRocketStyle: table
|
|
56
|
-
EnforcedColonStyle: table
|
|
57
|
-
|
|
58
|
-
# Explicitly allow the use of "not"
|
|
59
|
-
Style/Not:
|
|
60
|
-
Enabled: false
|
|
61
|
-
|
|
62
|
-
# comply with @ytti's exacting specifications
|
|
63
|
-
Style/CommandLiteral:
|
|
64
|
-
EnforcedStyle: percent_x
|
|
65
|
-
|
|
66
|
-
Style/ConditionalAssignment:
|
|
67
|
-
Enabled: false
|
|
68
|
-
|
|
69
|
-
Style/FormatString:
|
|
70
|
-
EnforcedStyle: percent
|
|
71
|
-
|
|
72
|
-
Style/FileOpen:
|
|
73
|
-
Exclude:
|
|
74
|
-
- lib/oxidized/input/*.rb
|
|
75
|
-
|
|
76
|
-
Style/FormatStringToken:
|
|
77
|
-
EnforcedStyle: unannotated
|
|
78
|
-
AllowedMethods: ['metadata']
|
|
79
|
-
|
|
80
|
-
Style/HashEachMethods:
|
|
81
|
-
Enabled: true
|
|
82
|
-
|
|
83
|
-
Style/HashSyntax:
|
|
84
|
-
EnforcedShorthandSyntax: either
|
|
85
|
-
|
|
86
|
-
Style/HashTransformKeys:
|
|
87
|
-
Enabled: true
|
|
88
|
-
|
|
89
|
-
Style/HashTransformValues:
|
|
90
|
-
Enabled: true
|
|
91
|
-
|
|
92
|
-
Style/OneClassPerFile:
|
|
93
|
-
Exclude:
|
|
94
|
-
- spec/**/*.rb
|
|
95
|
-
|
|
96
|
-
Style/RegexpLiteral:
|
|
97
|
-
EnforcedStyle: slashes
|
|
98
|
-
AllowInnerSlashes: true
|
|
99
|
-
|
|
100
|
-
# Explicitly allow the use of rescue as a Modifier
|
|
101
|
-
Style/RescueModifier:
|
|
102
|
-
Enabled: false
|
|
103
|
-
|
|
104
|
-
# Intentionally left deactivated as used in the models
|
|
105
|
-
Style/SymbolProc:
|
|
106
|
-
Enabled: false
|
|
107
|
-
|
|
108
|
-
Style/Documentation:
|
|
109
|
-
Enabled: false
|
|
110
|
-
|
|
111
|
-
Style/ParallelAssignment:
|
|
112
|
-
Enabled: true
|
|
113
|
-
|
|
114
|
-
Metrics/MethodLength:
|
|
115
|
-
Max: 50
|
|
116
|
-
|
|
117
|
-
Metrics/AbcSize:
|
|
118
|
-
Enabled: false
|
|
119
|
-
|
|
120
|
-
Metrics/ClassLength:
|
|
121
|
-
Max: 200
|
|
122
|
-
|
|
123
|
-
Metrics/ModuleLength:
|
|
124
|
-
Max: 200
|
|
125
|
-
|
|
126
|
-
Metrics/PerceivedComplexity:
|
|
127
|
-
Enabled: false
|
|
128
|
-
|
|
129
|
-
Metrics/CyclomaticComplexity:
|
|
130
|
-
Enabled: false
|
|
131
|
-
|
|
132
|
-
# The BlockLength metric does not apply to unit tests. They are in nature
|
|
133
|
-
# long and not very pretty
|
|
134
|
-
Metrics/BlockLength:
|
|
135
|
-
Max: 150
|
|
136
|
-
Exclude:
|
|
137
|
-
- spec/**/*_spec.rb
|
|
138
|
-
|
|
139
|
-
Metrics/ParameterLists:
|
|
140
|
-
Max: 6
|
|
141
|
-
|
|
142
|
-
# Used in the models
|
|
143
|
-
Lint/EmptyBlock:
|
|
144
|
-
Enabled: false
|
|
145
|
-
|
|
146
|
-
# Disable the cop as string concatenation is widely used in oxidized
|
|
147
|
-
Style/StringConcatenation:
|
|
148
|
-
Enabled: false
|
|
149
|
-
|
data/.rubocop_todo.yml
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-11-13 05:32:26 UTC using RuboCop version 1.92.2.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# Offense count: 2
|
|
10
|
-
# Configuration parameters: CountComments, Max, CountAsOne.
|
|
11
|
-
Metrics/ClassLength:
|
|
12
|
-
Exclude:
|
|
13
|
-
- 'lib/oxidized/node.rb'
|
|
14
|
-
- 'lib/oxidized/output/git.rb'
|
|
15
|
-
|
|
16
|
-
# Offense count: 1
|
|
17
|
-
Style/ClassVars:
|
|
18
|
-
Exclude:
|
|
19
|
-
- 'lib/oxidized.rb'
|
|
20
|
-
|
|
21
|
-
# Offense count: 1
|
|
22
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
23
|
-
# Configuration parameters: EnforcedStyle.
|
|
24
|
-
# SupportedStyles: allowed_in_returns, forbidden
|
|
25
|
-
Style/DoubleNegation:
|
|
26
|
-
Exclude:
|
|
27
|
-
- 'lib/oxidized/hook/exec.rb'
|
|
28
|
-
|
|
29
|
-
# Offense count: 1
|
|
30
|
-
Style/FileOpen:
|
|
31
|
-
Exclude:
|
|
32
|
-
- 'extra/syslog.rb'
|
|
33
|
-
|
|
34
|
-
# Offense count: 1
|
|
35
|
-
# Configuration parameters: AllowedClasses.
|
|
36
|
-
Style/OneClassPerFile:
|
|
37
|
-
Exclude:
|
|
38
|
-
- 'lib/oxidized/input/telnet.rb'
|