Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First draft of migrations #52

Merged
merged 18 commits into from
May 4, 2017
Merged

First draft of migrations #52

merged 18 commits into from
May 4, 2017

Conversation

eroshenkoam
Copy link
Member

No description provided.

@eroshenkoam eroshenkoam added the work:review Work is done, waiting for review label Apr 30, 2017
/**
* Allure labels utils.
*/
public final class Allure1Annotations {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make it package-private

}

@SuppressWarnings("PMD")
private void doNothing() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this method for

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's created to avoid findbug analysis issue.
I can replace it by anotation @SuppressFBWarnings("...") in com.google.code.findbugs:annotations:3.0.0

https://github.com/xvik/gradle-quality-plugin#findbugs

@@ -0,0 1,21 @@
package ru.yandex.qatools.allure.annotations;

import java.lang.annotation.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove wildcard imports

}

configurations {
provided
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use compileOnly instead

compile project(':allure-java-commons')

compile 'org.aspectj:aspectjrt'
compile 'org.allurefw:allure1-model'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we avoid using this dependency?

private final Object[] args;


public Allure1Annotations(final Object target, final MethodSignature signature, final Object... args) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That feels like you need to split this utility class into two different classes - one that extracts data and the other that creates labels etc

/**
* Some utils that help process steps and attachments names and titles.
*/
public final class Allure1AspectUtils {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package private


private final Object[] args;


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

@baev baev merged commit 6d19316 into master May 4, 2017
@baev baev deleted the migrations branch May 4, 2017 14:57
@baev baev removed the work:review Work is done, waiting for review label May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants