Showing 118 of 187 total issues
Method take
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
@Override public Phi take(final String name) { final String fqn = String.join(".", this.pkg, name); final Phi taken; if (name.equals(Attr.RHO)) {
- Read upRead up
Method parsed
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public XML parsed() throws IOException { final List<Text> lines = this.lines(); final GeneralErrors spy = new GeneralErrors(lines); final EoLexer lexer = new EoIndentLexer(this.normalize()); lexer.removeErrorListeners();
Method take
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("PMD.PreserveStackTrace") public byte[] take() { try { return this.phi.delta(); } catch (final EOerror.ExError ex) {
Method take
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public Phi take(final String name) { PhDefault.NESTING.set(PhDefault.NESTING.get() + 1); final Phi object; if (this.attrs.containsKey(name)) {
Method accept
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public void accept(final Dependency dep, final Path path) { try { MojoExecutor.executeMojo( MojoExecutor.plugin(
Method file
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Path file(final Dep dep) { try { final Dependency dpndncy = dep.get(); final String name = DpsDepgraph.fileName(dpndncy); MojoExecutor.executeMojo(
Method loadPhi
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("PMD.PreserveStackTrace") private Phi loadPhi(final String fqn) { final String target = new JavaPath(fqn).toString(); Phi loaded; try {
Method exitError
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void exitError(final String msg, final Throwable exp) throws MojoFailureException { if (!this.unrollExitError) { return; }
Method lambda
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public Phi lambda() { final Path path = Paths.get( new Dataized( this.take(Attr.RHO).take("file").take("path")
Method execWithTimeout
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("PMD.CloseResource") private void execWithTimeout() throws ExecutionException, TimeoutException { final ExecutorService service = Executors.newSingleThreadExecutor(); try { service.submit(
Method jvms
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static Collection<String> jvms(final Path file) { return new Xnav(file) .element("program") .elements(Filter.withName("metas")) .findFirst()
Method translate
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private int translate(final Path xmir, final int position, final int total) throws Exception { final long start = System.currentTimeMillis(); Logger.debug( this,
Method iterator
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
@Override public Iterator<Dep> iterator() { final Collection<TjForeign> list = this.tojos.dependencies(); Logger.debug( this, "%d suitable tojo(s) found out of %d",
- Read upRead up
Method exec
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public void exec() { final long begin = System.currentTimeMillis(); String before = this.scopedTojos().status(); int cycle = 0;
Method iterator
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public Iterator<Dep> iterator() { final Collection<Dep> deps = new ListOf<>(this.delegate.iterator()); final Map<String, Set<String>> conflicts = deps .stream()
Method reset
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static XML reset(final XML xml, final Path tmp) { final Optional<String> location = new Xnav(xml.inner()) .element("program") .attribute("xsi:noNamespaceSchemaLocation") .text();
Method parsed
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public XML parsed() throws IOException { final XePhiListener xel = new XePhiListener(this.name); final GeneralErrors spy = new GeneralErrors(this.input); final PhiLexer lexer = new PhiLexer(
Method get
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public String get() { final String result; switch (this.data.length) { case 0:
Method keepThem
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("PMD.AvoidAccessToStaticMembersViaThis") private int keepThem(final Iterable<? extends TjPlaced> tojos) throws IOException { int deleted = 0; int remained = 0; for (final TjPlaced tojo : tojos) {
Method value
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public Path value() throws IOException { final long bytes; try { if (this.target.toFile().getParentFile().mkdirs()) {