-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.cline-rules
More file actions
54 lines (40 loc) · 1.98 KB
/
.cline-rules
File metadata and controls
54 lines (40 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Cline Rules for docker-php-alpine Repository
## Repository Overview
docker-php-alpine provides Docker images for PHP applications running on Alpine Linux.
## Code Standards and Practices
### Docker Standards
- Follow Docker best practices for image optimization
- Use appropriate base images and multi-stage builds
- Implement security hardening practices
- Document exposed ports and volumes clearly
### Documentation Standards
- Include clear Docker usage examples and docker-compose files
- Document PHP version compatibility and extensions
- Provide build and deployment instructions
- Use markdown formatting consistently
### Markdown Compliance Requirements
- **ALL markdown files (.md) MUST pass markdownlint validation with zero errors or warnings**
- Run `markdownlint <filename>` on every markdown file before considering it complete
- Follow the project's `.markdownlint.json` configuration strictly
- Address ALL markdownlint issues immediately - no exceptions or workarounds
- Common requirements include:
- Maximum line length of 80 characters (MD013)
- Consistent heading styles and hierarchy
- Proper list formatting and indentation
- Blank lines around headings and code blocks
- Consistent link and reference formatting
- No trailing whitespace
- Files must end with newlines
- Proper table formatting when applicable
- Use `markdownlint --fix <filename>` for auto-fixable issues when available
- Validate markdown files in CI/CD pipelines where applicable
## Development Guidelines
### When Making Changes
- Preserve existing functionality unless explicitly asked to change it
- Update documentation when changing PHP versions or extensions
- **Always run markdownlint and fix all issues in markdown files before considering changes complete**
### Container Standards
- Keep images minimal and secure using Alpine Linux
- Test images across different architectures
- Implement proper user permissions and security contexts
- Provide clear upgrade paths for new PHP versions