Skip to content

Commit

Permalink
BSL LS 0.13.0, EDT 1.16, Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
DoublesunRUS committed Jan 27, 2020
1 parent 291a332 commit ff0204f
Show file tree
Hide file tree
Showing 17 changed files with 197 additions and 90 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: java

jdk:
- openjdk8
- openjdk11

addons:
sonarcloud:
Expand All @@ -12,7 +12,7 @@ git:
depth: false

env:
- PLUGIN_VERSION="0.12.1"
- PLUGIN_VERSION="0.13.0"

script:
- mvn clean test verify sonar:sonar -f build/pom.xml -s build/settings.xml -Dsonar.projectKey=$SONAR_PROJECT_KEY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@
<horizontalAlign>Left</horizontalAlign>
<autoFill>true</autoFill>
</autoCommandBar>
<handlers>
<event>OnCreateAtServer</event>
<name>ПриСозданииНаСервере</name>
</handlers>
<windowOpeningMode>LockOwnerWindow</windowOpeningMode>
<autoTitle>true</autoTitle>
<autoUrl>true</autoUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@

КонецПроцедуры

#КонецОбласти
#КонецОбласти

#Область ОбработчикиСобытийФормы

Процедура ПриСозданииНаСервере()

ДанныеФормыВЗначение(ЭтотОбъект, Тип("СправочникОбъект.МойСправочник"));

КонецПроцедуры

#КонецОбласти
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

КонецПроцедуры

Процедура CognitiveComplexity(А, В) Экспорт
Процедура CognitiveCyclomaticComplexity(А, В) Экспорт

// Цикл "Для каждого"
Для Каждого Б Из А Цикл // +1
Expand Down Expand Up @@ -149,6 +149,19 @@

КонецПроцедуры

&НаСервере
Процедура CreateQueryOnCycle() Экспорт

Запрос = Новый Запрос;

Пока Истина Цикл

Запрос.Выполнить();

КонецЦикла;

КонецПроцедуры

Процедура DeletingCollectionItem() Экспорт

А = Новый Массив;
Expand Down Expand Up @@ -184,6 +197,13 @@

КонецПроцедуры

&НаКлиенте
Процедура GetFormMethod() Экспорт

ПолучитьФорму("");

КонецПроцедуры

Процедура IdenticalExpressions(А, Б) Экспорт

Если= 1) Или= 1) Тогда
Expand Down Expand Up @@ -547,6 +567,13 @@

КонецПроцедуры

&НаКлиенте
Процедура OSUsersMethod(А) Экспорт

А = ПользователиОС();

КонецПроцедуры

&НаСервере
Процедура PairingBrokenTransaction1(А) Экспорт

Expand Down Expand Up @@ -618,6 +645,29 @@

КонецПроцедуры

Функция TooManyReturns(А, Б) Экспорт

Если А = 1 Тогда
Б = 1;
Возврат Б;

ИначеЕсли А = 0 Тогда
Б = 2;
Возврат Б;

ИначеЕсли А <> 0 Тогда
Б = 3;
Возврат Б;

Иначе
Б = 0;

КонецЕсли;

Возврат Б;

КонецФункции

Процедура TryNumber(А) Экспорт

Попытка
Expand All @@ -644,6 +694,12 @@

КонецПроцедуры

Процедура UnusedParameters(А, Б) Экспорт

А = 1;

КонецПроцедуры

Процедура UsingCancelParameter(Отказ) Экспорт

Отказ = Ложь;
Expand Down Expand Up @@ -733,3 +789,17 @@
КонецПроцедуры

#КонецОбласти

Процедура CodeOutOfRegion(А) Экспорт

А = 1;

КонецПроцедуры

#Область DuplicateEmptyRegion

#КонецОбласти

#Область DuplicateEmptyRegion

#КонецОбласти
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# dt.bslls.validator [![Build Status](https://travis-ci.org/DoublesunRUS/ru.capralow.dt.bslls.validator.svg)](https://travis-ci.org/DoublesunRUS/ru.capralow.dt.bslls.validator) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=DoublesunRUS_ru.capralow.dt.bslls.validator&metric=alert_status)](https://sonarcloud.io/dashboard?id=DoublesunRUS_ru.capralow.dt.bslls.validator) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=DoublesunRUS_ru.capralow.dt.bslls.validator&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=DoublesunRUS_ru.capralow.dt.bslls.validator) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=DoublesunRUS_ru.capralow.dt.bslls.validator&metric=coverage)](https://sonarcloud.io/dashboard?id=DoublesunRUS_ru.capralow.dt.bslls.validator)


## BSL проверки для [1C:Enterprise Development Tools](http://v8.1c.ru/overview/IDE/) 1.14
## BSL проверки для [1C:Enterprise Development Tools](http://v8.1c.ru/overview/IDE/) 1.16

