Module: Gemfilelint
- Defined in:
- lib/gemfilelint.rb,
lib/gemfilelint/version.rb
Defined Under Namespace
Modules: Offenses, Parser
Classes: Linter, SpellChecker
Constant Summary
collapse
- VERSION =
"0.4.1"
Class Method Summary
collapse
Class Method Details
.dependencies ⇒ Object
181
182
183
184
185
186
|
# File 'lib/gemfilelint.rb', line 181
def dependencies
@dependencies ||=
SpellChecker.new(
File.read(File.expand_path("gems.txt", __dir__)).split("\n")
)
end
|
.lint(*paths, ignore: [], logger: nil) ⇒ Object
192
193
194
|
# File 'lib/gemfilelint.rb', line 192
def lint(*paths, ignore: [], logger: nil)
Linter.new(ignore: ignore, logger: logger).lint(*paths)
end
|
.remotes ⇒ Object
188
189
190
|
# File 'lib/gemfilelint.rb', line 188
def remotes
@remotes ||= SpellChecker.new(["https://rubygems.org/"])
end
|