forked from bia-tech/precommit4onec
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
137 changed files
with
7,888 additions
and
192 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ bdd-log.xml | |
exec.log | ||
.vscode/ | ||
/tests.xml | ||
/oscript_modules | ||
/reports/ | ||
/coverage/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//©///////////////////////////////////////////////////////////////////////////©// | ||
// | ||
// Copyright 2014-2023 BIA-Technologies Limited Liability Company | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
//©///////////////////////////////////////////////////////////////////////////©// |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@Library(['jenkins-lib-core', 'jenkins-lib-oscript']) _ | ||
opmPipeline() |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"sonarqube" : true, | ||
"test" : true, | ||
"coverage" : true, | ||
"build" : true, | ||
"publish" : { | ||
"enable" : true, | ||
"stableBranch" : "release/.*", | ||
"develop" : true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Сценарий `ВставкаКопирайтов` | ||
|
||
Добавляет текст копирайта в файлы модулей при его отсутствии или несоответствии эталону. | ||
|
||
Эталонный текст копирайта должен находиться в файле в каталоге репозитория. Относительный путь и имя файла задаются в настройке "ПутьКФайлуКопирайта" конфигурационного файла `v8config.json`. Значение по-умолчанию: "COPYRIGHT". | ||
Если этот файл неактуален (год в тексте не соответствует текущему), сценарий исправит его. | ||
|
||
Чтобы модуль не обрабатывался, он должен содержать исключаемый тег, определяемый в настройке "ИсключаемыеТеги". По-умолчанию игнорируются модули, содержащие тег "// IMPORT". | ||
|
||
Если в каталоге репозитория имеется файл ParentConfigurations.bin с данными о настройках поддержки, модули, относящиеся к объектам основной поставки, не будут обрабатываться. Это позволит избежать ложного срабатыватывания механизма сравнения конфигураций на дважды измененные объекты. В конфигурационный файл `v8config.json` добавлена настройка "ИгнорироватьМодулиОбъектовПоставки", по-умолчанию установленная в значение `true`. Переключение в значение `false` позволит обрабатывать все файлы. | ||
|
||
Пример заполнения конфигурационного файла: | ||
```JSON | ||
{ | ||
"Precommt4onecСценарии": { | ||
"НастройкиСценариев": { | ||
"ВставкаКопирайтов": { | ||
"ИгнорироватьМодулиОбъектовПоставки": true, | ||
"ПутьКФайлуКопирайта": "COPYRIGHT", | ||
"ИсключаемыеТеги": [ | ||
"// IMPORT" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
``` |
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
Oops, something went wrong.