theforeman/foreman

View on GitHub
webpack/assets/javascripts/react_app/components/HostStatuses/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function HostStatuses has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const HostStatuses = () => {
  const url = foremanUrl('/api/v2/host_statuses?per_page=all');
  const { status = STATUS.PENDING } = useAPI('get', url, API_OPTIONS);

  const Skeleton = () => (

    There are no issues that match your filters.

    Category
    Status