Skip to content

Commit 7592194

Browse files
authored
Merge pull request #34 from spacious-team/develop
Релиз 2023.1
2 parents dad1048 + c14a94f commit 7592194

File tree

68 files changed

+3214
-614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3214
-614
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Отчет об ошибке
3+
about: Создайте отчет об ошибке, чтобы улучшить приложение
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Опишите ошибку**
11+
Ясное и краткое описание ошибки.
12+
13+
**Последовательность действий для воспроизведения**
14+
Шаги по воспроизведению ошибки.
15+
16+
**Ожидаемый результат**
17+
Ясное и краткое описание того, что вы ожидали.
18+
19+
**Скриншоты**
20+
Если возможно, добавьте скриншоты, чтобы объяснить проблему.
21+
22+
**Окружение:**
23+
- ОС: [например windows 10]
24+
- Версия Java [например 19]
25+
- Версия приложения[например 2020.1]
26+
27+
**Дополнительный контекст**
28+
Любой другой контекст проблемы.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Запрос новой функциональности
3+
about: Предложите идею для этого проекта
4+
title: ''
5+
labels: feature
6+
assignees: ''
7+
8+
---
9+
10+
**Связан ли ваш запрос новой функциональности с проблемой? Пожалуйста, опишите.**
11+
Четкое и краткое описание проблемы. Например, я всегда расстраиваюсь, когда [...]
12+
13+
**Опишите желаемое решение**
14+
Четкое и краткое описание того, что вы хотите сделать.
15+
16+
**Опишите альтернативы, которые вы рассмотрели**
17+
Четкое и краткое описание любых рассмотренных вами альтернативных решений или функций.
18+
19+
**Дополнительный контекст**
20+
Любой другой контекст.

.github/workflows/unit-tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Unit Tests
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- 'master'
8+
- 'develop'
9+
push:
10+
branches:
11+
- 'master'
12+
- 'develop'
13+
14+
jobs:
15+
tests:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Set up JDK
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: '18'
26+
distribution: 'liberica'
27+
cache: maven
28+
29+
- name: Maven Tests
30+
run: mvn --batch-mode clean test
31+
32+
- name: Test Coverage
33+
uses: codecov/codecov-action@v3
34+
35+
- name: SonarCloud Analyze
36+
run: >
37+
mvn --batch-mode sonar:sonar
38+
-Dsonar.projectKey=spacious-team_broker-report-parser-api
39+
-Dsonar.organization=spacious-team
40+
-Dsonar.host.url=https://sonarcloud.io
41+
-Dsonar.login=$SONAR_TOKEN
42+
-Dsonar.coverage.jacoco.xmlReportPaths=./target/site/jacoco/jacoco.xml
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
target/
22
.mvn
33
!.mvn/wrapper/maven-wrapper.properties
4-
!.mvn/wrapper/MavenWrapperDownloader.java
54
!**/src/main/**
65
!**/src/test/**
76

@@ -22,6 +21,7 @@ target/
2221
!.idea/runConfigurations
2322
!.idea/codeStyles
2423
!.idea/copyright
24+
!.idea/inspectionProfiles
2525

2626
### NetBeans ###
2727
/nbproject/private/

.idea/copyright/GNU_AGPLv3.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Inspections.xml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 0 additions & 117 deletions
This file was deleted.
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
117
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
![java-version](https://img.shields.io/badge/Java-11-brightgreen?style=flat-square)
22
![jitpack-last-release](https://jitpack.io/v/spacious-team/broker-report-parser-api.svg?style=flat-square)
3+
[![Unit tests](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fspacious-team%2Ftable-wrapper-api%2Fbadge%3Fref%3Ddevelop&style=flat-square&label=Test&logo=none)](
4+
https://github.com/spacious-team/broker-report-parser-api/actions/workflows/unit-tests.yml)
5+
[![Coverage](https://img.shields.io/codecov/c/github/spacious-team/broker-report-parser-api/develop?label=Coverage&style=flat-square&token=1QCPG1J03L)](
6+
https://codecov.io/gh/spacious-team/broker-report-parser-api)
37

48
### Назначение
59
Предоставляет API библиотек для парсинга файловых отчетов брокера о совершенных сделках на финансовых рынках.
@@ -75,7 +79,7 @@ public class MyBrokerReportFactory extends AbstractBrokerReportFactory {
7579
}
7680

7781
@Override
78-
public BrokerReport create(String reportFileName, InputStream is) {
82+
public Optional<BrokerReport> create(String reportFileName, InputStream is) {
7983
return super.create(reportFileName, is, MyBrokerReport::new);
8084
}
8185
}
@@ -95,6 +99,7 @@ public class MyReportTables extends AbstractReportTables<MyBrokerReport> {
9599
return emptyTable();
96100
}
97101
// другие методы ...
102+
}
98103
```
99104
Пример реализации `ReportTable` также в свободном
100105
[доступе](https://github.com/spacious-team/investbook/blob/develop/src/main/java/ru/investbook/parser/psb/SecuritiesTable.java).

0 commit comments

Comments
 (0)