Closed stakach closed 6 months ago
Hi, first of all the overbearing adjective could be used for any perceived noise, and I don't see any specific relation to this particular rule.
Secondly, the convention is to name the helper as spec_helper.cr
, which by default is ignored by SpecFilename
rule.
Thirdly, you can either:
Excluded
settingIgnoredDirs
and IgnoredFilenames
properties:
https://github.com/crystal-ameba/ameba/blob/63be60ce96543e8dd91fcbe100d4a299f8f16870/src/ameba/rule/lint/spec_filename.cr#L15-L16
this seems a little overbearing. having it correctable breaks things too.
prefixing the file with
spec_
solves the issue but that seems redundant given we're in a spec folder. also seems to flag any file in there, even if it doesn'trequire "spec"
or have any specs in itmaybe we could update this rule to only flag files if they contain actual specs? i.e. if it's in the spec folder and has
describe
orit
blocks in the file