mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	enforce nolint scope (#34851)
enable nolintlint scope requirement add comments to new directives so it's more obvious why they are in place --- I can also toggle the mandatory comments on if that's something of interest. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -197,7 +197,7 @@ func (b *footnoteBlockParser) Open(parent ast.Node, reader text.Reader, pc parse | ||||
| 		return nil, parser.NoChildren | ||||
| 	} | ||||
| 	open := pos + 1 | ||||
| 	closure := util.FindClosure(line[pos+1:], '[', ']', false, false) //nolint | ||||
| 	closure := util.FindClosure(line[pos+1:], '[', ']', false, false) //nolint:staticcheck // deprecated function | ||||
| 	closes := pos + 1 + closure | ||||
| 	next := closes + 1 | ||||
| 	if closure > -1 { | ||||
| @@ -287,7 +287,7 @@ func (s *footnoteParser) Parse(parent ast.Node, block text.Reader, pc parser.Con | ||||
| 		return nil | ||||
| 	} | ||||
| 	open := pos | ||||
| 	closure := util.FindClosure(line[pos:], '[', ']', false, false) //nolint | ||||
| 	closure := util.FindClosure(line[pos:], '[', ']', false, false) //nolint:staticcheck // deprecated function | ||||
| 	if closure < 0 { | ||||
| 		return nil | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 TheFox0x7
					TheFox0x7