Skip to content

Commit fadd29d

Browse files
committed
#1 moved
0 parents  commit fadd29d

38 files changed

+2334
-0
lines changed

.0pdd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
errors:
2+
3+
# alerts:
4+
# github:
5+
# - yegor256
6+
7+
tags:
8+
- pdd
9+
- bug

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Check out all text files in UNIX format, with LF as end of line
2+
# Don't change this file. If you have any ideas about it, please
3+
# submit a separate issue about it and we'll discuss.
4+
5+
* text=auto eol=lf
6+
*.java ident
7+
*.xml ident
8+
*.png binary

.github/workflows/mvn.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: mvn
3+
"on":
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
jobs:
11+
maven-build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [windows-latest, ubuntu-latest]
16+
java: [1.8, 11, 13]
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: ${{ matrix.java }}
23+
- uses: actions/cache@v1
24+
with:
25+
path: ~/.m2/repository
26+
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: |
28+
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
29+
- name: Build it with Maven
30+
run: mvn -B verify -Pqulice
31+
xcop-lint:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: g4s8/xcop-action@master
36+
pdd-lint:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: g4s8/pdd-action@master

.github/workflows/reports.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Reports
3+
"on":
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
jobs:
11+
codecov:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- uses: actions/cache@v1
20+
with:
21+
path: ~/.m2/repository
22+
key: maven-${{ hashFiles('**/pom.xml') }}
23+
restore-keys: |
24+
maven-
25+
- name: Run tests
26+
run: mvn -B verify -Pjacoco
27+
- name: Upload coverage to Codecov
28+
uses: codecov/codecov-action@v1
29+
with:
30+
file: ./target/site/jacoco/jacoco.xml
31+
fail_ci_if_error: true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target/
2+
.idea/
3+
*.iml
4+
.DS_Store

