Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Контроль качества

on:
push:
pull_request:
workflow_dispatch:

jobs:
sonar:
uses: autumn-library/workflows/.github/workflows/sonar.yml@v1
with:
github_repository: oscript-library/xml-parser
coveralls: true
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Публикация релиза

on:
release:
types:
- published
workflow_dispatch:

jobs:
release:
uses: autumn-library/workflows/.github/workflows/release.yml@v1
with:
package_mask: "xml-parser-*.ospx"
secrets:
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Тестирование

on:
push:
pull_request:
workflow_dispatch:

jobs:
test:
uses: autumn-library/workflows/.github/workflows/test.yml@v1
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ bdd-log*.xml
bin/*
tests.xml
*.ospx

coverage/*
oscript_modules/
.bsl-ls-cache/
out/*
77 changes: 0 additions & 77 deletions .travis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "Отладка 1Script",
"type": "oscript",
"request": "launch",
"program": "${file}",
"args": [],
"cwd": "${workspaceRoot}",
"env": {},
"runtimeExecutable": "/home/nfedkin/.local/share/ovm/current/bin/oscript",
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

The runtimeExecutable path is hardcoded to a specific user's home directory (/home/nfedkin/.local/share/ovm/current/bin/oscript). This configuration file will not work for other developers. Consider using a variable like "runtimeExecutable": "oscript" to rely on the PATH environment variable, or using VS Code variables like ${env:HOME} to make it more portable.

Suggested change
"runtimeExecutable": "/home/nfedkin/.local/share/ovm/current/bin/oscript",
"runtimeExecutable": "oscript",

Copilot uses AI. Check for mistakes.
"runtimeArgs": [],
"debugPort": 2801
}
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2018 khorevaa

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ opm install xml-parser
* Чтение данных из файла
```bsl

#Использовать xml-parser

//<ФайлПФР>
// <ИмяФайла>
// <НазваниеФормата>fb2</НазваниеФормата>
Expand All @@ -75,12 +77,14 @@ opm install xml-parser
* Запись данных в файл
```bsl

ПутьКФайлу = "ТутНуженПутьКФайлу";
#Использовать xml-parser

ПутьКФайлу = "ТутНуженПутьКФайлу";

ПроцессорXML = Новый СериализацияДанныхXML();
ДанныеЗаписиXML = Новый Структура("name", "Наименование");

ПроцессорXML.ЗаписатьВФайл(ПутьКФайлу);
ПроцессорXML.ЗаписатьВФайл(ДанныеЗаписиXML, ПутьКФайлу);

// Содержимое файла
//<name>Наименование</name>
Expand Down
25 changes: 0 additions & 25 deletions features/build.feature

This file was deleted.

16 changes: 14 additions & 2 deletions packagedef
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,25 @@
//

Описание.Имя("xml-parser")
.Версия("0.1.1")
.Версия("0.2.0")
.Автор("Khorev Aleksey")
.АдресАвтора("Khorevaa@gmail.com")
.Описание("Библиотека для cериализации данных в xml")
.ВерсияСреды("1.0.20")
.ВерсияСреды("1.9.3")
.ВключитьФайл("src")
.ВключитьФайл("docs")
.ВключитьФайл("README.md")
.ВключитьФайл("LICENSE")
.ВключитьФайл("tests")

.ЗависитОт("logos")

.РазработкаЗависитОт("1bdd")
.РазработкаЗависитОт("1testrunner")
.РазработкаЗависитОт("asserts")
.РазработкаЗависитОт("json")
.РазработкаЗависитОт("coverage")
.РазработкаЗависитОт("fs")

.ОпределяетКласс("СериализацияДанныхXML", "src/Классы/СериализацияДанныхXML.os")
;
6 changes: 3 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# must be unique in a given SonarQube instance
sonar.projectKey=opensource-oscript-xml-parser
sonar.organization=sonar-opensource-add
sonar.projectKey=xml-parser

# this is the name displayed in the SonarQube UI
sonar.projectName=XML parser tool for OScript
Expand All @@ -15,4 +14,5 @@ sonar.sources=./src
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

sonar.coverageReportPaths=coverage/genericCoverage.xml
sonar.coverageReportPaths=out/genericCoverage.xml
#sonar.testExecutionReportPaths=out/genericExecution.xml
22 changes: 0 additions & 22 deletions sonar-qube.sh

This file was deleted.

5 changes: 0 additions & 5 deletions sonarlint.json

This file was deleted.

Loading
Loading