^^^^^^^^^^^^^^^^^^^^^^^`feature_available?`shouldnotbecalledforfeaturesthatcanbelicensed(`foo`isn't a literal so we cannot say if it'slegitornot),using`licensed_feature_available?(feature)`maybemoreappropriate.
SOURCE
expect_offense(<<~SOURCE)
foo=:feature
feature_available?(foo)
^^^^^^^^^^^^^^^^^^^^^^^`feature_available?`shouldnotbecalledforfeaturesthatcanbelicensed(`foo`isn't a literal so we cannot say if it'slegitornot),using`licensed_feature_available?(feature)`maybemoreappropriate.
SOURCE
end
end
context'two arguments given'do
it'does not flag the use with an OSS project feature'do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`feature_available?`shouldnotbecalledforfeaturesthatcanbelicensed(`foo`isn't a literal so we cannot say if it'slegitornot),using`licensed_feature_available?(feature)`maybemoreappropriate.
SOURCE
expect_offense(<<~SOURCE)
project.feature_available?(foo,current_user)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`feature_available?`shouldnotbecalledforfeaturesthatcanbelicensed(`foo`isn't a literal so we cannot say if it'slegitornot),using`licensed_feature_available?(feature)`maybemoreappropriate.