Merge conflict marker
Merge conflict marker. A merge conflict marker (<<<<<<<). The merge was never resolved.
This is how the comment reads inline, under the flagged line.
Why it matters
Conflict markers break the build in code and silently corrupt config, docs and data files.
What to do
Resolve the conflict and keep one side, or both on purpose.
Examples
<<<<<<< HEAD const a = 1; ======= const a = 2; >>>>>>> branch
const a = 2;
What it catches
It reads a pattern on each line, aware of strings and comments. Languages: Any file. Scope: All files. These cases are the rule's own tests: the first set must be flagged and the second must not.
Flagged
<<<<<<< HEAD const a = 1;
Left alone
const a = '=======';
Research
Merge conflict markers. They break the build in code and silently corrupt config and data files.
- no outside source yet
Turn it off or change it
In a config file for the CLI, or in the API's rules field:
{
"rules": {
"disable": [
"merge-conflict"
],
"severity": {
"merge-conflict": "low"
}
}
}