Skip to content

Commit

Permalink
PrettierLintBear.py: Add CAN_FIX metadata
Browse files Browse the repository at this point in the history
Since this bear's process_output() method uses
process_output_corrected(), it needs CAN_FIX metadata.

Closes coala#2421
  • Loading branch information
rohanrk authored and gitmate-bot committed Apr 21, 2018
1 parent 20cdaf4 commit 2508d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bears/js/PrettierLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class PrettierLintBear:
CAN_DETECT = {'Consistency', 'Correctness', 'Whitespace',
'Parentheses', 'Strings', 'Empty lines',
'Multi-line objects'}
CAN_FIX = {'Formatting'}
SEE_MORE = 'https://prettier.io/'

regex = re.compile(r'L(?P<line>\d+)C(?P<column>\d+): (?P<message>.*)')
Expand Down

0 comments on commit 2508d61

Please sign in to comment.