micgro42/wikidataShExValidator

View on GitHub

Showing 2 of 2 total issues

Function setQuery has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  setQuery(
    { commit, state }: { commit: Commit; state: StateInterface },
    query: string,
  ): void {
    commit('setQuery', { query });
Severity: Minor
Found in src/Store/actions.ts - About 1 hr to fix

    Function updateSchemaId has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      updateSchemaId({ commit }: { commit: Commit }, schemaId: string): void {
        if (!schemaId.match(/^E[1-9]\d*$/)) {
          commit('setShExCStatus', ShExCStatus.loadingError);
          return;
        }
    Severity: Minor
    Found in src/Store/actions.ts - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language