Skip to content

Commit 51f7422

Browse files
author
Serap Aydin
committed
latest Documentation update
1 parent e4a241f commit 51f7422

File tree

6 files changed

+198
-49
lines changed

6 files changed

+198
-49
lines changed

docs/src/.vuepress/theme.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,11 @@ export default hopeTheme({
305305
{
306306
text: "Process Plugin Dev Tools",
307307
icon: "info",
308+
prefix: "linter-tool/",
308309
children: [
309-
{
310-
text:"DSF Linter Tool",
311-
icon: "operate",
312-
prefix: "linter-tool/",
313-
children: [
314-
"linter-tool", "validation","phases", "development", "troubleshooting"],
310+
"linter-tool",
311+
"validation","phases", "development", "troubleshooting"],
315312
}
316-
]
317-
},
318313
],
319314
"/dsf-development": [
320315
{

docs/src/process-development/linter-tool/development.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Development
3+
icon: code
34
---
5+
## Development
46

57
### Requirements
68

@@ -131,4 +133,14 @@ Log levels:
131133
3. **Class Loading Issues**:
132134
- Check classloader setup
133135
- Verify dependencies
134-
- Check API version compatibility
136+
- Check API version compatibility
137+
138+
### Code Style Guidelines
139+
140+
- Follow Java naming conventions
141+
- Use meaningful variable and method names
142+
- Add JavaDoc comments for public APIs
143+
- Keep methods focused and small
144+
- Use immutable objects where possible
145+
- Handle exceptions appropriately
146+
- Write unit tests for new features

docs/src/process-development/linter-tool/linter-tool.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: Linter Tool
2+
title: DSF Linter Tool
3+
icon: customize
34
---
5+
# DSF Linter - Complete Documentation
46

57
A comprehensive linting tool for DSF (Data Sharing Framework) process plugins. Validates BPMN processes, FHIR resources, and plugin configurations from JAR files.
68

@@ -11,15 +13,15 @@ A comprehensive linting tool for DSF (Data Sharing Framework) process plugins. V
1113
3. [Installation](#installation)
1214
4. [Usage](#usage)
1315
5. [CLI Options](#cli-options)
14-
7. [Report Generation](#report-generation)
15-
8. [Architecture](#architecture)
16-
11. [API Reference](#api-reference)
16+
6. [Report Generation](#report-generation)
17+
7. [Architecture](#architecture)
18+
8. [API Reference](#api-reference)
1719

1820
## Overview
1921

2022
The DSF Linter is a static analysis tool designed to validate DSF process plugins before deployment. It performs comprehensive checks on:
2123

22-
- **BPMN Process Definitions**: Validates Camunda/Operaton BPMN 2.0 models, task implementations, event configurations, and FHIR resource references
24+
- **BPMN Process Definitions**: Validates Camunda BPMN 2.0 models, task implementations, event configurations, and FHIR resource references
2325
- **FHIR Resources**: Validates ActivityDefinition, Task, StructureDefinition, ValueSet, CodeSystem, and Questionnaire resources
2426
- **Plugin Configuration**: Verifies ServiceLoader registrations, resource references, and plugin structure
2527

@@ -35,6 +37,14 @@ The DSF Linter is a static analysis tool designed to validate DSF process plugin
3537
- ✅ Comprehensive error reporting with severity levels
3638
- ✅ Extensible architecture for custom validation rules
3739

40+
### What is DSF?
41+
42+
The Data Sharing Framework (DSF) is a framework for implementing interoperable healthcare data sharing processes. DSF process plugins contain:
43+
44+
- **BPMN Processes**: Business process definitions using Camunda BPMN 2.0
45+
- **FHIR Resources**: Healthcare data resources conforming to HL7 FHIR specifications
46+
- **Plugin Classes**: Java classes implementing the DSF ProcessPlugin interface
47+
3848
## Quick Start
3949

4050
### Build the Project
@@ -159,9 +169,9 @@ java -jar linter-cli/target/linter-cli-1.0-SNAPSHOT.jar \
159169
java -jar linter-cli/target/linter-cli-1.0-SNAPSHOT.jar \
160170
--path plugin.jar --html --json --report-path ./reports
161171

162-
# Verbose output with colored console
172+
# Verbose output (colors enabled by default, use --no-color to disable)
163173
java -jar linter-cli/target/linter-cli-1.0-SNAPSHOT.jar \
164-
--path plugin.jar --html --verbose --color
174+
--path plugin.jar --html --verbose
165175

166176
# Lint Maven project (two-step process)
167177
# Step 1: Build the project
@@ -196,9 +206,9 @@ java -jar linter-cli/target/linter-cli-1.0-SNAPSHOT.jar \
196206
| `--path <input>` | `-p` | Path to JAR file (local or remote URL) | Yes |
197207
| `--html` | | Generate HTML report | No |
198208
| `--json` | | Generate JSON report | No |
199-
| `--report-path <dir>` | `-r` | Custom report directory (default: temp directory) | No |
209+
| `--report-path <dir>` | `-r` | Custom report directory (default: `<temp-dir>/dsf-linter-report-<name>/dsf-linter-report`) | No |
200210
| `--verbose` | `-v` | Enable verbose logging output | No |
201-
| `--color` | | Enable colored console output | No |
211+
| `--no-color` | | Disable colored console output (default: enabled) | No |
202212
| `--no-fail` | | Exit with code 0 even if linter errors are found | No |
203213
| `--help` | `-h` | Display help message | No |
204214
| `--version` | | Display version information | No |
@@ -302,7 +312,7 @@ The JSON report provides machine-readable output for CI/CD integration and autom
302312

303313
```json
304314
{
305-
"version": "1.0.0",
315+
"version": "2.0.0",
306316
"timestamp": "2024-01-15T10:30:00Z",
307317
"projectPath": "/path/to/plugin.jar",
308318
"executionTimeMs": 2300,
@@ -366,7 +376,7 @@ Each lint item in the JSON report has the following structure:
366376
### Example Console Output
367377

368378
```
369-
DSF Linter v1.0.0
379+
DSF Linter v2.0.0
370380
=================================================================
371381
Project: /path/to/plugin.jar
372382
Report: /tmp/dsf-linter-report-plugin/dsf-linter-report
@@ -691,13 +701,3 @@ Discovers plugins and resources.
691701
```java
692702
DiscoveryResult discover(ProjectContext context)
693703
```
694-
695-
## Changelog
696-
697-
### Version 1.0.0
698-
- Initial release
699-
- BPMN validation
700-
- FHIR validation
701-
- Plugin configuration validation
702-
- HTML report generation
703-

docs/src/process-development/linter-tool/phases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Linting Phases
3+
icon: config
34
---
4-
55
The linter executes in five phases:
66

77
#### Phase 1: Project Setup

docs/src/process-development/linter-tool/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Troubleshooting
3+
icon: config
34
---
4-
55
### "Input must be a JAR file" Error
66

77
**Problem**: The linter only accepts JAR files as input.
@@ -135,4 +135,4 @@ java -Xmx4g -Xms1g -jar linter-cli/target/linter-cli-1.0-SNAPSHOT.jar \
135135
- Check classpath configuration
136136
- Ensure dependencies are included
137137
- Use verbose mode to see classloader logs
138-
- Check API version compatibility
138+
- Check API version compatibility

0 commit comments

Comments
 (0)