tfriem/svn-helper

View on GitHub

Showing 4 of 10 total issues

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

export default class Merge extends Command {
static description = 'merge from another version'
 
static aliases = ['m']
 
 
Severity: Major
Found in src/commands/merge.ts and 1 other location - About 1 day to fix
src/commands/switch.ts on lines 12..56

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

export default class Switch extends Command {
static description = 'switch repository to a different version'
 
static aliases = ['sw']
 
 
Severity: Major
Found in src/commands/switch.ts and 1 other location - About 1 day to fix
src/commands/merge.ts on lines 12..56

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

if (!releaseName) {
const releases = userConfig.releases.map(release => release.name)
releaseName = await ask('Release', releases)
}
Severity: Minor
Found in src/commands/switch-release.ts and 1 other location - About 45 mins to fix
src/commands/switch-subsystem.ts on lines 63..66

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

if (!subsystemName) {
const subsystems = userConfig.subsystems.map(subsystem => subsystem.name)
subsystemName = await ask('Subsystem', subsystems)
}
Severity: Minor
Found in src/commands/switch-subsystem.ts and 1 other location - About 45 mins to fix
src/commands/switch-release.ts on lines 30..33
Severity
Category
Status
Source
Language