You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addressing issue #363
- Added details about the `generated.yaml` file in `Development.md`, specifying that it is built via the DevSecOps-MaturityModel-data repository.
- Moved the procedure for generating `generated.yaml` to the root `README.md`, ensuring clear setup instructions.
- Included npm/yarn commands for building the file.
- Suggested potential reorganization of `README.md` or the creation of an `INSTALL.md` for better documentation clarity.
This update enhances onboarding clarity and ensures contributors can generate necessary YAML files seamlessly.
- Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
47
47
48
-
###Code scaffolding :-
48
+
## Code Scaffolding
49
49
50
50
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
51
51
52
-
###Build :-
52
+
## Build
53
53
54
54
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
55
55
56
-
###Running unit tests :-
56
+
## Running Unit Tests
57
57
58
58
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
59
59
60
-
###Coding Style Conventions :-
60
+
## Coding Style Conventions
61
61
62
62
- We follow the coding style defined by [ESLint](https://eslint.org/).
63
63
- We also use [Prettier](https://prettier.io/docs/en/index.html) as our opinionated code formatter.
64
-
- To validate the schemas of the DSOMM yaml files in the IDE, it is recommended to use the VS Code extension [redhat.vscode-yaml](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml). The schemas are stored in /src/assets/YAML/schemas
64
+
- To validate the schemas of the DSOMM yaml files in the IDE, it is recommended to use the VS Code extension [redhat.vscode-yaml](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml). The schemas are stored in `/src/assets/YAML/schemas`
65
+
66
+
### Running Linter
67
+
68
+
Run `ng lint` to run the linter from the command line.
69
+
If you want to lint only a specific component, use:
70
+
71
+
```bash
72
+
ng lint --lint-file-patterns .\src\app\component\xxxxxx\
Copy file name to clipboardExpand all lines: src/assets/YAML/generated/README.md
+1-16Lines changed: 1 addition & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,4 @@ It stores configuration settings and other automatically generated data used by
8
8
- It is a machine-generated file that is **not meant to be manually edited**.
9
9
- It helps in **storing configuration settings**, which are loaded at runtime.
10
10
- Used by the application to dynamically configure settings.
11
-
12
-
## **How is it Generated?**
13
-
14
-
The `generated.yaml` file is created as part of the DevSecOps Maturity Model’s **build process**. If you don’t see this file after setup, make sure to run:
15
-
16
-
```sh
17
-
npm run build
18
-
```
19
-
20
-
or
21
-
22
-
```sh
23
-
yarn build
24
-
```
25
-
26
-
This will generate the required **YAML** file.
11
+
- This file is generated via the [DevSecOps-MaturityModel-data](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data) repository.
0 commit comments