.pdd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--source=.
2+
--verbose
3+
--exclude target/**
4+
--exclude white-paper/**
5+
--rule min-words:20
6+
--rule min-estimate:15
7+
--rule max-estimate:90

.rultor.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
assets:
2+
settings.xml: yegor256/home#assets/polystat/settings.xml
3+
pubring.gpg: yegor256/home#assets/pubring.gpg
4+
secring.gpg: yegor256/home#assets/secring.gpg
5+
install: |
6+
pdd --file=/dev/null
7+
merge:
8+
script: |
9+
mvn clean install -Pqulice --errors -Dstyle.color=never
10+
release:
11+
script: |-
12+
mvn versions:set "-DnewVersion=${tag}" -Dstyle.color=never
13+
git commit -am "${tag}"
14+
mvn clean install -Dinvoker.skip
15+
mvn clean deploy -Ppolystat -Psonatype --errors --settings ../settings.xml -Dstyle.color=never

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020-2021 Polystat.org
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included
13+
in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<img src="https://www.polystat.org/logo.svg" height="92px"/>
2+
3+
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
4+
[![DevOps By Rultor.com](http://www.rultor.com/b/polystat/far)](http://www.rultor.com/p/polystat/far)
5+
[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)
6+
7+
[![CI checks](https://github.com/polystat/far/actions/workflows/mvn.yml/badge.svg)](https://github.com/polystat/far/actions/workflows/mvn.yml)
8+
[![PDD status](http://www.0pdd.com/svg?name=polystat/far)](http://www.0pdd.com/p?name=polystat/far)
9+
[![codecov](https://codecov.io/gh/polystat/far/branch/master/graph/badge.svg)](https://codecov.io/gh/polystat/far)
10+
11+
[![Javadoc](http://www.javadoc.io/badge/org.polystat/far.svg)](http://www.javadoc.io/doc/org.polystat/far)
12+
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/polystat/far/blob/master/LICENSE.txt)
13+
[![Maven Central](https://img.shields.io/maven-central/v/org.polystat/far.svg)](https://maven-badges.herokuapp.com/maven-central/org.polystat/far)
14+
[![Hits-of-Code](https://hitsofcode.com/github/polystat/far)](https://hitsofcode.com/view/github/polystat/far)
15+
![Lines of code](https://img.shields.io/tokei/lines/github/polystat/far)
16+
17+
This is an experimental analyzer for Polystat.
18+

pom.xml

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
The MIT License (MIT)
4+
5+
Copyright (c) 2020-2021 Polystat.org
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included
15+
in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
-->
25+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26+
<modelVersion>4.0.0</modelVersion>
27+
<parent>
28+
<groupId>com.jcabi</groupId>
29+
<artifactId>parent</artifactId>
30+
<version>0.56.0</version>
31+
</parent>
32+
<groupId>org.polystat</groupId>
33+
<artifactId>far</artifactId>
34+
<version>1.0-SNAPSHOT</version>
35+
<packaging>jar</packaging>
36+
<name>far</name>
37+
<description>Find-a-Reverse Analyzer</description>
38+
<dependencies>
39+
<dependency>
40+
<groupId>org.slf4j</groupId>
41+
<artifactId>slf4j-log4j12</artifactId>
42+
<scope>runtime</scope>
43+
</dependency>
44+
<dependency>
45+
<groupId>log4j</groupId>
46+
<artifactId>log4j</artifactId>
47+
<scope>runtime</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.eolang</groupId>
51+
<artifactId>eo-parser</artifactId>
52+
<version>0.21.0</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.cactoos</groupId>
56+
<artifactId>cactoos</artifactId>
57+
<version>0.46</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.jcabi.incubator</groupId>
61+
<artifactId>xembly</artifactId>
62+
<version>0.25.0</version>
63+
</dependency>
64+
<dependency>
65+
<groupId>com.jcabi</groupId>
66+
<artifactId>jcabi-log</artifactId>
67+
</dependency>
68+
<dependency>
69+
<groupId>com.jcabi</groupId>
70+
<artifactId>jcabi-matchers</artifactId>
71+
</dependency>
72+
<dependency>
73+
<groupId>com.jcabi</groupId>
74+
<artifactId>jcabi-xml</artifactId>
75+
<version>0.23.0</version>
76+
</dependency>
77+
<dependency>
78+
<groupId>org.junit.jupiter</groupId>
79+
<artifactId>junit-jupiter-params</artifactId>
80+
<version>5.6.2</version>
81+
<scope>test</scope>
82+
</dependency>
83+
<dependency>
84+
<groupId>com.google.code.findbugs</groupId>
85+
<artifactId>annotations</artifactId>
86+
<version>3.0.1</version>
87+
<scope>provided</scope>
88+
</dependency>
89+
</dependencies>
90+
<build>
91+
<plugins>
92+
<plugin>
93+
<groupId>org.eolang</groupId>
94+
<artifactId>eo-maven-plugin</artifactId>
95+
<version>0.21.0</version>
96+
<executions>
97+
<execution>
98+
<id>test-compile</id>
99+
<phase>generate-test-resources</phase>
100+
<goals>
101+
<goal>register</goal>
102+
<goal>parse</goal>
103+
<goal>optimize</goal>
104+
</goals>
105+
<configuration>
106+
<scope>test</scope>
107+
<sourcesDir>${project.basedir}/src/test/eo</sourcesDir>
108+
<targetDir>${project.basedir}/target/test-classes/xmir</targetDir>
109+
</configuration>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
</plugins>
114+
</build>
115+
<profiles>
116+
<profile>
117+
<id>sonatype</id>
118+
<build>
119+
<plugins>
120+
<plugin>
121+
<!-- @see https://issues.sonatype.org/browse/OSSRH-70730 -->
122+
<groupId>org.sonatype.plugins</groupId>
123+
<artifactId>nexus-staging-maven-plugin</artifactId>
124+
<configuration>
125+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
126+
</configuration>
127+
</plugin>
128+
</plugins>
129+
</build>
130+
</profile>
131+
<profile>
132+
<id>qulice</id>
133+
<build>
134+
<plugins>
135+
<plugin>
136+
<groupId>com.qulice</groupId>
137+
<artifactId>qulice-maven-plugin</artifactId>
138+
<configuration>
139+
<excludes combine.children="append">
140+
<exclude>duplicatefinder:.*</exclude>
141+
</excludes>
142+
</configuration>
143+
</plugin>
144+
</plugins>
145+
</build>
146+
</profile>
147+
<profile>
148+
<id>jacoco</id>
149+
<build>
150+
<plugins>
151+
<plugin>
152+
<groupId>org.jacoco</groupId>
153+
<artifactId>jacoco-maven-plugin</artifactId>
154+
<version>0.8.5</version>
155+
<configuration>
156+
<output>file</output>
157+
</configuration>
158+
<executions>
159+
<execution>
160+
<id>jacoco-initialize</id>
161+
<goals>
162+
<goal>prepare-agent</goal>
163+
</goals>
164+
</execution>
165+
<execution>
166+
<id>jacoco-initialize-integration</id>
167+
<goals>
168+
<goal>prepare-agent-integration</goal>
169+
</goals>
170+
</execution>
171+
<execution>
172+
<id>jacoco-report</id>
173+
<goals>
174+
<goal>report</goal>
175+
</goals>
176+
</execution>
177+
<execution>
178+
<id>jacoco-report-integration</id>
179+
<goals>
180+
<goal>report-integration</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
</plugin>
185+
</plugins>
186+
</build>
187+
</profile>
188+
</profiles>
189+
</project>

0 commit comments

Comments
 (0)