Skip to content

Commit

Permalink
Fixes #37511 - Drop all OVAL related things
Browse files Browse the repository at this point in the history
Add migration to drop OVAL related data
Drop CVE inflection
bundle exec rubocop --regenerate-todo
Prune some dead js
  • Loading branch information
adamruzicka committed May 29, 2024
1 parent 81a93e9 commit c1e20ca
Show file tree
Hide file tree
Showing 124 changed files with 28 additions and 5,879 deletions.
36 changes: 8 additions & 28 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-09-03 09:57:21 UTC using RuboCop version 1.19.1.
# on 2024-03-13 11:48:33 UTC using RuboCop version 1.23.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 3
# Offense count: 2
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'app/controllers/concerns/foreman/controller/parameters/oval_content.rb'
- 'app/controllers/scap_contents_controller.rb'
- 'app/controllers/tailoring_files_controller.rb'

Expand Down Expand Up @@ -45,23 +44,21 @@ Lint/SendWithMixinArgument:
Exclude:
- 'lib/foreman_openscap/engine.rb'

# Offense count: 17
# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'app/services/foreman_openscap/openscap_proxy_version_check.rb'
- 'app/services/foreman_openscap/oval/setup.rb'
- 'app/views/api/v2/compliance/common/_loc.json.rabl'
- 'app/views/api/v2/compliance/common/_org.json.rabl'
- 'app/views/api/v2/compliance/oval_policies/main.json.rabl'
- 'app/views/api/v2/compliance/policies/children.json.rabl'
- 'app/views/api/v2/compliance/scap_content_profiles/main.json.rabl'
- 'app/views/api/v2/compliance/scap_contents/show.json.rabl'
- 'app/views/api/v2/compliance/tailoring_files/show.json.rabl'
- 'lib/foreman_openscap/engine.rb'

# Offense count: 42
# Offense count: 34
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
Expand All @@ -72,10 +69,7 @@ Lint/UnusedMethodArgument:
- 'app/models/concerns/foreman_openscap/compliance_status_scoped_search.rb'
- 'app/models/concerns/foreman_openscap/host_extensions.rb'
- 'app/models/foreman_openscap/compliance_status.rb'
- 'app/models/foreman_openscap/oval_status.rb'
- 'app/services/foreman_openscap/lookup_key_overrides_common.rb'
- 'app/services/foreman_openscap/oval/configure.rb'
- 'app/services/foreman_openscap/oval/setup.rb'

# Offense count: 6
Lint/UselessAssignment:
Expand All @@ -98,33 +92,22 @@ Performance/RegexpMatch:
- 'app/models/concerns/foreman_openscap/openscap_proxy_core_extensions.rb'
- 'app/services/foreman_openscap/hostgroup_overrider_common.rb'

# Offense count: 13
# Cop supports --auto-correct.
Rails/ContentTag:
Exclude:
- 'app/helpers/arf_reports_helper.rb'
- 'app/helpers/policies_helper.rb'
- 'app/helpers/policy_dashboard_helper.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforceForPrefixed.
Rails/Delegate:
Exclude:
- 'app/models/foreman_openscap/asset.rb'

# Offense count: 18
# Offense count: 17
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/concerns/foreman_openscap/oval_facet_host_extensions.rb'
- 'app/models/concerns/foreman_openscap/host_extensions.rb'
- 'app/models/concerns/foreman_openscap/smart_proxy_extensions.rb'
- 'app/models/foreman_openscap/arf_report.rb'
- 'app/models/foreman_openscap/asset.rb'
- 'app/models/foreman_openscap/cve.rb'
- 'app/models/foreman_openscap/oval_content.rb'
- 'app/models/foreman_openscap/oval_policy.rb'
- 'app/models/foreman_openscap/policy.rb'
- 'app/models/foreman_openscap/scap_content.rb'
- 'app/models/foreman_openscap/scap_content_profile.rb'
Expand All @@ -138,13 +121,12 @@ Rails/HttpStatus:
Exclude:
- 'app/controllers/api/v2/compliance/policies_controller.rb'

# Offense count: 7
# Offense count: 6
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
Exclude:
- 'app/models/concerns/foreman_openscap/host_extensions.rb'
- 'app/models/concerns/foreman_openscap/oval_facet_host_extensions.rb'
- 'app/models/concerns/foreman_openscap/smart_proxy_extensions.rb'
- 'app/models/foreman_openscap/arf_report.rb'

Expand All @@ -157,6 +139,7 @@ Rails/LexicallyScopedActionFilter:
- 'app/controllers/scap_contents_controller.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Expand All @@ -178,6 +161,3 @@ Rails/ReadWriteAttribute:
Rails/TimeZone:
Exclude:
- 'app/models/foreman_openscap/arf_report.rb'

Rails/HasManyOrHasOneDependent:
Enabled: false
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ of Foreman based infrastructure.
+ Waive known issues (one-time waivers, re-occurring, waivers)
+ Ad-hoc audit of given machine
+ Support for PreupgradeAssistant evaluation
+ Vulnerability Assessment (processing OVAL CVE streams)
+ E-mail notifications

## Usage
Expand Down
72 changes: 0 additions & 72 deletions app/controllers/api/v2/compliance/oval_contents_controller.rb

This file was deleted.

111 changes: 0 additions & 111 deletions app/controllers/api/v2/compliance/oval_policies_controller.rb

This file was deleted.

47 changes: 0 additions & 47 deletions app/controllers/api/v2/compliance/oval_reports_controller.rb

This file was deleted.

This file was deleted.

Loading

0 comments on commit c1e20ca

Please sign in to comment.