Showing 85 of 232 total issues
Function UpdateUser
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UpdateUser(props) {
const [isUpdatePasswordModalOpen, setUpdatePasswordModal] = useState(false);
const [isDeleteUserModalOpen, setDeleteUserModal] = useState(false);
const {
Function User
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function User(props) {
const [isApiKeyModalOpen, setApiKeyModal] = useState(false);
const {
isAdmin,
Function Projects
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Projects(props) {
const { xApiKey, projects, isAdmin, loaded } = props;
useEffect(() => {
props.queryProjects(xApiKey, { lastDays: days });
Function EditUserForm
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EditUserForm(props) {
const {
isAdmin,
isCurrent,
handleSubmit,
Function ProjectRspecReports
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ProjectRspecReports(props) {
const { edges, pageInfo, projectName, query, totalCount, xApiKey } = props;
function fetchProjectRspecReports(options) {
if (query.page !== options.page) {
Function ScenariosList
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ScenariosList(props) {
const [scenarios, setScenarios] = useState([]);
const [page, setPage] = useState(1);
const [perPage, setPerPage] = useState(10);
const [total, setTotal] = useState(0);
Function UpdateProject
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UpdateProject(props) {
const [isDeleteProjectModalOpen, setDeleteProjectModel] = useState(false);
const { dispatch, isAdmin, project, projectName, xApiKey } = props;
const hasSameProject = hasProject(project, projectName);
Function Reports
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Reports(props) {
const { edges, pageInfo, query, totalCount, xApiKey } = props;
function fetchRspecReports(options) {
if (query.page !== options.page) {
Function Scenarios
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Scenarios(props) {
const {
xApiKey,
scenarios,
scenariosList,
Function Project
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Project(props) {
const { project, projectName, filters, xApiKey, scenariosDetails } = props;
function filterProject({ filterName, lastDays, lastMonths }) {
props.setProjectFilters(projectName, {
Function SearchReports
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SearchReports(props) {
useEffect(
() => () => {
props.reset('searchReportsForm');
props.setSearch([]);
Function Login
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Login(props) {
function onSubmit(values, dispatch) {
return new Promise((resolve, reject) => {
dispatch(props.signIn(values)).then(response => {
if (!response.payload.data) {
Function SearchScenarios
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function SearchScenarios(props) {
const [inputValue, setInputValue] = useState('');
const { search } = props;
function handleSubmit(event) {
Function EditProjectForm
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EditProjectForm(props) {
function onSubmit(values, dispatch) {
props.action(values.name).then(response => {
if (!response.payload.data) {
return dispatch(editProjectFailure(response.payload));
Function Scenario
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function Scenario(props) {
const {
projectName,
scenarioDetails,
status,
Function Navigation
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Navigation(props) {
const [isOpen, setOpen] = useState(false);
function toggle() {
setOpen(!isOpen);
Function ProjectScenarios
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ProjectScenarios(props) {
useEffect(() => {
props.setScenarios();
}, []);
Function Users
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Users(props) {
const { xApiKey, users, isAdmin } = props;
useEffect(() => {
props.getUsers(xApiKey);
Function RspecReportExamplesList
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function RspecReportExamplesList(props) {
const { examples } = props;
if (!examples) {
return <Loading />;
Function RspecReport
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RspecReport(props) {
const { report, reportId, xApiKey } = props;
useEffect(() => {
if (!report || report.id !== reportId) {