Showing 2,737 of 2,737 total issues
Function getEnabledComponent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getEnabledComponent = (enabledReposState, onPaginationChange) => {
const {
repositories,
searchIsActive,
pagination,
Function buildRows
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildRows = useCallback(() => {
const newRows = [];
results.forEach((filter) => {
let errataByDate = false;
const {
Function DebsController
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DebsController($scope, $location, translate, Nutupane, Deb, CurrentOrganization) {
var nutupane;
var params = {
'organization_id': CurrentOrganization,
Method pulp_disk_usage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def pulp_disk_usage
if pulp3_enabled?
storage = ping_pulp3['storage']
if storage.nil?
[
Function ApiErrorHandler
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ApiErrorHandler(translate, Notification) {
function handleError(response, $scope, defaultErrorMessage) {
if (response.hasOwnProperty('data') && response.data.hasOwnProperty('errors')) {
angular.forEach(response.data.errors, function (error) {
Notification.setErrorMessage(error);
Function FeatureFlag
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FeatureFlag(Features) {
var featureFlags = {};
angular.forEach(Features, function (enabled, feature) {
featureFlags[feature] = {states: [], enabled: enabled};
Function addHostCollections
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addHostCollections = function (host) {
var deferred = $q.defer(),
success,
error,
data,
Function syncStatusText
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.syncStatusText = function (currentSyncState, syncStatus) {
var message, syncableEnvs, envNames;
if (angular.isUndefined(syncStatus)) {
return "";
Method content_unit_pulp_ids
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def content_unit_pulp_ids(repo, additional_included_errata = [])
return [] if erratum_rules.blank?
if filter_by_id?
errata_ids = erratum_rules.map(&:errata_id)
Method resource_name
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def resource_name(_i18n = true)
case resource_class.to_s
when "Katello::Erratum"
_("Erratum")
when "Katello::Deb"
Method ssl_remote_options
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def ssl_remote_options
options = {}
if root.redhat? && root.cdn_configuration.redhat_cdn?
options = {
client_cert: root.product.certificate,
Method index_relation_content_unit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def index_relation_content_unit(query)
if params[:deb_id]
query = query.joins(:debs)
.where("#{Deb.table_name}.id" => Deb.with_identifiers(params[:deb_id]))
end
Method save_pulp_push_repository_href
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def save_pulp_push_repository_href
instance_repo = root_repository&.library_instance
unless root_repository.present? && instance_repo.present?
return render_podman_error(
Method deliver!
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def deliver!
::Organization.unscoped.all.each do |organization|
if (notification = existing_notification(organization))
days_remaining = organization.manifest_expire_days_remaining
if days_remaining == 0 || days_remaining > Setting[:expire_soon_days].to_i
Method show_all
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def show_all
kc = Katello::ContentView.table_name
kcc = Katello::ContentViewComponent.table_name
join_query = <<-SQL
LEFT OUTER JOIN #{kcc}
Method plan
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def plan(version, environment, description, incremental_update = false)
history = ::Katello::ContentViewHistory.create!(:content_view_version => version, :user => ::User.current.login,
:environment => environment, :task => self.task,
:status => ::Katello::ContentViewHistory::IN_PROGRESS,
:action => 'promotion',
Method docker_search
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def docker_search
request_params = {
method: :get,
headers: { accept: :json },
url: "#{@uri}v1/search?q=#{@search}"
Method run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
content = { ::Katello::Erratum::CONTENT_TYPE => [],
::Katello::Rpm::CONTENT_TYPE => [],
::Katello::ModuleStream::CONTENT_TYPE => [],
::Katello::Deb::CONTENT_TYPE => []
Method resolve_traces
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.resolve_traces(traces)
traces.each do |trace|
if trace.reboot_required?
trace.helper = 'reboot'
end
Method alternate_content_source_permissions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def alternate_content_source_permissions
@plugin.permission :view_alternate_content_sources,
{
'katello/api/v2/alternate_content_sources' => [:index, :show, :auto_complete_search]
},