fastlane-plugin-code_static_analyzer 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b73eee9d360a439b4a2555847a2a2f1bfa5f984
4
- data.tar.gz: 3f13fb0a9515475b99d32e71430c36dabc894bf6
3
+ metadata.gz: b6173fdc7aa3d9e591d809539244e4d00a594200
4
+ data.tar.gz: eaf1a87487c028b421a9dff85e5b4c29b39b030c
5
5
  SHA512:
6
- metadata.gz: 871f48c12638794d04e54d73730b0e336946febc32517a8f3d2d5691ddb71a3fd988852d5e91e4389633df84fc6e3edb1f8ee655cc62d633d7cb43bf279e7ab3
7
- data.tar.gz: bab7642ad058326dfec2401c716ac8f3c4ca62554dab39a726e00b05915c78f7af656e4032731f0417f3903adf9d0a1a5a2971679aec53ef6e64ba73aa74dcb3
6
+ metadata.gz: 133db1965373aee4ff71f786d543e466c7025735c9835139d79b212af2aa571265d8dbcec8bd742fc00a92dbaa2cb7f5cc8c7a29ec6d36d801794c5e38167476
7
+ data.tar.gz: 9bafa2f5dd3663cb8e72ee36a44821ee1facf762aeec9ebb89fa03b197d7f149cfd13cc3d17652c8c90c808886def3a4c40d2cace89c37837fa44b317ce4a9fa
data/README.md CHANGED
@@ -25,7 +25,7 @@ This plugin can be used in pair with CI static code analysis plugins. Check out
25
25
  - Clang-format tool have to be installed on your machine to use clang analyzer
26
26
 
27
27
  ### Specific for copy paste analyzer (CPD)
28
- - PMD have to be installed on your machine (http://pmd.sourceforge.net/snapshot/usage/installing.html)
28
+ - PMD (5.8.1) have to be installed on your machine (http://pmd.sourceforge.net/snapshot/usage/installing.html)
29
29
  - [!]Pay attention on language parameter: if your code language is available in supported list you have to set this parameter.
30
30
 
31
31
  ## Actions
@@ -73,7 +73,7 @@ Parameter | Description
73
73
  `analyzers` | List of analysers you want to run. Supported analyzers: "xcodeWar", "rubocop", "CPD", "all"
74
74
  `result_dir` | *(optional)* Directory's name for storing analysis results.
75
75
  `cpd_tokens` | *(optional)* The min number of words in code that is detected as copy paste.<br />Default value: 100
76
- `cpd_language` | *(optional)* Language used in files that will be inspected on copy paste.<br />Supported analyzers: ['python', 'objectivec', 'jsp', 'ecmascript', 'fortran', 'cpp', 'ruby', 'php', 'java', 'matlab', 'scala', 'plsql', 'go', 'cs']. If you need any other language just don't set this parameter.
76
+ `cpd_language` | *(optional)* Language used in files that will be inspected on copy paste.<br />Supported analyzers: ['apex', 'cpp', 'cs', 'ecmascript', 'fortran', 'go', 'groovy', 'java', 'jsp', 'matlab', 'objectivec', 'perl', 'php', 'plsql', 'python', 'ruby', 'scala', 'swift', 'vf']. If you need any other language just don't set this parameter.
77
77
  `cpd_files_to_inspect` | *(optional)* List of paths (relative to work directory) to files/directories to be inspected on copy paste.
78
78
  `cpd_files_to_exclude` | *(optional)* List of paths (relative to work directory) to files/directories not to be inspected on copy paste
79
79
  `xcode_project_name` | *(required if use warning analyzer)* Xcode project name in work directory
@@ -309,7 +309,7 @@ module Fastlane
309
309
  optional: true,
310
310
  type: String,
311
311
  verify_block: proc do |value|
312
- UI.user_error!("Language '#{value}' is not supported.\nSupported languages: #{Actions::CpdAnalyzerAction::SUPPORTED_LAN} or empty if you need any other language") unless Actions::CpdAnalyzerAction::SUPPORTED_LAN.map(&:downcase).include? value.downcase or value.empty? or !value
312
+ UI.user_error!("Language '#{value}' is not supported.\nSupported languages: #{Actions::CpdAnalyzerAction::SUPPORTED_LAN}") unless Actions::CpdAnalyzerAction::SUPPORTED_LAN.map(&:downcase).include? value.downcase or value.empty? or !value
313
313
  end),
314
314
  # parameters for Ruby analyzer
315
315
  FastlaneCore::ConfigItem.new(key: :ruby_files,
@@ -5,7 +5,7 @@ module Fastlane
5
5
  end
6
6
 
7
7
  class CpdAnalyzerAction < Action
8
- SUPPORTED_LAN = ['python', 'objectivec', 'jsp', 'ecmascript', 'fortran', 'cpp', 'ruby', 'php', 'java', 'matlab', 'scala', 'plsql', 'go', 'cs']
8
+ SUPPORTED_LAN = ['apex', 'cpp', 'cs', 'ecmascript', 'fortran', 'go', 'groovy', 'java', 'jsp', 'matlab', 'objectivec', 'perl', 'php', 'plsql', 'python', 'ruby', 'scala', 'swift', 'vf']
9
9
 
10
10
  def self.run(params)
11
11
  UI.header 'CPD analyzer' if Actions::CodeStaticAnalyzerAction.run_from_main_action
@@ -113,7 +113,7 @@ module Fastlane
113
113
  optional: true,
114
114
  type: String,
115
115
  verify_block: proc do |value|
116
- UI.user_error!("This language is not supported. Supported languages: #{SUPPORTED_LAN} or empty if you need any other language") unless SUPPORTED_LAN.map(&:downcase).include? value.downcase or value.empty? or !value
116
+ UI.user_error!("The language #{value} is not supported. Supported languages: #{SUPPORTED_LAN} or empty if you need any other language") unless SUPPORTED_LAN.map(&:downcase).include? value.downcase or value.empty? or !value
117
117
  end)
118
118
  ]
119
119
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CodeStaticAnalyzer
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-code_static_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olga Kniazska
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: crack