micgro42/wikidataShExValidator

View on GitHub
src/Store/actions.ts

Summary

Maintainability
A
3 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status