lint #4
					 2 changed files with 31 additions and 0 deletions
				
			
		
							
								
								
									
										22
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								.drone.yml
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -1,3 +1,23 @@
 | 
			
		|||
---
 | 
			
		||||
kind: pipeline
 | 
			
		||||
name: lint
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
- name: yaml lint
 | 
			
		||||
  image: cytopia/yamllint
 | 
			
		||||
  commands:
 | 
			
		||||
  - yamllint .
 | 
			
		||||
 | 
			
		||||
- name: docker lint
 | 
			
		||||
  image: hadolint/hadolint
 | 
			
		||||
  commands:
 | 
			
		||||
  - hadolint Dockerfile  # ignore pinning version in pip
 | 
			
		||||
 | 
			
		||||
- name: markdown lint
 | 
			
		||||
  image: pipelinecomponents/markdownlint:latest
 | 
			
		||||
  commands:
 | 
			
		||||
  - mdl --style all --warnings .
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
kind: pipeline
 | 
			
		||||
name: build
 | 
			
		||||
| 
						 | 
				
			
			@ -16,6 +36,8 @@ steps:
 | 
			
		|||
    event:
 | 
			
		||||
      exclude:
 | 
			
		||||
      - pull_request
 | 
			
		||||
depends_on:
 | 
			
		||||
- lint
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
deploy_commands_alias:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								.yamllint
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.yamllint
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
---
 | 
			
		||||
extends: default
 | 
			
		||||
 | 
			
		||||
rules:
 | 
			
		||||
  indentation:
 | 
			
		||||
    indent-sequences: consistent
 | 
			
		||||
  line-length:
 | 
			
		||||
    max: 170
 | 
			
		||||
    level: warning
 | 
			
		||||
		Loading…
	
		Reference in a new issue