Skip to content

Commit 693d7f6

Browse files
committed
go live
1 parent 9b4d180 commit 693d7f6

File tree

5 files changed

+66
-15
lines changed

5 files changed

+66
-15
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: linter checks
2+
on:
3+
push:
4+
5+
jobs:
6+
linter:
7+
name: "Linter Checks"
8+
runs-on: ubuntu-latest
9+
10+
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v3
14+
15+
- name: Check markdown files
16+
uses: avto-dev/markdown-lint@v1
17+
with:
18+
args: '**/*.md'
19+
ignore: ./LICENSE.md

.markdownlint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# markdownlint YAML configuration
2+
---
3+
4+
# Default state for all rules
5+
default: true
6+
7+
# ignored rules
8+
line-length: false
9+
no-inline-html: false
10+
first-line-h1: false
11+
no-emphasis-as-header: false

CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These owners will be the default owners for everything in the repo.
2+
# Unless a later match takes precedence, the listed user will be
3+
# requested for review when someone opens a pull request.
4+
* @sjuergen @BeckerStS @kruegerfelix

LICENSE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ Siemens provides products and solutions with industrial security functions that
1313
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
1414
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
1515

16-
For additional information on industrial security measures that may be implemented, please visit
16+
For additional information on industrial security measures that may be implemented, please visit
1717
<https://www.siemens.com/industrialsecurity>.
1818

1919
**1.3 Compliance with Export Control Regulations**
2020

21-
You shall comply with all applicable sanctions, embargoes and (re-)export control regulations, and, in any event, with those of the European Union and the United States of America (collectively "Export Regulations"). In particular, the information, software and documentation provided by Siemens (collectively "Licensed Material") shall not be used, accessed or transferred, unless permitted by the Export Regulations or respective governmental licenses or approvals, (i) in or to any location prohibited by or subject to comprehensive sanctions (currently Russia, Cuba, Iran, North Korea, Syria, and the Crimea region of Ukraine, Donetsk and Luhansk regions of Ukraine) or license requirements according to the Export Regulations; (ii) by or to any individual or entity designated on a sanctioned party list of the Export Regulations; (iii) for any purpose prohibited by the Export Regulations (e.g. use in connection with armaments, nuclear technology or weapons); or (iv) to upload any content unless it is noncontrolled (e .g. in the EU: AL = N; in the U.S.: ECCN = N or EAR99). If required to enable authorities or Siemens to conduct export control checks, You, upon request by Siemens, shall promptly provide Siemens with all information pertaining to You, the intended use and the location of use of the Licensed Material. Siemens shall not be obligated to fulfill this Agreement if such fulfillment is prevented by any impediments arising out of national or international foreign trade or customs requirements or any embargoes or other sanctions.
21+
You shall comply with all applicable sanctions, embargoes and (re-)export control regulations, and, in any event, with those of the European Union and the United States of America (collectively "Export Regulations"). In particular, the information, software and documentation provided by Siemens (collectively "Licensed Material") shall not be used, accessed or transferred, unless permitted by the Export Regulations or respective governmental licenses or approvals, (i) in or to any location prohibited by or subject to comprehensive sanctions (currently Russia, Cuba, Iran, North Korea, Syria, and the Crimea region of Ukraine, Donetsk and Luhansk regions of Ukraine) or license requirements according to the Export Regulations; (ii) by or to any individual or entity designated on a sanctioned party list of the Export Regulations; (iii) for any purpose prohibited by the Export Regulations (e.g. use in connection with armaments, nuclear technology or weapons); or (iv) to upload any content unless it is noncontrolled (e .g. in the EU: AL = N; in the U.S.: ECCN = N or EAR99). If required to enable authorities or Siemens to conduct export control checks, You, upon request by Siemens, shall promptly provide Siemens with all information pertaining to You, the intended use and the location of use of the Licensed Material. Siemens shall not be obligated to fulfill this Agreement if such fulfillment is prevented by any impediments arising out of national or international foreign trade or customs requirements or any embargoes or other sanctions.
2222

2323
**2. Open Source License for Software provided in source code and the generated source code**
2424

25-
In case the Software contains or generates source code the following open source license (Open license terms) shall apply for such source code:
26-
25+
In case the Software contains or generates source code the following open source license (Open license terms) shall apply for such source code:
26+
2727
MIT License
2828

2929
Copyright 2022 Siemens AG

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# Snippets collection
22

