chore: added Makefile & ci linting
	
		
			
	
		
	
	
		
			
				
	
				ci/woodpecker/push/lint Pipeline was successful
				
					Details
				
			
		
	
				
					
				
			
				
	
				ci/woodpecker/push/lint Pipeline was successful
				
					Details
				
			
		
	
							parent
							
								
									2c70c62581
								
							
						
					
					
						commit
						f92f73b0ff
					
				| 
						 | 
				
			
			@ -1 +1,3 @@
 | 
			
		|||
*.so
 | 
			
		||||
 | 
			
		||||
_docs/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
branches:
 | 
			
		||||
  exclude: [ main ]
 | 
			
		||||
 | 
			
		||||
platform: 'linux/amd64'
 | 
			
		||||
 | 
			
		||||
pipeline:
 | 
			
		||||
  lint:
 | 
			
		||||
    image: 'chewingbever/vlang:latest'
 | 
			
		||||
    pull: true
 | 
			
		||||
    commands:
 | 
			
		||||
      - make lint
 | 
			
		||||
    when:
 | 
			
		||||
      event: [ push ]
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,31 @@
 | 
			
		|||
# =====CONFIG=====
 | 
			
		||||
V_PATH ?= v
 | 
			
		||||
V := $(V_PATH) -showcc
 | 
			
		||||
 | 
			
		||||
all: vdocker
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# =====COMPILATION=====
 | 
			
		||||
.PHONY: vdocker
 | 
			
		||||
vdocker:
 | 
			
		||||
	$(V) -g -shared .
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# =====DOCS=====
 | 
			
		||||
.PHONY: api-docs
 | 
			
		||||
api-docs:
 | 
			
		||||
	rm -rf '_docs'
 | 
			
		||||
	v doc -f html -m -readme .
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# =====OTHER=====
 | 
			
		||||
.PHONY: lint
 | 
			
		||||
lint:
 | 
			
		||||
	$(V) fmt -verify .
 | 
			
		||||
	$(V) vet -W .
 | 
			
		||||
	$(V_PATH) missdoc -p .
 | 
			
		||||
	@ [ $$($(V_PATH) missdoc -p . | wc -l) = 0 ]
 | 
			
		||||
 | 
			
		||||
.PHONY: fmt
 | 
			
		||||
fmt:
 | 
			
		||||
	$(V) fmt -w .
 | 
			
		||||
		Loading…
	
		Reference in New Issue