Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
NatSpec Solidity official documentation style guide best practices💡 Result:
Solidity NatSpec (official docs) — style + best practices
///(single or multi-line) or block/** ... */. [1][2]@notice: end-user facing description (may be shown at signing time). [1]@dev: developer-focused details. [1]///or/** ... */and no tags, the compiler treats it as@notice. [1]public/externalfunctions (you can still commentinternal/private, but they won’t be parsed into NatSpec output). [1]@parammust be followed by the parameter name; for multiple params, use multiple@paramlines. [1]@returnlines (same pattern as@param). [1]@inheritdoc <BaseContract>to copy missing tags from a base function; note inheritance edge cases (e.g., differing param names / multiple bases). [1]@custom:<name>; the<name>must be lowercase letters or hyphens and cannot start with a hyphen. [1]Practical formatting conventions (commonly adopted)
@notice, and add blank lines between@notice,@param, and@returnblocks for readability (example: OP Stack contracts). [3]Sources: Solidity NatSpec Format docs [1], Solidity Style Guide (NatSpec section) [2], OP Stack smart contract style guide (NatSpec conventions) [3].
🏁 Script executed:
Repository: AOSSIE-Org/OpenVerifiableLLM
Length of output: 1215
🏁 Script executed:
Repository: AOSSIE-Org/OpenVerifiableLLM
Length of output: 2297
Global NatSpec discouragement conflicts with Solidity best practices.
NatSpec (Ethereum Natural Language Specification Format) is the standard documentation format for Solidity smart contracts, recommended by the official Solidity Style Guide for all public and external functions. This project already has dedicated Solidity-specific path instructions (lines 223–245). The global instruction at line 161 to discourage NatSpec will cause false-positive review noise on
.solfiles where@notice,@dev,@param, and@returntags are standard practice.Consider either:
♻️ Option 1 — Move NatSpec discouragement out of global instructions
Remove line 161 from the global instructions and add it to a new path instruction for non-Solidity files:
♻️ Option 2 — Add NatSpec exemption to Solidity path block
Add to the Solidity path instructions (around line 225):
- NatSpec comments (`@notice`, `@dev`, `@param`, `@return`) are encouraged for all public and external functions.🤖 Prompt for AI Agents