Skip to content

Commit

Permalink
Add Steepfile as Ruby filename (#5663)
Browse files Browse the repository at this point in the history
* Add Steepfile to list of Ruby filenames

* Add sample Steepfile

Co-authored-by: Colin Seymour <[email protected]>
  • Loading branch information
mattt and lildude authored Feb 16, 2022
1 parent 4c3fb29 commit 61c0835
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5435,6 +5435,7 @@ Ruby:
- Puppetfile
- Rakefile
- Snapfile
- Steepfile
- Thorfile
- Vagrantfile
- buildfile
Expand Down
27 changes: 27 additions & 0 deletions samples/Ruby/filenames/Steepfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
D = Steep::Diagnostic

target :lib do
signature 'sig'

check 'lib' # Directory name
check 'Gemfile' # File name
check 'app/models/**/*.rb' # Glob
ignore 'lib/templates/*.rb'

library 'pathname', 'set' # Standard libraries
library 'strong_json' # Gems

configure_code_diagnostics(D::Ruby.strict) # `strict` diagnostics setting
configure_code_diagnostics(D::Ruby.lenient) # `lenient` diagnostics setting
configure_code_diagnostics do |hash| # You can setup everything yourself
hash[D::Ruby::NoMethod] = :information
end
end

target :test do
signature 'sig', 'sig-private'

check 'test'

library 'pathname', 'set' # Standard libraries
end

0 comments on commit 61c0835

Please sign in to comment.