Class: Npm2Rpm::Rpmlintrc

Inherits:
Object
  • Object
show all
Defined in:
lib/npm2rpm/rpmlintrc.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, metadata, options) ⇒ Rpmlintrc

Returns a new instance of Rpmlintrc.



4
5
6
7
8
# File 'lib/npm2rpm/rpmlintrc.rb', line 4

def initialize name, , options
  @name = name
   = 
  @options = options
end

Instance Method Details

#writeObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/npm2rpm/rpmlintrc.rb', line 10

def write
  File.open("#{@name}-rpmlintrc", "w+") do |f|
    f.puts "addFilter(\"devel-file-in-non-devel-package .*\")"
    f.puts "addFilter(\"file-contains-buildroot .*\")"
    f.puts "addFilter(\"file-contains-date-and-time .*\")"
    f.puts "addFilter(\"hidden-file-or-dir .*\")"
    f.puts "addFilter(\"incorrect-fsf-address .*\")"
    f.puts "addFilter(\"non-executable-script .*\")"
    f.puts "addFilter(\"backup-file-in-package .*\")"        
    f.puts "addFilter(\"suse-filelist-forbidden-backup-file .*\")"        
    f.puts "addFilter(\"suse-filelist-forbidden .*\")"        
    f.puts "addFilter(\"summary-ended-with-dot .*\")"
#        f.puts "addFilter(\" .*\")"
  end
end