Минимальная версия EDT: 1.14.0
Минимальная версия EDT: 1.16.0

Текущий релиз в ветке [master: 0.12.1](https://github.com/DoublesunRUS/ru.capralow.dt.bslls.validator/tree/master).<br>
Текущий релиз в ветке [master: 0.13.0](https://github.com/DoublesunRUS/ru.capralow.dt.bslls.validator/tree/master).<br>
Разработка ведется в ветке [dev](https://github.com/DoublesunRUS/ru.capralow.dt.bslls.validator/tree/dev).<br>

В данном репозитории хранятся только исходники.<br>
Expand All @@ -15,7 +15,7 @@

### BSL Language Server
Плагин использует [BSL Language Server](https://github.com/1c-syntax/bsl-language-server) в соответствии с [лицензией](https://github.com/1c-syntax/bsl-language-server/blob/develop/COPYING.md).<br>
В состав плагина включена версия 0.12.3<br>
В состав плагина включена версия 0.13.0<br>
Список диагностик можно посмотреть на [официальном сайте](https://1c-syntax.github.io/bsl-language-server/diagnostics) сервера.

### Возможности
Expand Down
4 changes: 2 additions & 2 deletions build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ru.capralow.dt.bslls.validator</groupId>
<artifactId>build</artifactId>
<version>0.12.1-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>BSL проверки для EDT</name>
Expand Down Expand Up @@ -56,7 +56,7 @@
<artifact>
<groupId>ru.capralow.dt.bslls.validator.target</groupId>
<artifactId>default</artifactId>
<version>0.12.1-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
</artifact>
</target>
<environments>
Expand Down
2 changes: 1 addition & 1 deletion repository/category.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/ru.capralow.dt.bslls.validator_0.12.1.qualifier.jar" id="ru.capralow.dt.bslls.validator" version="0.12.1.qualifier">
<feature url="features/ru.capralow.dt.bslls.validator_0.13.0.qualifier.jar" id="ru.capralow.dt.bslls.validator" version="0.13.0.qualifier">
<category name="ru.capralow.dt.plugin.category.public"/>
</feature>
<category-def name="ru.capralow.dt.plugin.category.public" label="Плагины для EDT"/>
Expand Down
2 changes: 1 addition & 1 deletion repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>ru.capralow.dt.bslls.validator</groupId>
<artifactId>build</artifactId>
<version>0.12.1-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../build/pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions ru.capralow.dt.bslls.validator.plugin.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feature
id="ru.capralow.dt.bslls.validator"
label="%featureName"
version="0.12.1.qualifier"
version="0.13.0.qualifier"
provider-name="%providerName">

<description>
Expand Down Expand Up @@ -46,7 +46,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</license>

<requires>
<import plugin="com._1c.g5.v8.dt.product.application" version="1.14.0" match="greaterOrEqual"/>
<import plugin="com._1c.g5.v8.dt.product.application" version="1.16.0" match="greaterOrEqual"/>
</requires>

<plugin
Expand Down
2 changes: 1 addition & 1 deletion ru.capralow.dt.bslls.validator.plugin.feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>ru.capralow.dt.bslls.validator</groupId>
<artifactId>build</artifactId>
<version>0.12.1-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../build/pom.xml</relativePath>
</parent>
<artifactId>ru.capralow.dt.bslls.validator</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions ru.capralow.dt.bslls.validator.plugin.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: ru.capralow.dt.bslls.validator.plugin.ui;singleton:=true
Bundle-Version: 0.12.1.qualifier
Bundle-Version: 0.13.0.qualifier
Bundle-Activator: ru.capralow.dt.bslls.validator.plugin.internal.ui.BslValidatorPlugin
Bundle-Vendor: %providerName
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.xtext.ui
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-RequiredExecutionEnvironment: JavaSE-11
Automatic-Module-Name: dt.validator.bsl-language-server.plugin
Bundle-ActivationPolicy: lazy
Import-Package: com._1c.g5.v8.dt.bsl.model,
Expand Down
Binary file not shown.
3 changes: 2 additions & 1 deletion ru.capralow.dt.bslls.validator.plugin.ui/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ bin.includes = META-INF/,\
.,\
plugin.xml,\
bsl-language-server.jar,\
plugin.properties
plugin.properties,\
plugin_ru.properties
jars.compile.order = bsl-language-server.jar,\
.
2 changes: 1 addition & 1 deletion ru.capralow.dt.bslls.validator.plugin.ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>ru.capralow.dt.bslls.validator</groupId>
<artifactId>build</artifactId>
<version>0.12.1-SNAPSHOT</version>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../build/pom.xml</relativePath>
</parent>
<packaging>eclipse-plugin</packaging>
Expand Down
Loading

0 comments on commit ff0204f

Please sign in to comment.