3-
A collection of useful user defined snippets for AX Code.
3+
A collection of useful user defined snippets for AX Code.
4+
45
## Install the snippets collection
56

67
To install the snippets collection to your workspace enter the following command in a terminal:
78

8-
```
9+
```bash
910
apax add @simatic-ax/snippetscollection --dev
1011
```
1112

12-
> to install this package you need to login into the GitHub registry. You'll find more information [here](https://github.com/simatic-ax/.sharedstuff/blob/main/doc/personalaccesstoken.md)
13+
> to install this package you need to login into the GitHub registry. You'll find more information [here](https://github.com/simatic-ax/.sharedstuff/blob/main/doc/personalaccesstoken.md)
1314
1415
## AXUnitSupport
1516

1617
### Create a test fixture with AxUnit.Assert
18+
1719
```json
1820
"prefix": ["AxUnit test-fixture"]
1921
```
@@ -23,49 +25,56 @@ Output example:
2325
![io](doc/img/ax_test-fixture.gif)
2426

2527
### Insert Using AxUnit.Assert
28+
2629
```json
2730
"prefix": ["AxUnit, using ax"]
2831
```
2932

3033
Output:
34+
3135
```iecst
3236
USING AxUnit.Assert;
3337
```
3438

35-
### AxUnit assertions
39+
### AxUnit assertions
40+
3641
```json
3742
"prefix": ["eq, ne, lt, gt"]
3843
```
3944

4045
Output:
46+
4147
```iecst
4248
Equal(expected := 0, actual := 0);
4349
NotEqual(expected := 0, actual := 0);
4450
LessThan(expected := 0, actual := 0);
4551
GreaterThan(expected := 0, actual := 0);
4652
```
4753

48-
49-
5054
## Snippets Namespace Support
5155

5256
### NamespaceSupport
57+
5358
```json
5459
"prefix" : ["namespace, Siemens"]
5560
```
5661

5762
Output:
63+
5864
```iecst
5965
NAMESPACE Simatic.Ax
6066
6167
END_NAMESPACE
6268
```
69+
6370
### Snippets for class support
71+
6472
```json
6573
"prefix" : ["class template, End_Class"]
6674
```
6775

6876
Output:
77+
6978
```iecst
7079
NAMESPACE Simatic.Ax
7180
CLASS Untitled
@@ -90,6 +99,7 @@ END_NAMESPACE
9099
```
91100

92101
Output:
102+
93103
```iecst
94104
METHOD PUBLIC|PRIVATE|PROTECTED MyMethod
95105
;
@@ -103,41 +113,47 @@ END_METHOD
103113
```
104114

105115
### VAR sections within classes
116+
106117
```json
107118
"prefix" : ["varc"]
108119
```
109120

110-
111121
Output:
122+
112123
```iecst
113124
VAR PUBLIC|PRIVATE|PROTECTED
114125
;
115126
END_VAR
116127
```
117128

118-
119129
### VAR sections within methods and functions
130+
120131
```json
121132
"prefix" : ["vari"]
122133
```
134+
123135
Output:
136+
124137
```iecst
125138
VAR_INPUT|VAR_OUTPUT|VAR_IN_OUT|VAR_TEMP|VAR CONSTANT
126139
count: INT;
127140
END_VAR
128141
```
129142

130143
## Enumeration
144+
131145
```json
132146
"prefix" : ["enum"]
133147
```
134148

135-
Output:
149+
Output:
150+
136151
```iec-st
137152
TYPE
138153
Colours : (RED, GREEN, BLUE) := RED;
139154
END_TYPE
140155
```
156+
141157
## IO support
142158

143159
```json
@@ -151,18 +167,19 @@ Output example:
151167
![io](doc/img/io_snippet.gif)
152168

153169
## Iterate ARRAY[*] Snippet
170+
154171
```json
155172
"prefix" : ["Iterate Array*"]
156173
```
174+
157175
Output example:
158176

159177
![io](doc/img//iterate_array_star.gif)
160178

161-
162179
## Contribution
180+
163181
Thanks for your interest in contributing. Anybody is free to report bugs, unclear documentation, and other problems regarding this repository in the Issues section or, even better, is free to propose any changes to this repository using Merge Requests.
164182

165183
## License and Legal information
166184

167185
Please read the [Legal information](LICENSE.md)
168-

0 commit comments

Comments
 (0)