Fix the false positive case found in
https://reviews.bitcoinabc.org/D5239?id=16218#inline-32123.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGING623761da2174: [LINTER] Fix the doxygen linter when inline comments are multilined
rABC623761da2174: [LINTER] Fix the doxygen linter when inline comments are multilined
Edit a source file to create a situation similar to
https://reviews.bitcoinabc.org/D5239?id=16218#inline-32123 and run:
arc lint -- <your_file>
Check the linter don't report any autofix.
Edit again to add a new line like:
//!< This should not occur
Check the linter autofixes this comment.
arc lint --everything
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- linter_doxygen_multiline
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 9389 Build 16709: Default Diff Build & Tests Build 16708: arc lint + arc unit
Event Timeline
arcanist/linter/DoxygenLinter.php | ||
---|---|---|
47 | Why the change? It's probably better to use the facilities of the framework you are working in. |
arcanist/linter/DoxygenLinter.php | ||
---|---|---|
47 | They don't do the same, Filesystem::readFile() stores the content into a single string, while file() stores an array of lines. There is no equivalent in the Filesystem library. |
arcanist/linter/DoxygenLinter.php | ||
---|---|---|
47 | Just explode the string. BTW, this introduce an error condition in the case file returns false, which is exactly why you don't want to do this and just use readFile. |
arcanist/linter/DoxygenLinter.php | ||
---|---|---|
47 ↗ | (On Diff #16350) | We are not using PHP_EOL, we are using unix style end of line. |