mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Enable H014 and H023 djlint rules (#25786)
Enable these rules: - H014 | More than 2 blank lines. - H023 | Do not use entity references. There are more potential rules to enable but they are blocked by bugs in the linter: - https://github.com/Riverside-Healthcare/djLint/issues/711 - https://github.com/Riverside-Healthcare/djLint/issues/712
This commit is contained in:
		@@ -101,7 +101,7 @@
 | 
			
		||||
										{{template "repo/diff/stats" dict "file" . "root" $}}
 | 
			
		||||
									{{end}}
 | 
			
		||||
								</div>
 | 
			
		||||
								<span class="file gt-mono"><a class="muted file-link" title="{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}" href="#diff-{{$file.NameHash}}">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}</a>{{if .IsLFSFile}} ({{$.locale.Tr "repo.stored_lfs"}}){{end}}</span>
 | 
			
		||||
								<span class="file gt-mono"><a class="muted file-link" title="{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}" href="#diff-{{$file.NameHash}}">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}</a>{{if .IsLFSFile}} ({{$.locale.Tr "repo.stored_lfs"}}){{end}}</span>
 | 
			
		||||
								<button class="btn interact-fg gt-p-3" data-clipboard-text="{{$file.Name}}">{{svg "octicon-copy" 14}}</button>
 | 
			
		||||
								{{if $file.IsGenerated}}
 | 
			
		||||
									<span class="ui label">{{$.locale.Tr "repo.diff.generated"}}</span>
 | 
			
		||||
@@ -110,7 +110,7 @@
 | 
			
		||||
									<span class="ui label">{{$.locale.Tr "repo.diff.vendored"}}</span>
 | 
			
		||||
								{{end}}
 | 
			
		||||
								{{if and $file.Mode $file.OldMode}}
 | 
			
		||||
									<span class="gt-ml-4 gt-mono">{{$file.OldMode}} → {{$file.Mode}}</span>
 | 
			
		||||
									<span class="gt-ml-4 gt-mono">{{$file.OldMode}} → {{$file.Mode}}</span>
 | 
			
		||||
								{{else if $file.Mode}}
 | 
			
		||||
									<span class="gt-ml-4 gt-mono">{{$file.Mode}}</span>
 | 
			
		||||
								{{end}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user