-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.1
-
None
-
2.5.2
-
MOODLE_31_STABLE
This may be related to CONTRIB-6146.
Codechecker seems to be misreporting indenting when scanning plugins. On previous builds of codechecker (2011040400) the utility reported no errors, however the build from (2016031400) is reporting lines that SHOULD NOT be indented as needing to be indented multiple spaces.
It seems to be misreporting lines that immediately follow lines have been split due to their length.
Here are some examples from my plugin:
https://github.com/sbourget/moodle-mod_pcast/blob/master/edit.php#L106
#106: $episode->mediafile·=·$draftitemid;
Line indented incorrectly; expected at least 24 spaces, found 0
https://github.com/sbourget/moodle-mod_pcast/blob/master/edit_form.php#L74
#74: ········//·Media·File.
Line indented incorrectly; expected at least 12 spaces, found 8
Note: Once codechecker misreports one line, it identifies every line in the rest of the file as being incorrectly indented.
- duplicates
-
CONTRIB-6206 More indentation issues...
- Closed
- has been marked as being related by
-
CONTRIB-6146 Verify the WhiteSpace ScopeIndent sniff, coz it has some problems
- Closed