coala / coala/coala

Create a line length test helper

Open
#5,877 8 comments 0 reactions 1 assignee Claimed by @bkhanale View on GitHub
area/tests difficulty/low importance/low
Dominant language
Python
Stars
3.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

A line length test helper will take a chunk of source , and a regex, and verify the bear accepts source under the line length and rejects lines over the line length.

The max_line_length setting can be automatically determined by the lines in the source provided by the caller. The bear should pass this test.

The regex is then used to increase the size of the source line lengths by 1 character, in accordance with the source language rules.

The helper confirms that the source was increased by 1 character only, and re-runs the bear, and expects it to fail.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.