This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ===================================================================== --> | |
<!-- ======================== Checkstyle ================================= --> | |
<!-- ===================================================================== --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-checkstyle-plugin</artifactId> | |
<version>${checkstyle-plugin.version}</version> | |
<dependencies> | |
<dependency> | |
<groupId>com.puppycrawl.tools</groupId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Understanding AST | |
AST Tree | |
RooT | |
-sibling | |
|-child | |
|-sibling | |
|-sibling | |
-Sibling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method | Description | |
---|---|---|
getDefaultTokens() | This method defines the default set of tokens that the check will operate on if no specific token configuration is provided | |
getAcceptableTokens() | This method specifies a list of acceptable tokens for the check meaning the tokens that the check can analyze without reporting issues | |
getRequiredTokens() | This method defines a list of required tokens that must be present for the check to execute successfully | |
visitToken(DetailAST ast) | This method is called for each token encountered during the check's analysis of the source code. It allows the check to inspect and evaluate individual tokens in the code making decisions or reporting issues based on the characteristics of each token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Call like you would `diff` | |
# `./diff-changed-lines.sh old new` | |
# Outputs the lines numbers of the new file | |
# that are not present in the old file. | |
# That is, outputs line numbers for new lines and changed lines | |
# and does not output line numbers deleted or unchanged lines. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some Jenkinsfile examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jboss/wildfly:15.0.0.Final | |
EXPOSE 8080 | |
COPY target/springbootwildfly.war /opt/jboss/wildfly/standalone/deployments/ | |
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement","0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Template | |
labels: | |
template: rest-coverage | |
metadata: | |
annotations: | |
description: Application template for application. | |
iconClass: icon-jboss | |
tags: ufs,coverage,rest | |
version: 0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.qameta.allure.Allure; | |
import io.qameta.allure.AllureLifecycle; | |
import io.qameta.allure.model.Status; | |
import io.qameta.allure.model.StepResult; | |
import io.qameta.allure.util.ResultsUtils; | |
import io.qameta.atlas.core.api.Listener; | |
import io.qameta.atlas.core.api.Target; | |
import io.qameta.atlas.core.context.TargetContext; | |
import io.qameta.atlas.core.internal.Configuration; | |
import io.qameta.atlas.core.util.MethodInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface MainPage extends WebPage, WithHeader { | |
@FindBy("//a[contains(text(), 'Or start a free)]") | |
AtlasWebElement trial(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainSteps { | |
public void hasText(HtmlElement e, Matcher m) | |
public void hasValue(HtmlElement e, Matcher m) | |
public void linkContains(HtmlElement e, String s) | |
public void hasSize(List<HtmlElement> e, Matcher m) | |
public void hasItem(List<HtmlElement> e, Matcher m) | |
//... | |
} |
NewerOlder