nasl-pedant 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. data/.gitignore +10 -0
  2. data/Gemfile +4 -0
  3. data/Rakefile +8 -0
  4. data/bin/pedant +33 -0
  5. data/lib/pedant/check.rb +135 -0
  6. data/lib/pedant/checks/conditional_or_loop_is_empty.rb +70 -0
  7. data/lib/pedant/checks/contains_ip_address_literals.rb +49 -0
  8. data/lib/pedant/checks/contains_no_carriage_returns.rb +48 -0
  9. data/lib/pedant/checks/contains_no_tabs.rb +48 -0
  10. data/lib/pedant/checks/contains_registration_section.rb +107 -0
  11. data/lib/pedant/checks/contains_unreachable_code.rb +68 -0
  12. data/lib/pedant/checks/ends_with_newline.rb +49 -0
  13. data/lib/pedant/checks/files_parse_without_error.rb +101 -0
  14. data/lib/pedant/checks/parse_test_code.rb +63 -0
  15. data/lib/pedant/checks/plugin_type_not_specified.rb +79 -0
  16. data/lib/pedant/cli.rb +82 -0
  17. data/lib/pedant/command.rb +96 -0
  18. data/lib/pedant/commands/check.rb +76 -0
  19. data/lib/pedant/commands/test.rb +37 -0
  20. data/lib/pedant/knowledge_base.rb +42 -0
  21. data/lib/pedant/test.rb +59 -0
  22. data/lib/pedant/version.rb +3 -0
  23. data/lib/pedant.rb +51 -0
  24. data/pedant.gemspec +25 -0
  25. data/test/test_helper.rb +5 -0
  26. data/test/unit/checks/conditional_or_loop_is_empty.rb +125 -0
  27. data/test/unit/checks/contains_ip_address_literals.rb +45 -0
  28. data/test/unit/checks/contains_no_carriage_returns.rb +43 -0
  29. data/test/unit/checks/contains_no_tabs.rb +45 -0
  30. data/test/unit/checks/contains_registration_section.rb +101 -0
  31. data/test/unit/checks/contains_unreachable_code.rb +93 -0
  32. data/test/unit/checks/ends_with_newline.rb +45 -0
  33. data/test/unit/checks/plugin_type_not_specified.rb +72 -0
  34. metadata +123 -0
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nasl-pedant
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mak Kolybabi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-28 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &17197217240 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *17197217240
25
+ - !ruby/object:Gem::Dependency
26
+ name: minitest
27
+ requirement: &17197216820 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *17197216820
36
+ - !ruby/object:Gem::Dependency
37
+ name: rainbow
38
+ requirement: &17197216400 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *17197216400
47
+ - !ruby/object:Gem::Dependency
48
+ name: nasl
49
+ requirement: &17197215900 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.4
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *17197215900
58
+ description:
59
+ email:
60
+ - mak@kolybabi.com
61
+ executables:
62
+ - pedant
63
+ extensions: []
64
+ extra_rdoc_files: []
65
+ files:
66
+ - .gitignore
67
+ - Gemfile
68
+ - Rakefile
69
+ - bin/pedant
70
+ - lib/pedant.rb
71
+ - lib/pedant/check.rb
72
+ - lib/pedant/checks/conditional_or_loop_is_empty.rb
73
+ - lib/pedant/checks/contains_ip_address_literals.rb
74
+ - lib/pedant/checks/contains_no_carriage_returns.rb
75
+ - lib/pedant/checks/contains_no_tabs.rb
76
+ - lib/pedant/checks/contains_registration_section.rb
77
+ - lib/pedant/checks/contains_unreachable_code.rb
78
+ - lib/pedant/checks/ends_with_newline.rb
79
+ - lib/pedant/checks/files_parse_without_error.rb
80
+ - lib/pedant/checks/parse_test_code.rb
81
+ - lib/pedant/checks/plugin_type_not_specified.rb
82
+ - lib/pedant/cli.rb
83
+ - lib/pedant/command.rb
84
+ - lib/pedant/commands/check.rb
85
+ - lib/pedant/commands/test.rb
86
+ - lib/pedant/knowledge_base.rb
87
+ - lib/pedant/test.rb
88
+ - lib/pedant/version.rb
89
+ - pedant.gemspec
90
+ - test/test_helper.rb
91
+ - test/unit/checks/conditional_or_loop_is_empty.rb
92
+ - test/unit/checks/contains_ip_address_literals.rb
93
+ - test/unit/checks/contains_no_carriage_returns.rb
94
+ - test/unit/checks/contains_no_tabs.rb
95
+ - test/unit/checks/contains_registration_section.rb
96
+ - test/unit/checks/contains_unreachable_code.rb
97
+ - test/unit/checks/ends_with_newline.rb
98
+ - test/unit/checks/plugin_type_not_specified.rb
99
+ homepage: http://github.com/mogigoma/pedant
100
+ licenses: []
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ requirements: []
118
+ rubyforge_project: nasl-pedant
119
+ rubygems_version: 1.8.10
120
+ signing_key:
121
+ specification_version: 3
122
+ summary: A static analysis framework for the Nessus Attack Scripting Language.
123
+ test_files: []