datacite/bracco

View on GitHub

Showing 866 of 918 total issues

File spdx.js has 4654 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export default {
licenses: [
{
reference: './0BSD.html',
isDeprecatedLicenseId: false,
Severity: Major
Found in app/spdx.js - About 1 wk to fix

    File dfg-mappings.js has 1929 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    const OECD_SCHEME = 'Fields of Science and Technology (FOS)';
    const OECD_SCHEME_URI = 'http://www.oecd.org/science/inno/38235147.pdf';
    const MAPPING = {
    mappingListVersion: '1.0',
    originalUrl:
    Severity: Major
    Found in app/utils/dfg-mappings.js - About 5 days to fix

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      const stateList = [
      { code: 'US-AL', name: 'Alabama' },
      { code: 'US-AK', name: 'Alaska' },
      { code: 'US-AZ', name: 'Arizona' },
      { code: 'US-AR', name: 'Arkansas' },
      Severity: Major
      Found in app/controllers/providers/show/edit.js and 1 other location - About 4 days to fix
      app/controllers/providers/new.js on lines 18..76

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      const stateList = [
      { code: 'US-AL', name: 'Alabama' },
      { code: 'US-AK', name: 'Alaska' },
      { code: 'US-AZ', name: 'Arizona' },
      { code: 'US-AR', name: 'Arkansas' },
      Severity: Major
      Found in app/controllers/providers/new.js and 1 other location - About 4 days to fix
      app/controllers/providers/show/edit.js on lines 20..78

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      joinNameParts(options = {}) {
      if (options.nameIdentifierScheme === 'ORCID') {
      this.fragment.set('nameType', 'Personal');
      this.set('nameType', 'Personal');
      this.set('isReadonlyNameParts', true);
      Severity: Major
      Found in app/components/doi-related-item-creator.js and 1 other location - About 3 days to fix
      app/components/doi-related-item-contributor.js on lines 61..113

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      joinNameParts(options = {}) {
      if (options.nameIdentifierScheme === 'ORCID') {
      this.fragment.set('nameType', 'Personal');
      this.set('nameType', 'Personal');
      this.set('isReadonlyNameParts', true);
      Severity: Major
      Found in app/components/doi-related-item-contributor.js and 1 other location - About 3 days to fix
      app/components/doi-related-item-creator.js on lines 37..89

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      try {
      select('#' + chartId)
      .selectAll('*')
      .remove();
       
       
      Severity: Major
      Found in app/components/bar-chart.js and 1 other location - About 3 days to fix
      app/components/month-chart.js on lines 104..187

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      try {
      select('#' + chartId)
      .selectAll('*')
      .remove();
       
       
      Severity: Major
      Found in app/components/month-chart.js and 1 other location - About 3 days to fix
      app/components/bar-chart.js on lines 107..190

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      it('update specific contact', () => {
      // Create a contact to be updated.
      var rndInt = randomIntFromInterval(min, max);
      var given_name = 'Jack';
      var family_name = test_contact_family_name_prefix + rndInt;
      Severity: Major
      Found in cypress/e2e/organization_admin/contact.test.ts and 1 other location - About 3 days to fix
      cypress/e2e/staff_admin/contact.test.ts on lines 211..253

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      it('update specific contact', () => {
      // Create a contact to be updated.
      var rndInt = randomIntFromInterval(min, max);
      var given_name = 'Jack';
      var family_name = test_contact_family_name_prefix + rndInt;
      Severity: Major
      Found in cypress/e2e/staff_admin/contact.test.ts and 1 other location - About 3 days to fix
      cypress/e2e/organization_admin/contact.test.ts on lines 207..249

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      it('delete specific contact', () => {
      // Create a contact to be deleted.
      var rndInt = randomIntFromInterval(min, max);
      var given_name = 'Jack';
      var family_name = test_contact_family_name_prefix + rndInt;
      Severity: Major
      Found in cypress/e2e/staff_admin/contact.test.ts and 1 other location - About 2 days to fix
      cypress/e2e/organization_admin/contact.test.ts on lines 251..289

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      it('delete specific contact', () => {
      // Create a contact to be deleted.
      var rndInt = randomIntFromInterval(min, max);
      var given_name = 'Jack';
      var family_name = test_contact_family_name_prefix + rndInt;
      Severity: Major
      Found in cypress/e2e/organization_admin/contact.test.ts and 1 other location - About 2 days to fix
      cypress/e2e/staff_admin/contact.test.ts on lines 255..294

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      const provinceListChina = [
      { code: 'CN-34', name: 'Anhui' },
      { code: 'CN-11', name: 'Beijing' },
      { code: 'CN-50', name: 'Chongqing' },
      { code: 'CN-35', name: 'Fujian' },
      Severity: Major
      Found in app/controllers/providers/show/edit.js and 1 other location - About 2 days to fix
      app/controllers/providers/new.js on lines 94..128

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      const provinceListChina = [
      { code: 'CN-34', name: 'Anhui' },
      { code: 'CN-11', name: 'Beijing' },
      { code: 'CN-50', name: 'Chongqing' },
      { code: 'CN-35', name: 'Fujian' },
      Severity: Major
      Found in app/controllers/providers/new.js and 1 other location - About 2 days to fix
      app/controllers/providers/show/edit.js on lines 96..130

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      if (this.currentUser.get('isAdmin')) {
      this.store
      .query('repository', { query, sort: 'name', 'page[size]': 100 })
      .then(function (repositories) {
      self.set('repositories', repositories);
      Severity: Major
      Found in app/components/repository-dois-transfer.js and 1 other location - About 2 days to fix
      app/components/doi-transfer.js on lines 34..74

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      if (this.currentUser.get('isAdmin')) {
      this.store
      .query('repository', { query, sort: 'name', 'page[size]': 100 })
      .then(function (repositories) {
      self.set('repositories', repositories);
      Severity: Major
      Found in app/components/doi-transfer.js and 1 other location - About 2 days to fix
      app/components/repository-dois-transfer.js on lines 44..84

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      @action
      searchState(query) {
      let states = null;
      if (this.model.get('billingInformation.country.code') === 'US') {
      states = stateList.filter(function (state) {
      Severity: Major
      Found in app/controllers/providers/new.js and 1 other location - About 1 day to fix
      app/controllers/providers/show/edit.js on lines 215..236

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      @action
      searchState(query) {
      let states = null;
      if (this.model.get('billingInformation.country.code') === 'US') {
      states = stateList.filter(function (state) {
      Severity: Major
      Found in app/controllers/providers/show/edit.js and 1 other location - About 1 day to fix
      app/controllers/providers/new.js on lines 215..236

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      it('visiting specific contact', () => {
      // Create a contact to be visited.
      var rndInt = randomIntFromInterval(min, max);
      var given_name = 'Jack';
      var family_name = test_contact_family_name_prefix + rndInt;
      Severity: Major
      Found in cypress/e2e/staff_admin/contact.test.ts and 1 other location - About 1 day to fix
      cypress/e2e/organization_admin/contact.test.ts on lines 180..205

      Identical blocks of code found in 2 locations. Consider refactoring.
      Open

      it('visiting specific contact', () => {
      // Create a contact to be visited.
      var rndInt = randomIntFromInterval(min, max);
      var given_name = 'Jack';
      var family_name = test_contact_family_name_prefix + rndInt;
      Severity: Major
      Found in cypress/e2e/organization_admin/contact.test.ts and 1 other location - About 1 day to fix
      cypress/e2e/staff_admin/contact.test.ts on lines 184..209
      Severity
      Category
      Status
      Source
      Language